Artifacts Associated With Ticket 1220058fffffffffffffffffffffffffffffffff
Ticket change [ce3e84d80d] (rid 96019) by duquette on 2005-06-14 00:44:26:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Problem Behavior: Tcl halts with a bus error The following code creates an ensemble command using "namespace ensemble", and then renames the ensemble to "". A rename trace fires which deletes the namespace, which is when Tcl terminates with a bus error. The code is a much simplified version of something I found while working on Snit 2.0. Note that in Snit 1.0 the only difference is that the command is a standard proc, not a namespace ensemble, and there's no error. namespace eval ::foo:: { namespace ensemble create -command ::bar } trace add command ::bar delete DeleteTrace proc DeleteTrace {old new op} { puts "DeleteTrace [list $old $new $op]" trace remove command ::bar delete DeleteTrace # If this line is removed, there's no bus error, rename $old "" # This next line causes the bus error namespace delete ::foo:: } rename ::bar "" - foundin initialized to: "obsolete: 8.5a3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "duquette"
- subsystem initialized to: "None"
- title initialized to: "namespace delete in rename trace causes bus error"
- type initialized to: "Bug"
Ticket change [b89dfd0391] (rid 128993) by msofer on 2005-06-14 07:52:30:
- assignee changed to: "dkf"
- subsystem changed to: "21. [namespace]"
Ticket change [aea80c65b8] (rid 101675) by dkf on 2005-06-14 20:44:37:
- icomment:
Logged In: YES user_id=79902 Ooh, this is an evil one. It turns out that it is now possible for the same command token to hit Tcl_DeleteCommandFromToken *three* times, which causes Bad Things To Happen.
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "dkf"
- icomment:
Ticket change [6a8f6d4612] (rid 128179) by dkf on 2005-06-14 20:46:20:
- closedate changed to: "2005-06-14T13:46:20"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 Fixed in HEAD.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"