Skip to content

Instantly share code, notes, and snippets.

@kubkon
Last active May 11, 2021 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kubkon/c620a174409960f3b741360a6d97b0c8 to your computer and use it in GitHub Desktop.
Save kubkon/c620a174409960f3b741360a6d97b0c8 to your computer and use it in GitHub Desktop.
fd_readdir in wasmtime v0.22.1
DEBUG wasi_common::ctx > WasiCtx inserting entry pending=PendingEntry::Thunk(0x7ffc451ce240)
DEBUG wasi_common::sys::unix > Host fd 0 is a char device
DEBUG wasi_common::ctx > WasiCtx inserted fd=Fd(0)
DEBUG wasi_common::ctx > WasiCtx inserting entry pending=PendingEntry::Thunk(0x7ffc451ce240)
DEBUG wasi_common::sys::unix > Host fd 1 is a file
DEBUG wasi_common::ctx > WasiCtx inserted fd=Fd(1)
DEBUG wasi_common::ctx > WasiCtx inserting entry pending=PendingEntry::Thunk(0x7ffc451ce240)
DEBUG wasi_common::sys::unix > Host fd 2 is a file
DEBUG wasi_common::ctx > WasiCtx inserted fd=Fd(2)
DEBUG wasi_common::ctx > WasiCtx inserted fd=Fd(3)
DEBUG wasi_common::ctx > WasiCtx inserting entry pending=PendingEntry::Thunk(0x7ffc451ce240)
DEBUG wasi_common::sys::unix > Host fd 0 is a char device
DEBUG wasi_common::ctx > WasiCtx inserted fd=Fd(0)
DEBUG wasi_common::ctx > WasiCtx inserting entry pending=PendingEntry::Thunk(0x7ffc451ce240)
DEBUG wasi_common::sys::unix > Host fd 1 is a file
DEBUG wasi_common::ctx > WasiCtx inserted fd=Fd(1)
DEBUG wasi_common::ctx > WasiCtx inserting entry pending=PendingEntry::Thunk(0x7ffc451ce240)
DEBUG wasi_common::sys::unix > Host fd 2 is a file
DEBUG wasi_common::ctx > WasiCtx inserted fd=Fd(2)
DEBUG wasi_common::ctx > WasiCtx inserted fd=Fd(3)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="random_get"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > buf=*guest 0xffed0 buf_len=48
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_prestat_get"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(3)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > buf=Dir(PrestatDir { pr_name_len: 1 })
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_prestat_dir_name"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(3) path=*guest 0x110000 path_len=1
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | path='.'
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_prestat_get"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(4)
DEBUG wasi_common::wasi > Error: Badf
TRACE wasi_common::wasi::wasi_snapshot_preview1 > error=Ok(Badf)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_create_directory"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(3) path=*guest 0x1004e8/9
TRACE wasi_common::path > path="zig-cache"
DEBUG wasi_common::path > path get cur_path=zig-cache
DEBUG wasi_common::path > path_get path_stack=[]
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_open"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(3) dirflags=symlink_follow (0x1) path=*guest 0x1004e8/9 oflags=directory (0x2) fs_rights_base=fd_fdstat_set_flags|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file (0x7bfbe08) fs_rights_inherting=fd_datasync|fd_read|fd_seek|fd_fdstat_set_flags|fd_sync|fd_tell|fd_write|fd_advise|fd_allocate|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_size|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file|poll_fd_readwrite (0xfffffff) fdflags=empty (0x0)
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | needed_rights=HandleRights { base: path_open (0x2000), inheriting: fd_datasync|fd_read|fd_seek|fd_fdstat_set_flags|fd_sync|fd_tell|fd_write|fd_advise|fd_allocate|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_size|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file|poll_fd_readwrite (0xfffffff) }
TRACE wasi_common::path > path="zig-cache"
DEBUG wasi_common::path > path get cur_path=zig-cache
DEBUG wasi_common::path > path_get path_stack=[]
DEBUG wasi_common::sys::unix::path > path_get readlinkat path="zig-cache"
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | calling path_open impl: read=false, write=false
DEBUG wasi_common::sys::unix::path > path_open dirfd=OsDir { rights: Cell { value: HandleRights { base: Rights(264240792), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 6, path: "/home/kubkon/dev/zig/examples", read: true, write: false }) } path="zig-cache" oflags=DIRECTORY | NOFOLLOW
DEBUG wasi_common::sys::unix::path > new_fd=7
DEBUG wasi_common::sys::unix > Host fd 7 is a directory
DEBUG wasi_common::sys > Created new instance of OsDir handle=OsDir { rights: Cell { value: HandleRights { base: Rights(264240792), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 7, path: "/home/kubkon/dev/zig/examples/zig-cache", read: true, write: false }) }
TRACE wasi_common::wasi::wasi_snapshot_preview1 > opened_fd=Fd(4)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_create_directory"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(4) path=*guest 0x100554/3
TRACE wasi_common::path > path="tmp"
DEBUG wasi_common::path > path get cur_path=tmp
DEBUG wasi_common::path > path_get path_stack=[]
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_open"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(4) dirflags=symlink_follow (0x1) path=*guest 0x100554/3 oflags=directory (0x2) fs_rights_base=fd_fdstat_set_flags|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file (0x7bfbe08) fs_rights_inherting=fd_datasync|fd_read|fd_seek|fd_fdstat_set_flags|fd_sync|fd_tell|fd_write|fd_advise|fd_allocate|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_size|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file|poll_fd_readwrite (0xfffffff) fdflags=empty (0x0)
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | needed_rights=HandleRights { base: path_open (0x2000), inheriting: fd_datasync|fd_read|fd_seek|fd_fdstat_set_flags|fd_sync|fd_tell|fd_write|fd_advise|fd_allocate|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_size|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file|poll_fd_readwrite (0xfffffff) }
TRACE wasi_common::path > path="tmp"
DEBUG wasi_common::path > path get cur_path=tmp
DEBUG wasi_common::path > path_get path_stack=[]
DEBUG wasi_common::sys::unix::path > path_get readlinkat path="tmp"
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | calling path_open impl: read=false, write=false
DEBUG wasi_common::sys::unix::path > path_open dirfd=OsDir { rights: Cell { value: HandleRights { base: Rights(130006536), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 6, path: "/home/kubkon/dev/zig/examples/zig-cache", read: true, write: false }) } path="tmp" oflags=DIRECTORY | NOFOLLOW
DEBUG wasi_common::sys::unix::path > new_fd=8
DEBUG wasi_common::sys::unix > Host fd 8 is a directory
DEBUG wasi_common::sys > Created new instance of OsDir handle=OsDir { rights: Cell { value: HandleRights { base: Rights(264240792), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 8, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp", read: true, write: false }) }
TRACE wasi_common::wasi::wasi_snapshot_preview1 > opened_fd=Fd(5)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_create_directory"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(5) path=*guest 0xfff90/16
TRACE wasi_common::path > path="1ehH_4MfOfXpAVpE"
DEBUG wasi_common::path > path get cur_path=1ehH_4MfOfXpAVpE
DEBUG wasi_common::path > path_get path_stack=[]
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_open"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(5) dirflags=symlink_follow (0x1) path=*guest 0xfff90/16 oflags=directory (0x2) fs_rights_base=fd_fdstat_set_flags|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file (0x7bfbe08) fs_rights_inherting=fd_datasync|fd_read|fd_seek|fd_fdstat_set_flags|fd_sync|fd_tell|fd_write|fd_advise|fd_allocate|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_size|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file|poll_fd_readwrite (0xfffffff) fdflags=empty (0x0)
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | needed_rights=HandleRights { base: path_open (0x2000), inheriting: fd_datasync|fd_read|fd_seek|fd_fdstat_set_flags|fd_sync|fd_tell|fd_write|fd_advise|fd_allocate|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_size|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file|poll_fd_readwrite (0xfffffff) }
TRACE wasi_common::path > path="1ehH_4MfOfXpAVpE"
DEBUG wasi_common::path > path get cur_path=1ehH_4MfOfXpAVpE
DEBUG wasi_common::path > path_get path_stack=[]
DEBUG wasi_common::sys::unix::path > path_get readlinkat path="1ehH_4MfOfXpAVpE"
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | calling path_open impl: read=false, write=false
DEBUG wasi_common::sys::unix::path > path_open dirfd=OsDir { rights: Cell { value: HandleRights { base: Rights(130006536), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 6, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp", read: true, write: false }) } path="1ehH_4MfOfXpAVpE" oflags=DIRECTORY | NOFOLLOW
DEBUG wasi_common::sys::unix::path > new_fd=9
DEBUG wasi_common::sys::unix > Host fd 9 is a directory
DEBUG wasi_common::sys > Created new instance of OsDir handle=OsDir { rights: Cell { value: HandleRights { base: Rights(264240792), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 9, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE", read: true, write: false }) }
TRACE wasi_common::wasi::wasi_snapshot_preview1 > opened_fd=Fd(6)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_close"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(4)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_create_directory"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(6) path=*guest 0x100457/15
TRACE wasi_common::path > path="os_test_tmp/b/c"
DEBUG wasi_common::path > path get cur_path=os_test_tmp/b/c
DEBUG wasi_common::path > path_get path_stack=["b/c"]
DEBUG wasi_common::sys::unix::path > path_open dirfd=OsDir { rights: Cell { value: HandleRights { base: Rights(130006536), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 6, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE", read: true, write: false }) } path="os_test_tmp" oflags=DIRECTORY | NOFOLLOW
DEBUG wasi_common::wasi > Error: Noent
TRACE wasi_common::wasi::wasi_snapshot_preview1 > error=Ok(Noent)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_create_directory"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(6) path=*guest 0x100457/13
TRACE wasi_common::path > path="os_test_tmp/b"
DEBUG wasi_common::path > path get cur_path=os_test_tmp/b
DEBUG wasi_common::path > path_get path_stack=["b"]
DEBUG wasi_common::sys::unix::path > path_open dirfd=OsDir { rights: Cell { value: HandleRights { base: Rights(130006536), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 6, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE", read: true, write: false }) } path="os_test_tmp" oflags=DIRECTORY | NOFOLLOW
DEBUG wasi_common::wasi > Error: Noent
TRACE wasi_common::wasi::wasi_snapshot_preview1 > error=Ok(Noent)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_create_directory"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(6) path=*guest 0x100457/11
TRACE wasi_common::path > path="os_test_tmp"
DEBUG wasi_common::path > path get cur_path=os_test_tmp
DEBUG wasi_common::path > path_get path_stack=[]
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_create_directory"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(6) path=*guest 0x100457/13
TRACE wasi_common::path > path="os_test_tmp/b"
DEBUG wasi_common::path > path get cur_path=os_test_tmp/b
DEBUG wasi_common::path > path_get path_stack=["b"]
DEBUG wasi_common::sys::unix::path > path_open dirfd=OsDir { rights: Cell { value: HandleRights { base: Rights(130006536), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 6, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE", read: true, write: false }) } path="os_test_tmp" oflags=DIRECTORY | NOFOLLOW
DEBUG wasi_common::sys::unix::path > new_fd=7
DEBUG wasi_common::sys::unix > Host fd 7 is a directory
DEBUG wasi_common::sys > Created new instance of OsDir handle=OsDir { rights: Cell { value: HandleRights { base: Rights(264240792), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 7, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE/os_test_tmp", read: true, write: false }) }
DEBUG wasi_common::path > path get cur_path=b
DEBUG wasi_common::path > path_get path_stack=[]
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_create_directory"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(6) path=*guest 0x100457/15
TRACE wasi_common::path > path="os_test_tmp/b/c"
DEBUG wasi_common::path > path get cur_path=os_test_tmp/b/c
DEBUG wasi_common::path > path_get path_stack=["b/c"]
DEBUG wasi_common::sys::unix::path > path_open dirfd=OsDir { rights: Cell { value: HandleRights { base: Rights(130006536), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 6, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE", read: true, write: false }) } path="os_test_tmp" oflags=DIRECTORY | NOFOLLOW
DEBUG wasi_common::sys::unix::path > new_fd=7
DEBUG wasi_common::sys::unix > Host fd 7 is a directory
DEBUG wasi_common::sys > Created new instance of OsDir handle=OsDir { rights: Cell { value: HandleRights { base: Rights(264240792), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 7, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE/os_test_tmp", read: true, write: false }) }
DEBUG wasi_common::path > path get cur_path=b/c
DEBUG wasi_common::path > path_get path_stack=["c"]
DEBUG wasi_common::sys::unix::path > path_open dirfd=OsDir { rights: Cell { value: HandleRights { base: Rights(264240792), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 7, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE/os_test_tmp", read: true, write: false }) } path="b" oflags=DIRECTORY | NOFOLLOW
DEBUG wasi_common::sys::unix::path > new_fd=10
DEBUG wasi_common::sys::unix > Host fd 10 is a directory
DEBUG wasi_common::sys > Created new instance of OsDir handle=OsDir { rights: Cell { value: HandleRights { base: Rights(264240792), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 10, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE/os_test_tmp/b", read: true, write: false }) }
DEBUG wasi_common::path > path get cur_path=c
DEBUG wasi_common::path > path_get path_stack=[]
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_unlink_file"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(6) path=*guest 0x100470/11
TRACE wasi_common::path > path="os_test_tmp"
DEBUG wasi_common::path > path get cur_path=os_test_tmp
DEBUG wasi_common::path > path_get path_stack=[]
DEBUG wasi_common::wasi > Error: Isdir
TRACE wasi_common::wasi::wasi_snapshot_preview1 > error=Ok(Isdir)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_open"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(6) dirflags=empty (0x0) path=*guest 0x100470/11 oflags=directory (0x2) fs_rights_base=fd_fdstat_set_flags|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file (0x7bffe08) fs_rights_inherting=fd_datasync|fd_read|fd_seek|fd_fdstat_set_flags|fd_sync|fd_tell|fd_write|fd_advise|fd_allocate|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_size|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file|poll_fd_readwrite (0xfffffff) fdflags=empty (0x0)
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | needed_rights=HandleRights { base: path_open (0x2000), inheriting: fd_datasync|fd_read|fd_seek|fd_fdstat_set_flags|fd_sync|fd_tell|fd_write|fd_advise|fd_allocate|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_size|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file|poll_fd_readwrite (0xfffffff) }
TRACE wasi_common::path > path="os_test_tmp"
DEBUG wasi_common::path > path get cur_path=os_test_tmp
DEBUG wasi_common::path > path_get path_stack=[]
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | calling path_open impl: read=true, write=false
DEBUG wasi_common::sys::unix::path > path_open dirfd=OsDir { rights: Cell { value: HandleRights { base: Rights(130006536), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 6, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE", read: true, write: false }) } path="os_test_tmp" oflags=DIRECTORY | NOFOLLOW
DEBUG wasi_common::sys::unix::path > new_fd=7
DEBUG wasi_common::sys::unix > Host fd 7 is a directory
DEBUG wasi_common::sys > Created new instance of OsDir handle=OsDir { rights: Cell { value: HandleRights { base: Rights(264240792), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 7, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE/os_test_tmp", read: true, write: false }) }
TRACE wasi_common::wasi::wasi_snapshot_preview1 > opened_fd=Fd(4)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_readdir"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(4) buf=*guest 0xfcf74 buf_len=8192 cookie=0
TRACE wasi_common::sys::unix::fd > fd_readdir: doing rewinddir
TRACE wasi_common::wasi::wasi_snapshot_preview1 > bufused=76
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_unlink_file"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(4) path=*guest 0xfcf8c/1
TRACE wasi_common::path > path="b"
DEBUG wasi_common::path > path get cur_path=b
DEBUG wasi_common::path > path_get path_stack=[]
DEBUG wasi_common::wasi > Error: Isdir
TRACE wasi_common::wasi::wasi_snapshot_preview1 > error=Ok(Isdir)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_open"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(4) dirflags=empty (0x0) path=*guest 0xfcf8c/1 oflags=directory (0x2) fs_rights_base=fd_fdstat_set_flags|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file (0x7bffe08) fs_rights_inherting=fd_datasync|fd_read|fd_seek|fd_fdstat_set_flags|fd_sync|fd_tell|fd_write|fd_advise|fd_allocate|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_size|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file|poll_fd_readwrite (0xfffffff) fdflags=empty (0x0)
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | needed_rights=HandleRights { base: path_open (0x2000), inheriting: fd_datasync|fd_read|fd_seek|fd_fdstat_set_flags|fd_sync|fd_tell|fd_write|fd_advise|fd_allocate|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_size|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file|poll_fd_readwrite (0xfffffff) }
TRACE wasi_common::path > path="b"
DEBUG wasi_common::path > path get cur_path=b
DEBUG wasi_common::path > path_get path_stack=[]
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | calling path_open impl: read=true, write=false
DEBUG wasi_common::sys::unix::path > path_open dirfd=OsDir { rights: Cell { value: HandleRights { base: Rights(130022920), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 6, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE/os_test_tmp", read: true, write: false }) } path="b" oflags=DIRECTORY | NOFOLLOW
DEBUG wasi_common::sys::unix::path > new_fd=10
DEBUG wasi_common::sys::unix > Host fd 10 is a directory
DEBUG wasi_common::sys > Created new instance of OsDir handle=OsDir { rights: Cell { value: HandleRights { base: Rights(264240792), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 10, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE/os_test_tmp/b", read: true, write: false }) }
TRACE wasi_common::wasi::wasi_snapshot_preview1 > opened_fd=Fd(7)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_readdir"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(7) buf=*guest 0xfcf74 buf_len=8192 cookie=0
TRACE wasi_common::sys::unix::fd > fd_readdir: doing rewinddir
TRACE wasi_common::wasi::wasi_snapshot_preview1 > bufused=76
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_unlink_file"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(7) path=*guest 0xfcf8c/1
TRACE wasi_common::path > path="c"
DEBUG wasi_common::path > path get cur_path=c
DEBUG wasi_common::path > path_get path_stack=[]
DEBUG wasi_common::wasi > Error: Isdir
TRACE wasi_common::wasi::wasi_snapshot_preview1 > error=Ok(Isdir)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_open"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(7) dirflags=empty (0x0) path=*guest 0xfcf8c/1 oflags=directory (0x2) fs_rights_base=fd_fdstat_set_flags|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file (0x7bffe08) fs_rights_inherting=fd_datasync|fd_read|fd_seek|fd_fdstat_set_flags|fd_sync|fd_tell|fd_write|fd_advise|fd_allocate|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_size|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file|poll_fd_readwrite (0xfffffff) fdflags=empty (0x0)
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | needed_rights=HandleRights { base: path_open (0x2000), inheriting: fd_datasync|fd_read|fd_seek|fd_fdstat_set_flags|fd_sync|fd_tell|fd_write|fd_advise|fd_allocate|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_size|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file|poll_fd_readwrite (0xfffffff) }
TRACE wasi_common::path > path="c"
DEBUG wasi_common::path > path get cur_path=c
DEBUG wasi_common::path > path_get path_stack=[]
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | calling path_open impl: read=true, write=false
DEBUG wasi_common::sys::unix::path > path_open dirfd=OsDir { rights: Cell { value: HandleRights { base: Rights(130022920), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 6, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE/os_test_tmp/b", read: true, write: false }) } path="c" oflags=DIRECTORY | NOFOLLOW
DEBUG wasi_common::sys::unix::path > new_fd=11
DEBUG wasi_common::sys::unix > Host fd 11 is a directory
DEBUG wasi_common::sys > Created new instance of OsDir handle=OsDir { rights: Cell { value: HandleRights { base: Rights(264240792), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 11, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE/os_test_tmp/b/c", read: true, write: false }) }
TRACE wasi_common::wasi::wasi_snapshot_preview1 > opened_fd=Fd(8)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_close"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(4)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_readdir"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(8) buf=*guest 0xfcf74 buf_len=8192 cookie=0
TRACE wasi_common::sys::unix::fd > fd_readdir: doing rewinddir
TRACE wasi_common::wasi::wasi_snapshot_preview1 > bufused=51
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_readdir"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(8) buf=*guest 0xfcf74 buf_len=8192 cookie=9223372036854775807
TRACE wasi_common::sys::unix::fd > fd_readdir: doing seekdir to 9223372036854775807
TRACE wasi_common::wasi::wasi_snapshot_preview1 > bufused=0
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_close"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(8)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_remove_directory"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(7) path=*guest 0xfef97/1
TRACE wasi_common::path > path="c"
DEBUG wasi_common::path > path get cur_path=c
DEBUG wasi_common::path > path_get path_stack=[]
DEBUG wasi_common::sys::osdir > remove_directory (dirfd, path)=(OsDir { rights: Cell { value: HandleRights { base: Rights(130022920), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 6, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE/os_test_tmp/b", read: true, write: false }) }, "c")
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_close"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(7)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_unlink_file"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(6) path=*guest 0x100470/11
TRACE wasi_common::path > path="os_test_tmp"
DEBUG wasi_common::path > path get cur_path=os_test_tmp
DEBUG wasi_common::path > path_get path_stack=[]
DEBUG wasi_common::wasi > Error: Isdir
TRACE wasi_common::wasi::wasi_snapshot_preview1 > error=Ok(Isdir)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_open"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(6) dirflags=empty (0x0) path=*guest 0x100470/11 oflags=directory (0x2) fs_rights_base=fd_fdstat_set_flags|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file (0x7bffe08) fs_rights_inherting=fd_datasync|fd_read|fd_seek|fd_fdstat_set_flags|fd_sync|fd_tell|fd_write|fd_advise|fd_allocate|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_size|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file|poll_fd_readwrite (0xfffffff) fdflags=empty (0x0)
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | needed_rights=HandleRights { base: path_open (0x2000), inheriting: fd_datasync|fd_read|fd_seek|fd_fdstat_set_flags|fd_sync|fd_tell|fd_write|fd_advise|fd_allocate|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_size|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file|poll_fd_readwrite (0xfffffff) }
TRACE wasi_common::path > path="os_test_tmp"
DEBUG wasi_common::path > path get cur_path=os_test_tmp
DEBUG wasi_common::path > path_get path_stack=[]
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | calling path_open impl: read=true, write=false
DEBUG wasi_common::sys::unix::path > path_open dirfd=OsDir { rights: Cell { value: HandleRights { base: Rights(130006536), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 6, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE", read: true, write: false }) } path="os_test_tmp" oflags=DIRECTORY | NOFOLLOW
DEBUG wasi_common::sys::unix::path > new_fd=7
DEBUG wasi_common::sys::unix > Host fd 7 is a directory
DEBUG wasi_common::sys > Created new instance of OsDir handle=OsDir { rights: Cell { value: HandleRights { base: Rights(264240792), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 7, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE/os_test_tmp", read: true, write: false }) }
TRACE wasi_common::wasi::wasi_snapshot_preview1 > opened_fd=Fd(7)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_readdir"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(7) buf=*guest 0xfcf74 buf_len=8192 cookie=0
TRACE wasi_common::sys::unix::fd > fd_readdir: doing rewinddir
TRACE wasi_common::wasi::wasi_snapshot_preview1 > bufused=76
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_unlink_file"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(7) path=*guest 0xfcf8c/1
TRACE wasi_common::path > path="b"
DEBUG wasi_common::path > path get cur_path=b
DEBUG wasi_common::path > path_get path_stack=[]
DEBUG wasi_common::wasi > Error: Isdir
TRACE wasi_common::wasi::wasi_snapshot_preview1 > error=Ok(Isdir)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_open"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(7) dirflags=empty (0x0) path=*guest 0xfcf8c/1 oflags=directory (0x2) fs_rights_base=fd_fdstat_set_flags|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file (0x7bffe08) fs_rights_inherting=fd_datasync|fd_read|fd_seek|fd_fdstat_set_flags|fd_sync|fd_tell|fd_write|fd_advise|fd_allocate|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_size|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file|poll_fd_readwrite (0xfffffff) fdflags=empty (0x0)
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | needed_rights=HandleRights { base: path_open (0x2000), inheriting: fd_datasync|fd_read|fd_seek|fd_fdstat_set_flags|fd_sync|fd_tell|fd_write|fd_advise|fd_allocate|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_size|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file|poll_fd_readwrite (0xfffffff) }
TRACE wasi_common::path > path="b"
DEBUG wasi_common::path > path get cur_path=b
DEBUG wasi_common::path > path_get path_stack=[]
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | calling path_open impl: read=true, write=false
DEBUG wasi_common::sys::unix::path > path_open dirfd=OsDir { rights: Cell { value: HandleRights { base: Rights(130022920), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 6, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE/os_test_tmp", read: true, write: false }) } path="b" oflags=DIRECTORY | NOFOLLOW
DEBUG wasi_common::sys::unix::path > new_fd=10
DEBUG wasi_common::sys::unix > Host fd 10 is a directory
DEBUG wasi_common::sys > Created new instance of OsDir handle=OsDir { rights: Cell { value: HandleRights { base: Rights(264240792), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 10, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE/os_test_tmp/b", read: true, write: false }) }
TRACE wasi_common::wasi::wasi_snapshot_preview1 > opened_fd=Fd(8)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_readdir"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(8) buf=*guest 0xfcf74 buf_len=8192 cookie=0
TRACE wasi_common::sys::unix::fd > fd_readdir: doing rewinddir
TRACE wasi_common::wasi::wasi_snapshot_preview1 > bufused=51
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_readdir"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(8) buf=*guest 0xfcf74 buf_len=8192 cookie=9223372036854775807
TRACE wasi_common::sys::unix::fd > fd_readdir: doing seekdir to 9223372036854775807
TRACE wasi_common::wasi::wasi_snapshot_preview1 > bufused=0
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_close"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(8)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_remove_directory"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(7) path=*guest 0xfef97/1
TRACE wasi_common::path > path="b"
DEBUG wasi_common::path > path get cur_path=b
DEBUG wasi_common::path > path_get path_stack=[]
DEBUG wasi_common::sys::osdir > remove_directory (dirfd, path)=(OsDir { rights: Cell { value: HandleRights { base: Rights(130022920), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 6, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE/os_test_tmp", read: true, write: false }) }, "b")
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_close"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(7)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_unlink_file"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(6) path=*guest 0x100470/11
TRACE wasi_common::path > path="os_test_tmp"
DEBUG wasi_common::path > path get cur_path=os_test_tmp
DEBUG wasi_common::path > path_get path_stack=[]
DEBUG wasi_common::wasi > Error: Isdir
TRACE wasi_common::wasi::wasi_snapshot_preview1 > error=Ok(Isdir)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_open"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(6) dirflags=empty (0x0) path=*guest 0x100470/11 oflags=directory (0x2) fs_rights_base=fd_fdstat_set_flags|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file (0x7bffe08) fs_rights_inherting=fd_datasync|fd_read|fd_seek|fd_fdstat_set_flags|fd_sync|fd_tell|fd_write|fd_advise|fd_allocate|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_size|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file|poll_fd_readwrite (0xfffffff) fdflags=empty (0x0)
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | needed_rights=HandleRights { base: path_open (0x2000), inheriting: fd_datasync|fd_read|fd_seek|fd_fdstat_set_flags|fd_sync|fd_tell|fd_write|fd_advise|fd_allocate|path_create_directory|path_create_file|path_link_source|path_link_target|path_open|fd_readdir|path_readlink|path_rename_source|path_rename_target|path_filestat_get|path_filestat_set_size|path_filestat_set_times|fd_filestat_get|fd_filestat_set_size|fd_filestat_set_times|path_symlink|path_remove_directory|path_unlink_file|poll_fd_readwrite (0xfffffff) }
TRACE wasi_common::path > path="os_test_tmp"
DEBUG wasi_common::path > path get cur_path=os_test_tmp
DEBUG wasi_common::path > path_get path_stack=[]
TRACE wasi_common::snapshots::wasi_snapshot_preview1 > | calling path_open impl: read=true, write=false
DEBUG wasi_common::sys::unix::path > path_open dirfd=OsDir { rights: Cell { value: HandleRights { base: Rights(130006536), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 6, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE", read: true, write: false }) } path="os_test_tmp" oflags=DIRECTORY | NOFOLLOW
DEBUG wasi_common::sys::unix::path > new_fd=7
DEBUG wasi_common::sys::unix > Host fd 7 is a directory
DEBUG wasi_common::sys > Created new instance of OsDir handle=OsDir { rights: Cell { value: HandleRights { base: Rights(264240792), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 7, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE/os_test_tmp", read: true, write: false }) }
TRACE wasi_common::wasi::wasi_snapshot_preview1 > opened_fd=Fd(7)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_readdir"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(7) buf=*guest 0xfcf74 buf_len=8192 cookie=0
TRACE wasi_common::sys::unix::fd > fd_readdir: doing rewinddir
TRACE wasi_common::wasi::wasi_snapshot_preview1 > bufused=51
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_readdir"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(7) buf=*guest 0xfcf74 buf_len=8192 cookie=9223372036854775807
TRACE wasi_common::sys::unix::fd > fd_readdir: doing seekdir to 9223372036854775807
TRACE wasi_common::wasi::wasi_snapshot_preview1 > bufused=0
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="fd_close"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(7)
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
TRACE wasi_common::wasi::wasi_snapshot_preview1 > wiggle abi; module="wasi_snapshot_preview1" function="path_remove_directory"
TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd=Fd(6) path=*guest 0x100470/11
TRACE wasi_common::path > path="os_test_tmp"
DEBUG wasi_common::path > path get cur_path=os_test_tmp
DEBUG wasi_common::path > path_get path_stack=[]
DEBUG wasi_common::sys::osdir > remove_directory (dirfd, path)=(OsDir { rights: Cell { value: HandleRights { base: Rights(130006536), inheriting: Rights(268435455) } }, handle: RawOsHandle(File { fd: 6, path: "/home/kubkon/dev/zig/examples/zig-cache/tmp/1ehH_4MfOfXpAVpE", read: true, write: false }) }, "os_test_tmp")
TRACE wasi_common::wasi::wasi_snapshot_preview1 > success=No error occurred. System call completed successfully. (Errno::Success(0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment