Skip to content
Tcl Source Code History Of Ticket 2837800fffffffffffffffffffffffffffffffff
Login

History Of Ticket 2837800fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 2837800fffffffffffffffffffffffffffffffff

  1. Ticket change [ec71b5e494] (rid 103709) by dgp on 2009-08-14 17:57:15:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      % file mkdir ./~goo
      % close [open ./~goo/test w]
      % glob [file join * test]
      make: *** [shell] Segmentation fault
      
      
    4. foundin initialized to: "obsolete: 8.5.7"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "36. Pathname Management"
    11. title initialized to: "[glob] segfault searching dirs matching ~*"
    12. type initialized to: "Bug"
  2. Ticket change [7ef24ff9fd] (rid 97492) by dgp on 2009-08-15 00:59:48:

    1. icomment:
      
      Stack trace from debug build of the
      tip of the core-8-5-branch:
      
      Program received signal SIGSEGV, Segmentation fault.
      0x0807bf8a in Tcl_DbDecrRefCount (objPtr=0x0,
          file=0x8160368 "/home/dgp/cvs/tcl8.5/unix/../generic/tclPathObj.c",
          line=1690) at /home/dgp/cvs/tcl8.5/unix/../generic/tclObj.c:3153
      3153        if (objPtr->refCount == 0x61616161) {
      (gdb) bt
      #0  0x0807bf8a in Tcl_DbDecrRefCount (objPtr=0x0,
          file=0x8160368 "/home/dgp/cvs/tcl8.5/unix/../generic/tclPathObj.c",
          line=1690) at /home/dgp/cvs/tcl8.5/unix/../generic/tclObj.c:3153
      #1  0x080820c9 in Tcl_FSGetTranslatedPath (interp=0x89098d0, pathPtr=0x89752d8)
          at /home/dgp/cvs/tcl8.5/unix/../generic/tclPathObj.c:1690
      #2  0x080ad652 in TclpMatchInDirectory (interp=0x89098d0, resultPtr=0x8974d10,
          pathPtr=0x89752d8, pattern=0x0, types=0x0)
          at /home/dgp/cvs/tcl8.5/unix/../unix/tclUnixFile.c:222
      #3  0x080682ba in Tcl_FSMatchInDirectory (interp=0x89098d0,
          resultPtr=0x8974d10, pathPtr=0x89752d8, pattern=0x0, types=0x0)
          at /home/dgp/cvs/tcl8.5/unix/../generic/tclIOUtil.c:1102
      #4  0x08145dc6 in DoGlob (interp=0x89098d0, matchesObj=0x8974d10,
          separators=0x816f602 "/", pathPtr=0x8975010, flags=1,
          pattern=0x897454a "test", types=0x0)
          at /home/dgp/cvs/tcl8.5/unix/../generic/tclFileName.c:2478
      #5  0x08145941 in DoGlob (interp=0x89098d0, matchesObj=0x8974d10,
          separators=0x816f602 "/", pathPtr=0x0, flags=0,
          pattern=0x8974548 "*/test", types=0x0)
          at /home/dgp/cvs/tcl8.5/unix/../generic/tclFileName.c:2364
      #6  0x08145010 in TclGlob (interp=0x89098d0, pattern=0x8974548 "*/test",
          pathPrefix=0x0, globFlags=0, types=0x0)
          at /home/dgp/cvs/tcl8.5/unix/../generic/tclFileName.c:1914
      #7  0x0814471e in Tcl_GlobObjCmd (dummy=0x0, interp=0x89098d0, objc=1,
          objv=0x890ac6c) at /home/dgp/cvs/tcl8.5/unix/../generic/tclFileName.c:1584
      ...
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. username: "dgp"
  3. Ticket change [f414143aff] (rid 129835) by dgp on 2009-08-15 01:32:31:

    1. icomment:
      
      In Tcl 8.4, there is no crash, but
      the incorrect result is not much better:
      
      % glob [file join * test]
      
      %
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [57c414d0f0] (rid 117681) by dgp on 2009-08-15 01:34:56:

    1. icomment:
      
      8.3.5 works fine.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [77b14e375a] (rid 89816) by dgp on 2009-08-15 01:38:03:

    1. icomment:
      
      The actual releases of Tcl 8.4, up through
      8.4.19 are slightly better:
      
      % glob */test
      no files matched glob pattern "*/test"
      
      It's a wrong result, but at least without
      the empty error message demonstrated
      in the tip of the core-8-4-branch.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [583a0cb27b] (rid 117765) by dgp on 2009-08-15 02:41:45:

    1. icomment:
      
      A different variation of the same bug
      in Tcl 8.4:
      
      % file mkdir ./~dgp ;# empty directory
      % glob */.mozilla
      ~dgp/.mozilla
      
      The search in subdirectories of
      the current directory is actually
      finding something way over 
      in my home directory instead.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Add attachment "2837800-84.patch" [0e318d2354] (rid 94569) by dgp on 2009-08-15 03:07:31.

  8. Ticket change [e5e09c41b6] (rid 104201) by dgp on 2009-08-15 03:07:31:

    1. icomment:
      
      
      File Added - 339245: 2837800-84.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [9e40fd8e96] (rid 96446) by dgp on 2009-08-15 03:07:51:

    1. icomment:
      
      Attached patch fixes things in 8.4.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Ticket change [a15c2947ae] (rid 109700) by dgp on 2009-08-18 03:00:13:

    1. icomment:
      
      fix with tests committed for 8.4.20.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Ticket change [1447296c88] (rid 124365) by dgp on 2009-08-18 04:21:51:

    1. icomment:
      
      In 8.5+, I observe that the header comments
      of TclNewFSPathObj() claim that the dirPtr
      argument must be an absolute path, but
      when DoGlob() calls this routine, it makes
      no effort to check that constraint is met.
      
      It's not clear whether the header comment
      claim is true, or where it gets relied on, if
      anywhere.
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  12. Ticket change [c9e24d00c0] (rid 122361) by dgp on 2009-08-18 20:10:21:

    1. icomment:
      
      When the user "goo" does not exist, then
      the value "~goo" cannot be converted to
      the "path" Tcl_ObjType.
      
      The PATH_FLAGS == 0 representation
      for a "path" value holds two parts of the
      path.  In the crashing case, the head
      part of the path is "~goo" and the tail
      part is "test".  It is assumed deep in the
      code that the head part of the path can
      always be converted to the "path"
      Tcl_ObjType.  There is no check for
      the NULL result when that is not true,
      and that leads to the crash.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  13. Ticket change [6d8f90cfaa] (rid 128725) by dgp on 2009-08-18 20:10:57:

    1. icomment:
      
      sorry, that's the PATH_FLAGS != 0 representation.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  14. Ticket change [5e2fa22ff9] (rid 115592) by dgp on 2009-08-18 21:34:50:

    1. icomment:
      
      handling the NULL return solves the
      crash, leaving only the bug.  Will
      commit if/when SF CVS returns.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  15. Ticket change [902b0f058d] (rid 120406) by dgp on 2009-08-20 21:42:11:

    1. title changed to: "[glob] errors searching dirs matching ~*"
  16. Add attachment "2837800.patch" [a18c4c9a8f] (rid 109735) by dgp on 2009-08-21 04:56:26.

  17. Ticket change [b800c4c18c] (rid 128895) by dgp on 2009-08-21 04:56:26:

    1. icomment:
      
      
      File Added - 339991: 2837800.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  18. Ticket change [2cde3228de] (rid 118984) by dgp on 2009-08-21 04:56:39:

    1. icomment:
      Attached patch for 8.5
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  19. Ticket change [f89c2520d4] (rid 91566) by dgp on 2009-08-21 05:10:34:

    1. closedate changed to: "2009-08-20T22:10:34"
    2. closer changed to: "dgp"
    3. icomment:
      
      
      allow_comments - 1
      
      
      Patch committed for 8.5.8 and 8.6b2.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"
  20. Ticket change [67198e1de2] (rid 102843) by dgp on 2009-08-22 02:11:48:

    1. icomment:
      
      subsequent commits corrected a regression.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"