Artifacts Associated With Ticket 807243ffffffffffffffffffffffffffffffffff
Ticket change [51dfafceac] (rid 126202) by markgsaye on 2003-09-16 16:31:05:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Consider: proc test {args} {} proc trace:command {oldName newName op} { puts "proc trace:command \[$oldName\] \[$newName\] \[$op\]" } proc trace:execution {string op} { puts "proc trace:execution \[$string\] \[$op\]" } trace add command ::test delete [list trace:command] trace add execution ::test enter [list trace:execution] Now doing: % trace info command ::test {delete trace:command} {{} trace:execution} % trace info execution ::test {{} trace:command} {enter trace:execution} Note how the execution trace adds to the 'trace info command' with an empty 'op', and vice versa. - foundin initialized to: "obsolete: 8.4.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "markgsaye"
- subsystem initialized to: "46. Traces"
- title initialized to: "trace info empty op"
- type initialized to: "Bug"
Ticket change [7bd0f2707d] (rid 96971) by dgp on 2003-09-24 07:09:09:
- icomment:
Logged In: YES user_id=80530 Both [t i command] and [t i execution] call on Tcl_CommandTraceInfo() to introspect the traces, even though Tcl_CTI is documented only to return information on "command" traces, not "execution" ones. For 8.4.x, it seems the bogus entries could be filtered out of the returned lists. For 8.5, these separate trace sets should be separated in their implementation as well.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [f4d939b1f5] (rid 129994) by dgp on 2003-09-24 08:14:57:
- icomment:
Logged In: YES user_id=80530 Here's a test case inspired by the report: test trace-31.1 {command and execution traces shared struct} { proc foo {} {} trace add command foo delete foo trace add execution foo enter foo set result [trace info command foo] rename foo {} set result } [list [list delete foo]] This test causes a segfault. There are bigger problems here. - login: "dgp"
- mimetype: "text/plain"
- priority changed to: "8"
- username: "dgp"
- icomment:
Ticket change [27a94713e8] (rid 88558) by dgp on 2003-09-24 08:59:30:
- icomment:
Logged In: YES user_id=80530 Ok, that's a separate problem. Let's not confuse these matters. That segfault is apparently due to an attempt to trigger a delete trace that calls the traced command. That's pretty tricky; perhaps not too surprising it's broken.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "5 Medium"
- username: "dgp"
- icomment:
Add attachment "807243.patch" [ed0b5001fd] (rid 103813) by dgp on 2003-09-24 09:11:08.
Ticket change [5b8ef40b9d] (rid 118349) by dgp on 2003-09-24 09:11:08:
- icomment:
File Added - 62331: 807243.patch Logged In: YES user_id=80530 here's an 8.4 patch just for the reported problem.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [d14b8b8b57] (rid 113323) by dgp on 2003-09-24 09:17:10:
- foundin changed to: "obsolete: 8.5a0"
- icomment:
Logged In: YES user_id=80530 Patch committed for 8.4.5 Bug still open on 8.5 branch pending a better fix.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [d49826367a] (rid 123478) by dgp on 2003-10-03 01:08:40:
- closedate changed to: "2003-10-02T18:08:40"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 commiting same fix to HEAD. Cleaner fixes will be a long time in coming. Test suite entry should stop us making the same bug again.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"