Skip to content
Tcl Source Code History Of Ticket 3079830
Login

History Of Ticket 3079830

Artifacts Associated With Ticket 3079830

  1. Ticket change [bf28292cf8] (rid 102211) by kennykb on 2010-10-02 02:52:06:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The compiled path for [dict append] and [dict lappend] appears to be broken in the HEAD.
      
         1. $ tclsh8.6
         2. % set d {a 1 b 2 c 3}
         3. a 1 b 2 c 3
         4. % dict append d b 22
         5. a 1 b 222 c 3
         6. % proc x {} { set d {a 1 b 2 c 3}; dict append d b 22 }
         7. % x
         8. a 1 b 2 c 3
         9. % exit
        10.  
        11. $ tclsh8.5
        12. % set d {a 1 b 2 c 3}
        13. a 1 b 2 c 3
        14. % dict append d b 22
        15. a 1 b 222 c 3
        16. % proc x {} { set d {a 1 b 2 c 3}; dict append d b 22 }
        17. % x
        18. a 1 b 222 c 3
        19. % exit
      
      The problem appears to be in tclExecute.c, and not in the compilation proc (I first spotted it in attempting to run TAL code with a 'dictAppend' instruction.)
      
    4. foundin initialized to: "obsolete: 8.6b1.1"
    5. is_private initialized to: "0"
    6. priority initialized to: "7 High"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "kennykb"
    10. subsystem initialized to: "15. Dict Object"
    11. title initialized to: "compiled [dict append] and [dict lappend] broken"
    12. type initialized to: "Bug"
  2. Ticket change [f0e1a717f3] (rid 109273) by kennykb on 2010-10-02 09:54:18:

    1. icomment:
      It's somewhat alarming that there is no test case that detected this.
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  3. Ticket change [10f6d1e284] (rid 95060) by dkf on 2010-10-02 19:38:47:

    1. closedate changed to: "2010-10-02T12:38:47"
    2. closer changed to: "dkf"
    3. icomment:
      
      
      allow_comments - 1
      
      The problem was that there was a failure to invalidate the dictionary's string representation in some cases. Tcl_DictObjPut does it, but wasn't always called by compiled [dict append]. [dict lappend] had the same problem.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"