Skip to content
Tcl Source Code History Of Ticket 2008248
Login

History Of Ticket 2008248

Artifacts Associated With Ticket 2008248

  1. Ticket change [1a890f96c5] (rid 122994) by ajpasadyn on 2008-07-01 20:51:39:

    1. assignee initialized to: "nijtmans"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I found an issue while using TclBlend in Tcl 8.5, and the attached script demonstrates it.  Basically, the conversion of an internal representation from list to dict is special cased to keep the representations of the elements, while the conversion from dict to list passes through a string-only representation.  This appears even in code that does not explicitly use dict because the array get and set have changed to use dict now.
      
      TclBlend uses a special internal representation to hold references to Java objects, and if the internal representation is lost then the underlying object might get freed.  This violates the "everything is a string" but in the past it's been sufficient to just make sure that the Tcl script itself was careful with the references it obtained.  If the Tcl core changes internal representations beyond what is needed then an extension like this really does not seem to have much of a chance of working.
      
      
    4. foundin initialized to: "None"
    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: "ajpasadyn"
    10. subsystem initialized to: "14. List Object"
    11. title initialized to: "dict to list changes element representations"
    12. type initialized to: "Bug"
  2. Add attachment "jtest.tcl" [6238afd5cf] (rid 92377) by ajpasadyn on 2008-07-02 03:51:39.

  3. Ticket change [8cf179eaac] (rid 127825) by ajpasadyn on 2008-07-02 03:51:39:

    1. icomment:
      
      
      File Added - 283351: jtest.tcl
      
      
      
    2. login: "ajpasadyn"
    3. mimetype: "text/plain"
    4. username: "ajpasadyn"
  4. Ticket change [3179ac9852] (rid 93434) by ajpasadyn on 2008-07-02 03:54:39:

    1. icomment:
      
      
      File Added - 283352: tcllist.patch
      
      Logged In: YES 
      user_id=1055638
      Originator: YES
      
      The attached patch seems to work for me, but I'd appreciate it if someone more familiar with this code could check it out.
      File Added: tcllist.patch
      
      
    2. login: "ajpasadyn"
    3. mimetype: "text/plain"
    4. username: "ajpasadyn"
  5. Ticket change [f33d932967] (rid 129672) by ajpasadyn on 2008-07-02 05:33:59:

    1. icomment:
      Logged In: YES 
      user_id=1055638
      Originator: YES
      
      OK there is definitely something wrong with that patch because I got a crash in clock format with it applied.  I'll look at it some more, but hopefully it's more obvious to someone here.
      
      
    2. login: "ajpasadyn"
    3. mimetype: "text/plain"
    4. username: "ajpasadyn"
  6. Ticket change [34d811c8f5] (rid 106816) by ajpasadyn on 2008-07-02 23:02:33:

    1. icomment:
      
      
      File Deleted - 283352: 
      
      
      
    2. login: "ajpasadyn"
    3. mimetype: "text/plain"
    4. username: "ajpasadyn"
  7. Ticket change [06cd4da6da] (rid 89273) by ajpasadyn on 2008-07-02 23:07:27:

    1. icomment:
      
      
      File Added - 283441: tcllist.patch
      
      Logged In: YES 
      user_id=1055638
      Originator: YES
      
      It appears my mistake was not always passing at least 1 to NewListIntRep.  I've fixed that.  The reason it crashed was that the core is calling SetListFromAny with a null interp from several places.  I had copied the Tcl_SetObjResult call when NewListIntRep fails from the "from string rep" branch in the same routine, so it hadn't occurred to me it wasn't safe.
      File Added: tcllist.patch
      
      
    2. login: "ajpasadyn"
    3. mimetype: "text/plain"
    4. username: "ajpasadyn"
  8. Add attachment "tcllist.patch" [5107f39d33] (rid 126067) by ajpasadyn on 2008-07-02 23:07:27.

  9. Ticket change [f36265b72f] (rid 129701) by dkf on 2008-07-11 14:52:01:

    1. assignee changed to: "dkf"
  10. Ticket change [19682ba172] (rid 122799) by dkf on 2008-07-11 17:39:45:

    1. foundin changed to: "obsolete: 8.5.3"
    2. icomment:
      Logged In: YES 
      user_id=79902
      Originator: NO
      
      While Tcl's never guaranteed anything about representations, it would be nice to not lose them.
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. priority changed to: "7 High"
    6. username: "dkf"
  11. Ticket change [6f05baa9c3] (rid 100239) by dkf on 2008-07-21 00:56:14:

    1. icomment:
      Logged In: YES 
      user_id=79902
      Originator: NO
      
      Fixed on HEAD. Backport needed.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  12. Ticket change [62c240468f] (rid 92458) by dkf on 2008-07-21 05:06:20:

    1. closedate changed to: "2008-07-20T22:06:20"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      Originator: NO
      
      Backported to 8.5 branch. Patch actually used takes some shortcuts that your suggestion didn't (since I know what the pre- and post-conditions on the core dict API functions are) but is otherwise the same. Thanks.
      
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"