Skip to content
Tcl Source Code History Of Ticket 1677512
Login

History Of Ticket 1677512

Artifacts Associated With Ticket 1677512

  1. Ticket change [e0542986fc] (rid 115171) by dgp on 2007-03-09 18:37:47:

    1. assignee initialized to: "nijtmans"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      The TclLsetFlat() routine appears
      to suffer from the same problem
      mentioned in 1675044.  
      
      It is possible for an
      unshared "list" Tcl_Obj
      to have a List intrep that
      it shares with another Tcl_Obj.
      In TclLsetFlat, care is taken
      to avoid shared List intreps only
      when the Tcl_Obj itself is shared.
      Otherwise the direct surgery
      on the List struct might leak to
      other values.
      
      As with 1675044, it is remarkably
      difficult to construct a demo script
      for this possibility.  Not accomplished
      so far.
      
      
    4. foundin initialized to: "obsolete: 8.5a6"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "14. List Object"
    11. title initialized to: "lset shared intrep bug"
    12. type initialized to: "Bug"
  2. Ticket change [2da5f3bf47] (rid 119100) by dgp on 2007-03-14 02:18:35:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      The actual value setting
      gets done by the
      TclListObjSetElement()
      routine, which does the
      right intrep sharing safety
      checks to avoid trouble.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. resolution changed to: "Invalid"
    6. username: "dgp"
  3. Ticket change [fe7a02fdea] (rid 108597) by dgp on 2007-03-15 00:50:03:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      spoke too soon. here's the test:
      
      testConstraint testobj [llength [info commands testobj]]
      test lset-15.1 {lset: shared intrep [Bug 1677512]} -setup {
          teststringobj set 1 {{1 2} 3}
          testobj convert 1 list
          testobj duplicate 1 2
          variable x [teststringobj get 1]
          variable y [teststringobj get 2]
          testobj freeallvars
          set l [list $y z]
          unset y
      } -constraints testobj -body {
          lset l 0 0 0 5
          lindex $x 0 0
      } -cleanup {
          unset -nocomplain x l
      } -result 1
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. resolution changed to: "None"
    5. username: "dgp"
  4. Ticket change [906ec5468c] (rid 120451) by dgp on 2007-03-16 01:23:47:

    1. icomment:
      
      
      File Added - 220723: 1677512.patch
      
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      attached patch fixes the bug,
      but might possibly be too
      inefficient, by making surplus
      copies when the variable being
      [lset] holds an unshared value.
      File Added: 1677512.patch
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [854aa5a6e4] (rid 131291) by dgp on 2007-03-17 01:07:41:

    1. icomment:
      
      
      File Deleted - 220723: 
      
      
      
      File Added - 220910: 1677512.patch
      
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      Updated patch resolves
      the surplus copies problem.
      File Added: 1677512.patch
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [f5cdad0ec1] (rid 130176) by dgp on 2007-03-17 02:13:24:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      Note that the rewritten
      TclLsetFlat in the patch
      explicitly calls
      Tcl_IncrRefCount(resultPtr)
      just before it returns
      resultPtr, to keep compat with
      the refCount conventions
      TclLsetFlat has always had.
      
      This increment no longer serves
      any purpose, so it could be
      dropped while changing all callers
      at the same time.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [78693a614f] (rid 89958) by dgp on 2007-03-17 12:08:27:

    1. icomment:
      
      
      File Added - 220971: revised.patch
      
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      Revised patch merges the two loops
      back into one, and starts to look
      more like the previous implementation.
      It still offers the possibility of
      dropping the artificial refcount
      bump of the returned value.
      File Added: revised.patch
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Add attachment "1677512.patch" [3b1110f27b] (rid 112666) by dgp on 2007-03-18 02:00:49.

  9. Ticket change [5b5357ea12] (rid 118300) by dgp on 2007-03-18 02:00:49:

    1. assignee changed to: "kennykb"
    2. icomment:
      
      
      File Deleted - 220971: 
      
      
      
      File Added - 221035: 1677512.patch
      
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      Latest patch has much
      code cleanup and commentary.
      I think it's suitable for
      commit, with any further changes
      (refcount revision) to happen
      post commit.  passing to kbk
      for review.
      File Added: 1677512.patch
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  10. Ticket change [2321fb655f] (rid 130868) by kennykb on 2007-03-21 03:49:11:

    1. closedate changed to: "2007-03-20T20:49:11"
    2. closer changed to: "kennykb"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"
  11. Ticket change [ca8867c1c0] (rid 95365) by dgp on 2007-03-21 03:50:01:

    1. assignee changed to: "dgp"