Skip to content
Tcl Source Code History Of Ticket 1220058
Login

History Of Ticket 1220058

Artifacts Associated With Ticket 1220058

  1. Ticket change [ce3e84d80d] (rid 96019) by duquette on 2005-06-14 00:44:26:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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 ""
      
      
    4. foundin initialized to: "obsolete: 8.5a3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "duquette"
    9. subsystem initialized to: "None"
    10. title initialized to: "namespace delete in rename trace causes bus error"
    11. type initialized to: "Bug"
  2. Ticket change [b89dfd0391] (rid 128993) by msofer on 2005-06-14 07:52:30:

    1. assignee changed to: "dkf"
    2. subsystem changed to: "21. [namespace]"
  3. Ticket change [aea80c65b8] (rid 101675) by dkf on 2005-06-14 20:44:37:

    1. 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.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. username: "dkf"
  4. Ticket change [6a8f6d4612] (rid 128179) by dkf on 2005-06-14 20:46:20:

    1. closedate changed to: "2005-06-14T13:46:20"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      Fixed in HEAD.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"