Artifacts Associated With Ticket 1675044fffffffffffffffffffffffffffffffff
Ticket change [bf74e19829] (rid 102255) by dgp on 2007-03-06 16:11:28:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- 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.
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "17. Commands I-L"
- title initialized to: "lreverse shared intrep bug"
- type initialized to: "Bug"
Ticket change [7101890ddf] (rid 100587) by dkf on 2007-03-11 23:56:04:
- closedate changed to: "2007-03-11T16:56:04"
- closer changed to: "dkf"
- foundin changed to: "obsolete: 8.5a6"
- 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).
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"
Ticket change [1a4a9f6763] (rid 122954) by dgp on 2007-03-14 00:30:31:
- 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 - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment: