Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2e96d01314ae793f944b770725940824a9dc929947b2f2e362740dcee8a2f1fc
Ticket: 4d3f2130292dbfe33977659c2afe98c7bb86b668
VFS support causes infinite recursion during 'file exists' if working directory has been removed
User & Date: jan.nijtmans on 2026-11-23 11:13:55
Changes

  1. assignee changed to: "jan.nijtmans"
  2. closer changed to: "nobody"
  3. icomment:
    In core-8-6-branch:
    <pre>
    ==== source-9.1 source with relative path after the current directory was deleted FAILED
    ==== Contents of test case:
        exec sh -c {cd "$1" && exec "$2" cwddeleted.tcl} sh $dir [interpreter]
    ---- Result was:
    0 0 1
    ---- Result should have been (exact matching):
    1 0 0
    ==== source-9.1 FAILED
    ==== source-9.2 source with relative path after the current directory was deleted and [pwd] failed FAILED
    ==== Contents of test case:
        exec sh -c {cd "$1" && exec "$2" cwddeleted.tcl} sh $dir [interpreter]
    ---- Result was:
    0 0 1
    ---- Result should have been (exact matching):
    1 0 0
    ==== source-9.2 FAILED]
    </pre>
    
    Bisecting shows:
    <pre>
    $ fossil bisect chart
      1 BAD     2026-11-23 10:36:57 d762377fa4ac44aa
      5 BAD     2026-11-18 18:22:08 69c0fdc481139395
      6 BAD     2026-11-16 12:56:57 e0480cc1b4b52da3
      8 BAD     2026-11-16 10:41:26 57b7358a875cc03d CURRENT
      7 GOOD    2026-11-15 14:13:37 b74cee085c1a5620
      4 GOOD    2026-11-11 13:50:19 41c90339a6ece4d8
      3 GOOD    2026-10-28 11:09:51 f53502fa2a30da96
      2 GOOD    2026-10-01 22:44:48 342ab733c3d5998b
    </pre>
    
    This points to exactly the commit where this fix was merged to core-8-6-branch (while core-9-0-branch and trunk appear to be OK). Somehow this solution doesn't work on 8.6.
    
    I'm having a look at it, but if someone else has an idea why this doesn't work on 8.6, but works fine with 9.x, please come forward!
    
  4. login: "jan.nijtmans"
  5. mimetype: "text/x-fossil-wiki"
  6. status changed to: "Pending"