Skip to content
Tcl Source Code History Of Ticket d553228d9fcbd172
Login

History Of Ticket d553228d9fcbd172

Artifacts Associated With Ticket d553228d9fcbd172

  1. Ticket change [8d054d50a5] (rid 146607) by pooryorick on 2016-05-01 00:04:11:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. 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>
      
    5. foundin initialized to: "8.6.5"
    6. is_private initialized to: "0"
    7. login: "pooryorick"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "a5d657bd6eb6e75747f01adab66e620d8b96868f"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "pooryorick"
    14. subsystem initialized to: "15. Dict Object"
    15. title initialized to: "lassign + dict update == segmentation fault"
    16. type initialized to: "Bug"
  2. Ticket change [e28699a805] (rid 146608) by anonymous on 2016-05-01 02:15:58:

    1. 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:
      
    2. login: "anonymous"
    3. mimetype: "text/plain"
    4. username: "aspect"
  3. Add attachment "d553228d9f.patch" [f80a2936bc] (rid 146609) by anonymous on 2016-05-01 02:17:24.

  4. Ticket change [4708e28453] (rid 147013) by dgp on 2016-06-20 21:50:10:

    1. assignee changed to: "dkf"
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "8"
    5. severity changed to: "Critical"
  5. Ticket change [4e61e32180] (rid 147088) by dkf on 2016-06-23 08:20:51:

    1. closedate changed to: "2457562.84782076"
    2. closer changed to: "dkf"
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. priority changed to: "9 Immediate"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
  6. Ticket change [584e5485f4] (rid 147091) by dkf on 2016-06-23 08:22:30:

    1. closedate changed to: "2457562.84896361"
    2. icomment: "Good test case and patch. In 8.6 and trunk."
    3. login: "dkf"
    4. mimetype: "text/html"
    5. username: "dkf"