#1835 namespace / trace double-free crash

obsolete: 8.3.4
closed-fixed
miguel sofer
5
2002-03-29
2002-03-29
Jeffrey Hobbs
No

The following code creates a double-free situation in
Tcl 8.3.4/8.4a4:

namespace eval ::foo {
variable x 123
}
proc p1 args {
trace vdelete ::foo::x u p1
}
trace variable ::foo::x u p1
namespace delete ::foo

I've correct this with the attached patch for 8.3.4
(and am applying a similar patch for 8.4a4).

Discussion

  • Jeffrey Hobbs
    Jeffrey Hobbs
    2002-03-29

     
    Attachments
  • Jeffrey Hobbs
    Jeffrey Hobbs
    2002-03-29

    8.4a4 version of patch attached,

     
  • Jeffrey Hobbs
    Jeffrey Hobbs
    2002-03-29

    • status: open --> closed-fixed
     
  • Jeffrey Hobbs
    Jeffrey Hobbs
    2002-03-29

    Logged In: YES
    user_id=72656

    patches attached and commited.