Skip to content
Tcl Source Code History Of Ticket 1752124
Login

History Of Ticket 1752124

Artifacts Associated With Ticket 1752124

  1. Ticket change [7a02ba11a0] (rid 90231) by dgp on 2007-07-11 17:52:52:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      The most recent commit to tclPathObj.c,
      1.62 -> 1.63, causes a crash in the
      trofs test suite (test trofs-12.8).
      
      Examining...
      
      
    4. foundin initialized to: "obsolete: 8.5a7"
    5. is_private initialized to: "0"
    6. priority initialized to: "9 Immediate"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "37. File System"
    11. title initialized to: "new tclPathObj.c crash"
    12. type initialized to: "Bug"
  2. Ticket change [5c322545b3] (rid 115256) by dgp on 2007-07-12 01:22:55:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2007-07-11T18:22:55"
    3. closer changed to: "dgp"
    4. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      Looking like this is really a bug
      in trofs, just exposed by the changes
      to refcount logic.  These changes
      appear to have extended (created?)
      a Hairy Monster nature for the
      Tcl_FSGetNormalizedPath routine.
      
      The pathPtr passed in to
      Tcl_FSGetNormalizedPath has
      fsPathPtr->translatedPathPtr with
      zero refCount.  Since the pointer is
      stored, there ought to be a refcount
      to go with that.  Still need to look
      it over with care, but that's probably
      trofs's fault.
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Invalid"
    8. status changed to: "Pending"
    9. username: "dgp"
  3. Ticket change [53d4fc4b88] (rid 93825) by dgp on 2007-07-12 01:33:39:

    1. assignee changed to: "kennykb"
    2. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      Nope. trofs never touches that
      field at all.  It's the Tcl core
      that permits that field to hold
      a pointer value, but leave the
      Tcl_Obj pointed to with zero refcount,
      apparently due to some very complex
      requirements of some circular reference
      scheme.
      
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. resolution changed to: "None"
    6. status changed to: "Open"
    7. username: "dgp"
  4. Ticket change [4038ee0f02] (rid 121599) by dgp on 2007-07-12 02:13:22:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      Was able to workaround the issue
      with changes to trofs.  The code which
      is not safe looks like:
      
      Tcl_FSGetNormalizedPath(NULL, 
          Tcl_FSJoinToPath(parent, 1, &element));
      
      where T_FSJTP can return a zero
      refcount Tcl_Obj, and T_FSGNP can
      free it just by trying to determine
      its normalized form.
      
      Probably should add warnings to the
      docs that it's not safe to pass
      zero refcount pathPtr values to
      T_FSGNP().
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "5 Medium"
    5. title changed to: "Tcl_FSGetNormalizedPath is hairier monster"
    6. username: "dgp"
  5. Ticket change [f1b7787959] (rid 109405) by dgp on 2007-07-12 02:14:28:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      Something else to consider is whether
      T_FSGNP ought to immediately panic
      if handed a zero refcount pathPtr.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"