Artifacts Associated With Ticket 1374582fffffffff
Ticket change [9c2915b826] (rid 111238) by uring on 2005-12-06 16:11:06:
- assignee initialized to: "nijtmans"
- cmimetype initialized to: "text/plain"
- comment initialized to:
(1) run the following script: proc touch {listValue} { lset listValue 1 4 5 return $listValue } set data [list a [list 1 2 3] b] puts $data touch $data puts $data (2) you get the expected output: a {1 2 3} b a {1 2 3} b ... the proc "touch" has _not_ changed the variable "data" (3) now uncomment the first "puts $data" command and rerun the script (4) the output is a {1 7 3} b BTW: This does _not_ happen with tcl8.5a2. - foundin initialized to: "obsolete: 8.5a3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "uring"
- subsystem initialized to: "14. List Object"
- title initialized to: "invalid object modification"
- type initialized to: "Bug"
Ticket change [ee5478ed9b] (rid 104066) by msofer on 2005-12-06 23:26:28:
- assignee changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 Something is wrong in your description: mig@uhu:/home/CVS/tcl_SF_clean/unix$ cat /tmp/test0 proc touch {listValue} { lset listValue 1 4 5 return $listValue } set data [list a [list 1 2 3] b] puts $data touch $data puts $data mig@uhu:/home/CVS/tcl_SF_clean/unix$ ./tclsh /tmp/test0 a {1 2 3} b list index out of range while executing "lset listValue 1 4 5" (procedure "touch" line 2) invoked from within "touch $data" (file "/tmp/test0" line 7) - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
Ticket change [fe5bfb1f79] (rid 108574) by uring on 2005-12-06 23:40:33:
- icomment:
Logged In: YES user_id=123371 oops. the command in proc touch must read: lset listValue 1 1 7 sorry;
- login: "uring"
- mimetype: "text/plain"
- username: "uring"
- icomment:
Ticket change [46a7b1c41e] (rid 99552) by msofer on 2005-12-06 23:54:07:
- icomment:
Logged In: YES user_id=148712 I cannot reproduce the bug here; am I following your instructions correctly? mig@uhu:/home/CVS/tcl_SF_clean/unix$ cat /tmp/test0 proc touch {listValue} { lset listValue 1 1 7 return $listValue } set data [list a [list 1 2 3] b] puts $data touch $data puts $data mig@uhu:/home/CVS/tcl_SF_clean/unix$ ./tclsh /tmp/test0 a {1 2 3} b a {1 2 3} b mig@uhu:/home/CVS/tcl_SF_clean/unix$ cat /tmp/test1 proc touch {listValue} { lset listValue 1 1 7 return $listValue } set data [list a [list 1 2 3] b] #puts $data touch $data puts $data mig@uhu:/home/CVS/tcl_SF_clean/unix$ ./tclsh /tmp/test1 a {1 2 3} b - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [b9ae7fd548] (rid 129188) by uring on 2005-12-07 01:24:53:
- icomment:
Logged In: YES user_id=123371 > I cannot reproduce the bug here; am I following your > instructions correctly? Your approach is perfect. On our sites the version of TCL matters. [info patchlevel] should report something >=8.5a3 We can reproduce the bug on: linux - gcc 2.95.x linux - gcc 3.3.x windows VC7 I even checked the "latest" snapshot ( actually it was of yesterday ). If you can't reproduce the bug, what can we do to give you more precise information?
- login: "uring"
- mimetype: "text/plain"
- username: "uring"
- icomment:
Ticket change [9f83adb80b] (rid 96653) by msofer on 2005-12-07 02:19:59:
- closedate changed to: "2005-12-06T19:19:59"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 Neither I nor 4 other core maintainers could repro this bug. Let me give you some questions and homework to try to narrow it down. (1) these is obviously self-compiled tclsh; what compile flags did you use? (2) Did you run 'make install'? (not necessary if --disable-shared passed to ./configure) (3) Is your tclsh linked with any custom C code, or using extensions? (4) Are you running this at the command line? Could the a {1 7 3} b just be the return value of [touch] being output to the console? Or do you see this effect when running in batch mode? (5) Please repro what I did and confirm that you get different results: cd path/to/Tcl/unix make distclean ./configure --disable-shared make ... ./tclsh path/to/test0 ... ./tclsh path/to/test1 - login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Works For Me"
- status changed to: "Pending"
- username: "msofer"
Ticket change [96573d69dc] (rid 106309) by uring on 2005-12-07 03:56:20:
- icomment:
Logged In: YES user_id=123371 No custom code, pure tcl. Well, it's embarassing, since I've no idea what's going on. I just ran the following script: mkdir /tmp/tcltest cd /tmp/tcltest tar zxvf /archiv/tcl/tcl8.5a3-src.tar.gz cd tcl8.5a3/unix ./configure --disable-shared make ./tclsh /tmp/test0 ./tclsh /tmp/test1 ...and could repro the misbehaviour. i.e. - no custom tclsh - no custom extensions Well, tomorrow I'll go to think about how to improve the documentation of the facts we're observing.
- login: "uring"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "uring"
- icomment:
Ticket change [f01601287c] (rid 109117) by msofer on 2005-12-07 04:44:23:
- icomment:
Logged In: YES user_id=148712 AHA! Repro succesfull with 8.5a3! It looks like a bug that has been fixed in HEAD. Could you verify with a current tclsh? My impression is that this is another aspect of Bug #1333036, fixed on 2005-10-20. PS: cvs nightly snapshots at ftp://www.tcl.tk/pub/tcl/nightly-cvs/
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "None"
- username: "msofer"
- icomment:
Ticket change [e18168f662] (rid 87460) by uring on 2005-12-07 16:10:54:
- icomment:
Logged In: YES user_id=123371 Well, I checked out tcl-20051205 from ftp://www.tcl.tk/pub/tcl/nightly-cvs/ Things are OK now. Thanks a lot.
- login: "uring"
- mimetype: "text/plain"
- username: "uring"
- icomment:
Ticket change [21286e8952] (rid 130531) by msofer on 2005-12-07 18:46:56:
- closedate changed to: "2005-12-07T11:46:56"
- closer changed to: "msofer"
- resolution changed to: "Duplicate"
- status changed to: "Closed"