Artifacts Associated With Ticket 3079830fffffffff
Ticket change [bf28292cf8] (rid 102211) by kennykb on 2010-10-02 02:52:06:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- 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.) - foundin initialized to: "obsolete: 8.6b1.1"
- is_private initialized to: "0"
- priority initialized to: "7 High"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "kennykb"
- subsystem initialized to: "15. Dict Object"
- title initialized to: "compiled [dict append] and [dict lappend] broken"
- type initialized to: "Bug"
Ticket change [f0e1a717f3] (rid 109273) by kennykb on 2010-10-02 09:54:18:
- icomment:
It's somewhat alarming that there is no test case that detected this.
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment:
Ticket change [10f6d1e284] (rid 95060) by dkf on 2010-10-02 19:38:47:
- closedate changed to: "2010-10-02T12:38:47"
- closer changed to: "dkf"
- 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.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"