Skip to content
Tcl Source Code History Of Ticket 1325099
Login

History Of Ticket 1325099

Artifacts Associated With Ticket 1325099

  1. Ticket change [7f1e7b7907] (rid 97522) by nobody on 2005-10-12 18:19:01:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Tested on Solaris 8, 9 with both tclsh and tclkit8.5a4
      
      file exists ~//.nonexistant
      file exists ~///.nonexistant
      etc.
      
      causes tcl to dump core when executed inside a script.
      
      file exists ~/.nonexistant
      
      does not. Same happens for file isfile, etc.
      
      Even more puzzling, if I execute the code interactively
      from tclkit
      prompt, it works!  If I execute it from a script, it
      coredumps.
      
      The same code works ok on Linux. 
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "37. File System"
    10. title initialized to: "Solaris coredump with pure Tcl"
    11. type initialized to: "Bug"
  2. Ticket change [42e3ffef96] (rid 116450) by hobbs on 2005-10-13 01:38:37:

    1. foundin changed to: "obsolete: 8.5a4"
    2. icomment:
      Logged In: YES 
      user_id=72656
      
      Confirmed in 8.5, not a problem in 8.4.
      
      dbx stack trace:
      
      signal SEGV (no mapping at the fault address) in
      SetFsPathFromAny at line 2332 in file "tclPathObj.c"
       2332                       TclpNativeJoinPath(transPtr,
      TclGetString(*objv++));
      (dbx) where
      =>[1] SetFsPathFromAny(interp = 0x8063810, pathPtr =
      0x806c4b8), line 2332 in "tclPathObj.c"
        [2] Tcl_ConvertToType(interp = 0x8063810, objPtr =
      0x806c4b8, typePtr = 0xfefb89f4), line 599 in "tclObj.c"
        [3] Tcl_FSConvertToPathType(interp = 0x8063810, pathPtr =
      0x806c4b8), line 1128 in "tclPathObj.c"
        [4] CheckAccess(interp = 0x8063810, pathPtr = 0x806c4b8,
      mode = 0), line 1387in "tclCmdAH.c"
        [5] Tcl_FileObjCmd(dummy = (nil), interp = 0x8063810, objc
      = 3, objv = 0x804758c), line 925 in "tclCmdAH.c"
        [6] TclEvalObjvInternal(interp = 0x8063810, objc = 3, objv
      = 0x804758c, command = 0x806a7d3 "file exists
      ~//.nonexistant\nfile exists ~///.nonexistant\n", length =
      28, flags = 0), line 3379 in "tclBasic.c"
        [7] Tcl_EvalEx(interp = 0x8063810, script = 0x806a7b8
      "file exists ~/.nonexistant\nfile exists
      ~//.nonexistant\nfile exists ~///.nonexistant\n", numBytes =
      84, flags = 0), line 3850 in "tclBasic.c"
      
      
      
    3. login: "hobbs"
    4. mimetype: "text/plain"
    5. priority changed to: "9 Immediate"
    6. username: "hobbs"
  3. Ticket change [f6ae01cc77] (rid 130336) by dkf on 2005-10-13 05:46:02:

    1. assignee changed to: "dkf"
    2. closedate changed to: "2005-10-12T22:46:02"
    3. closer changed to: "dkf"
    4. icomment:
      Logged In: YES 
      user_id=79902
      
      Oooh, that looks bad:
        TclGetString(*objv++)
      combining a macro and post-increment can't be good. (And
      it's my fault; must have been tired when I did that.)
      
      FWIW, it crashed for me on Linux too. The non-crash was
      probably a library versioning problem come to save the day...
      
      Fix works for me on Linux; please reopen if it fails on Sol
      (or anywhere else).
      
      
    5. login: "dkf"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "dkf"