Skip to content

PathExtensions::stat() broken on ARM Linux #20007

Closed
@krdln

Description

@krdln

Following code, when compiled and run on arm-linux-gnueabihf constantly prints 0x800001000 no matter of optimizations.

use std::io::fs::PathExtensions;
use std::io::{File};

fn main() {
    let path = Path::new("foo.txt");
    {   
        let mut file = File::create(&path);
        file.write(b"foobar").ok().expect("err writing");
    }
    println!("{:#x}", path.stat().unwrap().size);
}

Same result obtained when using various rustc versions from 2014-11-21 to 2014-12-15. My guess would be stat struct differing between architectures?

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-ArmTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions