Skip to content
Tcl Source Code History Of Ticket 1675044fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1675044fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1675044fffffffffffffffffffffffffffffffff

  1. Ticket change [bf74e19829] (rid 102255) by dgp on 2007-03-06 16:11:28:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      It is possible for an
      unshared "list" Tcl_Obj
      to have a List intrep that
      it shares with another Tcl_Obj.
      This means that checking for
      a shared Tcl_Obj isn't enough,
      a check for a shared intrep is
      also needed before any direct
      modifications of the intrep, as
      are done around lines 3386-3393.
      
      Would probably be better to shift
      the proper functionality that would
      rely more on intrep details to
      tclListObj.c, and then call some
      new routine like TclListObjReverse().
      
      I have not yet been able to construct
      a test script to demo the bug.
      
    4. foundin initialized to: "None"
    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: "17. Commands I-L"
    11. title initialized to: "lreverse shared intrep bug"
    12. type initialized to: "Bug"
  2. Ticket change [7101890ddf] (rid 100587) by dkf on 2007-03-11 23:56:04:

    1. closedate changed to: "2007-03-11T16:56:04"
    2. closer changed to: "dkf"
    3. foundin changed to: "obsolete: 8.5a6"
    4. icomment:
      Logged In: YES 
      user_id=79902
      Originator: NO
      
      Fixed (though I worry that it was never possible to demonstrate the bug in a test).
      
      
    5. login: "dkf"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "dkf"
  3. Ticket change [1a4a9f6763] (rid 122954) by dgp on 2007-03-14 00:30:31:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      Here's a test:
      
      testConstraint testobj [llength [info commands testobj]]
      test cmdIL-7.7 {lreverse command - shared intrep [Bug 1675044]} -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
          proc K {a b} {return $a}
      } -constraints testobj -body {
          lreverse [K $y [unset y]]
          lindex $x 0
      } -cleanup {
          unset -nocomplain x y
          rename K {}
      } -result 1
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"