Artifacts Associated With Ticket 453805ffffffffffffffffffffffffffffffffff
Ticket change [e1f7fe93aa] (rid 87539) by msofer on 2001-08-21 16:12:22:
- assignee initialized to: "melissachawla"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Tcl Version: 8.4a3 (today's HEAD) OS: linux 2.2.19 (RH 6.2) Compiler: egcs-2.91.66 (gcc) Comp flags: default + "-march=pentiumpro" Description: segfault in trace.test ./configure --disable-shared make make test All is OK till here, _but_: [mig@mini unix]$ ./tcltest ../tests/trace.test Segmentation fault (core dumped) [mig@mini unix]$ ./tcltest ../tests/trace.test -verbose trace.test: Total 185 Passed 185 Skipped 0 Failed 0 Categorizing as "tcltest" bug due to the different behaviour when verbose switch is on; may well be a bug somewhere else though ...
- foundin initialized to: "None"
- priority initialized to: "7 High"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "34. tcltest Package"
- title initialized to: "Segfault in trace.test"
- type initialized to: "Bug"
Ticket change [5669c14d46] (rid 94312) by hobbs on 2001-08-21 23:26:55:
- assignee changed to: "msofer"
- icomment:
Logged In: YES user_id=72656 This is likely due to a bug in the actual trace changes in 8.4, which should be hunted down. Assigning back to Miguel since he can reproduce this. Might need to go to Vince.
- login: "hobbs"
- mimetype: "text/plain"
- subsystem changed to: "07. Variables"
- username: "hobbs"
Ticket change [a0253a6d49] (rid 96752) by dgp on 2001-08-22 00:23:47:
- icomment:
Logged In: YES user_id=80530 This is very likely related to bug 219393. I don't see segfaults, but: trace.test: Total 185 Passed 185 Skipped 0 Failed 0 clover:unix: ./tcltest ../tests/trace.test -verbose ==== trace-9.1 be sure variable is unset before trace is called FAILED ==== Contents of test case: catch {unset x} set x 33 set info {} trace add variable x unset {traceCheck {uplevel set x}} unset x set info ---- Result was: 1 {can't read "x": no such variaale} ---- Result should have been (exact matching): 1 {can't read "x": no such variable} ==== trace-9.1 FAILED trace.test: Total 185 Passed 184 Skipped 0 Failed 1 Note the memory corruption mangling the error message. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [a7af3be3f5] (rid 98852) by msofer on 2001-08-22 01:01:59:
- icomment:
Logged In: YES user_id=148712 Doh ... today's head would be 8.4a4, not 8.4a3!
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [65ed5e6dfc] (rid 102625) by msofer on 2001-08-23 19:44:49:
- assignee changed to: "vincentdarley"
- icomment:
Logged In: YES user_id=148712 Vince: any ideas?
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
Ticket change [b68a75295e] (rid 125438) by dgp on 2001-08-23 20:26:05:
- icomment:
Logged In: YES user_id=80530 Does application of Patch 402501 have any effect on solving this bug?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [3bec0194c6] (rid 112838) by vincentdarley on 2001-08-23 22:15:33:
- icomment:
Logged In: YES user_id=32170 I have to say I have no obvious ideas of how the 8.4 changes would have affected this at all. I've never seen the problem, but can try to reproduce it.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [ffb68adc6f] (rid 108802) by dgp on 2001-08-23 23:00:42:
- icomment:
Logged In: YES user_id=80530 Patch 402501 is now updated.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [2adb49ecfb] (rid 118644) by vincentdarley on 2001-09-07 03:55:03:
- assignee changed to: "msofer"
- icomment:
Logged In: YES user_id=32170 With both debug and release builds and with and without '- verbose' I can't reproduce this on my Win2000 setup, so I'm afraid I'm not going to be able to help. I really can't think what can have changed here.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
Ticket change [520f6de493] (rid 126245) by msofer on 2001-09-07 21:16:38:
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=148712 It's a miracle, the bug seems to have fixed itself! I cannot reproduce it anymore with today's HEAD. As nobody seems to have found a probable cause, I'd be tempted to "close" or at least "works for me" the ticket if the segfault can't be reproduced. Assigning to Don: is it also fixed in your setup?
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
Ticket change [4335272291] (rid 116517) by dgp on 2001-09-07 23:12:50:
- icomment:
Logged In: YES user_id=80530 Don't close it. I confirm that the CVS HEAD no longer demonstrates the bug while running the trace.test, but in another patched version of Tcl, I do still see a segfault in trace.test. There's still a memory corruption problem in there. It might be the one identified in bug 219393, or it's possible it could be another one. Let's check again after 219393 is fixed.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [c52e6ddb77] (rid 111954) by dgp on 2001-09-20 02:10:28:
- icomment:
Logged In: YES user_id=80530 Latest commits brought back memory corruption in test trace-9.1 for me. Did it bring back segfaults for others? Increasing priority, so I'll actually get around to fixing this.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "dgp"
- icomment:
Ticket change [658c65cbd3] (rid 102568) by hobbs on 2001-09-20 03:19:12:
- icomment:
Logged In: YES user_id=72656 which latest commits? I still don't see anything (nor did I before) on Linux or Windows.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [ef757be75e] (rid 108997) by dgp on 2001-09-20 03:26:31:
- icomment:
Logged In: YES user_id=80530 Not to worry, Jeff. You haven't caused anything to go wrong. There's a memory corruption bug in the machinery of [trace]. I believe it's the bug described in 219393. The bug's existence is constant. The bugs visibility during 'make test' comes and goes depending on how unrelated code changes shift the memory corruption into areas where it does/doesn't matter. The commits of 2001-09-19 shifted it back into visibility for me. As we've established many times before, the memory allocator on Linux/Alpha tends to re-use freed memory more rapidly than many other platforms, so memory corruption bugs often make themselves visible only there.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [4210830280] (rid 116299) by dkf on 2001-09-20 16:38:03:
- icomment:
Logged In: YES user_id=79902 219393 is a nasty bug, but fixing it will require an API change. In my spare moments (hah!) I'm working on the TIP required...
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [23542ece9b] (rid 130905) by dgp on 2001-11-21 06:05:05:
- icomment:
Logged In: YES user_id=80530 Now that TIP 68 took care of the big problem, we can focus again on clearing away all memory problems with traces. Running the test suite with ElectricFence reveals that CallCommandTraces() in tclBasic.c needs some Tcl_Preserve() calls. Patch coming soon.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "cmdtrace.patch" [3b8e29546e] (rid 112768) by dgp on 2001-11-21 07:07:58.
Ticket change [45058681a8] (rid 116807) by dgp on 2001-11-21 07:07:58:
- assignee changed to: "msofer"
- icomment:
File Added - 13607: cmdtrace.patch Logged In: YES user_id=80530 Here's the patch. Assigning to maintainer for review and commit.
- login: "dgp"
- mimetype: "text/plain"
- subsystem changed to: "45. Parsing and Eval"
- title changed to: "Tcl_Preserve CommandTraces in CallCommandTraces"
- username: "dgp"
Ticket change [da5b729b28] (rid 107764) by msofer on 2001-11-21 18:55:14:
- assignee changed to: "dkf"
- icomment:
Logged In: YES user_id=148712 The patch lokks fine to me; testsuite approves too, on linux. As it patches tclCmdMZ.c, I'll ask Donal to give his OK too before committing.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
Ticket change [a6b1fc59e8] (rid 98649) by dkf on 2001-11-21 22:35:14:
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=79902 The tclCmdMZ.c changes look OK to me (the preservations are all done on internal structures so there are no non-obvious requirements on extensions using command traces, which is what I was really looking for.) Assigning back to Don for commit (and ChangeLog entry, which is main thing missing.)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
Ticket change [64949a3d56] (rid 92794) by dgp on 2001-11-22 02:55:43:
- icomment:
Logged In: YES user_id=80530 committed to HEAD.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"
- icomment:
Ticket change [1e1e08fb6e] (rid 90926) by dgp on 2001-11-22 02:55:44:
- closedate changed to: "2001-11-21T19:55:44"
- closer changed to: "dgp"