Overview
| Artifact ID: | c667ecbe65cb436ee46271cf5013a45aafe4bd56b48c716c0d61c0f8a7b72f5e |
|---|---|
| Ticket: | 4d3f2130292dbfe33977659c2afe98c7bb86b668
VFS support causes infinite recursion during 'file exists' if working directory has been removed |
| User & Date: | jrioux on 2023-04-25 15:21:52 |
Changes
- icomment:
Yes the bug is only reproducible with "package require vfs" and most likely only on linux. Here the program output running in gdb: (gdb) r Starting program: /usr/bin/tclsh warning: Error disabling address space randomization: Operation not permitted [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". % package require vfs 1.4.2 % set testdir directory_for_testing_will_be_deleted directory_for_testing_will_be_deleted % set testdir_abs [file join [pwd] $testdir] /directory_for_testing_will_be_deleted % file mkdir $testdir % cd $testdir % puts "Current working dir: [pwd]" Current working dir: /directory_for_testing_will_be_deleted % file delete $testdir_abs % puts "Current working dir: [pwd]" Current working dir: % puts "File exists: [file exists .]" Program received signal SIGSEGV, Segmentation fault. 0x00007fb74877effd in Tcl_FSGetCwd () from /lib/x86_64-linux-gnu/libtcl8.6.so (gdb) bt #0 0x00007fb74877effd in Tcl_FSGetCwd () from /lib/x86_64-linux-gnu/libtcl8.6.so #1 0x00007fb748796099 in Tcl_FSGetNormalizedPath () from /lib/x86_64-linux-gnu/libtcl8.6.so #2 0x00007fb748002c36 in ?? () from /usr/lib/tcltk/x86_64-linux-gnu/vfs1.4.2/libvfs1.4.2.so #3 0x00007fb748780b9e in Tcl_FSGetFileSystemForPath () from /lib/x86_64-linux-gnu/libtcl8.6.so #4 0x00007fb74877f1c9 in Tcl_FSGetCwd () from /lib/x86_64-linux-gnu/libtcl8.6.so #5 0x00007fb748796099 in Tcl_FSGetNormalizedPath () from /lib/x86_64-linux-gnu/libtcl8.6.so #6 0x00007fb748002c36 in ?? () from /usr/lib/tcltk/x86_64-linux-gnu/vfs1.4.2/libvfs1.4.2.so #7 0x00007fb748780b9e in Tcl_FSGetFileSystemForPath () from /lib/x86_64-linux-gnu/libtcl8.6.so #8 0x00007fb74877f1c9 in Tcl_FSGetCwd () from /lib/x86_64-linux-gnu/libtcl8.6.so #9 0x00007fb748796099 in Tcl_FSGetNormalizedPath () from /lib/x86_64-linux-gnu/libtcl8.6.so #10 0x00007fb748002c36 in ?? () from /usr/lib/tcltk/x86_64-linux-gnu/vfs1.4.2/libvfs1.4.2.so #11 0x00007fb748780b9e in Tcl_FSGetFileSystemForPath () from /lib/x86_64-linux-gnu/libtcl8.6.so #12 0x00007fb74877f1c9 in Tcl_FSGetCwd () from /lib/x86_64-linux-gnu/libtcl8.6.so #13 0x00007fb748796099 in Tcl_FSGetNormalizedPath () from /lib/x86_64-linux-gnu/libtcl8.6.so #14 0x00007fb748002c36 in ?? () from /usr/lib/tcltk/x86_64-linux-gnu/vfs1.4.2/libvfs1.4.2.so #15 0x00007fb748780b9e in Tcl_FSGetFileSystemForPath () from /lib/x86_64-linux-gnu/libtcl8.6.so #16 0x00007fb74877f1c9 in Tcl_FSGetCwd () from /lib/x86_64-linux-gnu/libtcl8.6.so #17 0x00007fb748796099 in Tcl_FSGetNormalizedPath () from /lib/x86_64-linux-gnu/libtcl8.6.so #18 0x00007fb748002c36 in ?? () from /usr/lib/tcltk/x86_64-linux-gnu/vfs1.4.2/libvfs1.4.2.so #19 0x00007fb748780b9e in Tcl_FSGetFileSystemForPath () from /lib/x86_64-linux-gnu/libtcl8.6.so #20 0x00007fb74877f1c9 in Tcl_FSGetCwd () from /lib/x86_64-linux-gnu/libtcl8.6.so #21 0x00007fb748796099 in Tcl_FSGetNormalizedPath () from /lib/x86_64-linux-gnu/libtcl8.6.so #22 0x00007fb748002c36 in ?? () from /usr/lib/tcltk/x86_64-linux-gnu/vfs1.4.2/libvfs1.4.2.so #23 0x00007fb748780b9e in Tcl_FSGetFileSystemForPath () from /lib/x86_64-linux-gnu/libtcl8.6.so #24 0x00007fb74877f1c9 in Tcl_FSGetCwd () from /lib/x86_64-linux-gnu/libtcl8.6.so #25 0x00007fb748796099 in Tcl_FSGetNormalizedPath () from /lib/x86_64-linux-gnu/libtcl8.6.so #26 0x00007fb748002c36 in ?? () from /usr/lib/tcltk/x86_64-linux-gnu/vfs1.4.2/libvfs1.4.2.so #27 0x00007fb748780b9e in Tcl_FSGetFileSystemForPath () from /lib/x86_64-linux-gnu/libtcl8.6.so #28 0x00007fb74877f1c9 in Tcl_FSGetCwd () from /lib/x86_64-linux-gnu/libtcl8.6.so #29 0x00007fb748796099 in Tcl_FSGetNormalizedPath () from /lib/x86_64-linux-gnu/libtcl8.6.so #30 0x00007fb748002c36 in ?? () from /usr/lib/tcltk/x86_64-linux-gnu/vfs1.4.2/libvfs1.4.2.so #31 0x00007fb748780b9e in Tcl_FSGetFileSystemForPath () from /lib/x86_64-linux-gnu/libtcl8.6.so --Type <RET> for more, q to quit, c to continue without paging-- The ?? in the stack trace should be VfsPathInFilesystem if I am not mistaken.
- login: "jrioux"
- mimetype: "text/plain"
- username: "jrioux"