Skip to content

Filesystem issue when running stat() test #257

Open
@Yaxuan-w

Description

@Yaxuan-w

When running the stat.c test, we'll encounter the following error:

1758/32017MB	13.90 13.92 13.93 19/2584 1124993	(0) 
[1:0 0:45] 09:11:01 Wed Jun 05 [lind@7ae4e54fc08f: +1] ~/lind_project 
@(1:45) $ lind /stat.nexe

executing: [sel_ldr -a -- "runnable-ld.so" --library-path "/lib/glibc" /stat.nexe]
[1124995,775605376:21:11:06.232656] BYPASSING ALL ACL CHECKS
running stat("testfiles/statfile.txt")
size: 18
thread '<unnamed>' panicked at src/safeposix/filesystem.rs:607:13:
attempt to subtract with overflow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5

** User exited program with signal 6.

Here's the line that it's saying that it panicked on.

The error appears 3 times in 10 times running. I'm not sure if this problem is stat specific.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions