Artifacts Associated With Ticket d553228d9fcbd172
Ticket change [8d054d50a5] (rid 146607) by pooryorick on 2016-05-01 00:04:11:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
The following script produces a segmentation fault: <code><verbatim> apply {{} { set item hello lassign $item one item dict update item item item two two {} }} </verbatim></code> - foundin initialized to: "8.6.5"
- is_private initialized to: "0"
- login: "pooryorick"
- priority initialized to: "5 Medium"
- private_contact initialized to: "a5d657bd6eb6e75747f01adab66e620d8b96868f"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "pooryorick"
- subsystem initialized to: "15. Dict Object"
- title initialized to: "lassign + dict update == segmentation fault"
- type initialized to: "Bug"
Ticket change [e28699a805] (rid 146608) by anonymous on 2016-05-01 02:15:58:
- icomment:
Slightly simpler test script: proc t {} {lassign {} item; dict update item item item two two {}} t My suspicion is that the initial loop in INST_DICT_UPDATE_START isn't robust against dictPtr being free()d while it's looping, and [lassign] contributes by only by putting a value in $item with low refcount. The attached patch eliminates the segfault with this test script, but I haven't tested it any further: - login: "anonymous"
- mimetype: "text/plain"
- username: "aspect"
- icomment:
Add attachment "d553228d9f.patch" [f80a2936bc] (rid 146609) by anonymous on 2016-05-01 02:17:24.
Ticket change [4708e28453] (rid 147013) by dgp on 2016-06-20 21:50:10:
- assignee changed to: "dkf"
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "8"
- severity changed to: "Critical"
Ticket change [4e61e32180] (rid 147088) by dkf on 2016-06-23 08:20:51:
- closedate changed to: "2457562.84782076"
- closer changed to: "dkf"
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [584e5485f4] (rid 147091) by dkf on 2016-06-23 08:22:30:
- closedate changed to: "2457562.84896361"
- icomment: "Good test case and patch. In 8.6 and trunk."
- login: "dkf"
- mimetype: "text/html"
- username: "dkf"