Skip to content

cap-std panic's when WASM module is listing C: #169

@elast0ny

Description

@elast0ny

When running a simple Rust directory listing module on my C:\ drive as a test, cap-std will throw a panic :
'ino' depends on a Metadata constructed from an open 'File'

This can be reproduced through wasmtime with :
wasmtime run --dir C:\ list_dir.wasm -- C:\

This older issue #142 seems to be the same problem although it was closed with claims that it had been fixed ?
Did the bug get re-introduced somehow ?

I unfortunately don't have access to my list_dir project but its essentially only std::fs::read_dir(argv[1])

The important parts in my panic backtrace are :

wasmtime 0.26.0
    wasi-common 0.26.0    (wasi_common::snapshots::preview_1::wasi_snapshot_preview1::fd_readdir)
        wasi-cap-std-sync 0.26.0    (wasi_cap_std_sync::dir::{{impl}}::readdir)
            cap-fs-ext 0.13.9   (cap_fs_ext::metadata_ext::{{impl}}::ino)

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