Skip to content
Tcl Source Code History Of Ticket 1382528
Login

History Of Ticket 1382528

Artifacts Associated With Ticket 1382528

  1. Ticket change [88adf6aaae] (rid 131907) by a_kovalenko on 2005-12-16 15:55:16:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Test case:
      proc bad {} {
          dict for {k v} {} {}
          catch {whoops}
      }
      bad
      
      causes segfault (linux), access violation (windows).
      
      The crash itself appears in TclStackFree (when
      decrementing refcount), but seems to be related with
      Tcl_DictObjFirst / Tcl_DictObjDone behavior with empty
      values.
      
      
    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: "a_kovalenko"
    9. subsystem initialized to: "15. Dict Object"
    10. title initialized to: "dict for {k v} $emptyDict crashes"
    11. type initialized to: "Bug"
  2. Ticket change [fce90f4ff3] (rid 108316) by dkf on 2005-12-16 23:00:14:

    1. foundin changed to: "obsolete: 8.5a4"
    2. subsystem changed to: "47. Bytecode Compiler"
  3. Ticket change [9be5991004] (rid 111195) by dkf on 2005-12-16 23:00:15:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Only happens in compiled [dict for].
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. username: "dkf"
  4. Ticket change [a89962b712] (rid 99024) by a_kovalenko on 2005-12-16 23:48:18:

    1. icomment:
      Logged In: YES 
      user_id=241496
      
      I know. The problem is in exception ranges: beginCatch
      bytecode is not reached with empty dicts, but endCatch is.
      
      
    2. login: "a_kovalenko"
    3. mimetype: "text/plain"
    4. username: "a_kovalenko"
  5. Ticket change [52458a3c81] (rid 126287) by a_kovalenko on 2005-12-16 23:58:54:

    1. icomment:
      Logged In: YES 
      user_id=241496
      
      The patch solving this problem is attached. beginCatch is
      now emitted before the first JumpTrue.
      
      
    2. login: "a_kovalenko"
    3. mimetype: "text/plain"
    4. username: "a_kovalenko"
  6. Add attachment "dict-for.patch" [96524ce8cf] (rid 106303) by a_kovalenko on 2005-12-16 23:58:55.

  7. Ticket change [35b839f83d] (rid 106988) by a_kovalenko on 2005-12-16 23:58:55:

    1. icomment:
      
      
      File Added - 160100: dict-for.patch
      
      
      
    2. login: "a_kovalenko"
    3. mimetype: "text/plain"
    4. username: "a_kovalenko"
  8. Ticket change [5c1d197f17] (rid 118442) by dkf on 2005-12-19 05:42:40:

    1. closedate changed to: "2005-12-18T22:42:40"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      I'm not going with that because it is likely to inhibit
      future bytecode optimizations. Instead, I've split the code
      so that the handling of loop-exit is different from the
      handling of loop-never-entered. This is a few instructions
      longer, but probably faster.
      
      BTW, thanks for spotting that it was a problem with the
      management of the catch stack; I was stumped!
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"