Tcl Source Code

View Ticket
Login
Ticket UUID: 536937
Title: namespace / trace double-free crash
Type: Bug Version: obsolete: 8.3.4
Submitter: hobbs Created on: 2002-03-29 22:41:03
Subsystem: 07. Variables Assigned To: msofer
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2002-03-30 05:46:19
Resolution: Fixed Closed By: hobbs
    Closed on: 2002-03-29 22:46:19
Description:
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).
User Comments: hobbs added on 2002-03-30 05:46:19:

File Added - 20296: nametracedelete84.patch

Logged In: YES 
user_id=72656

patches attached and commited.

hobbs added on 2002-03-30 05:41:03:

File Added - 20295: nametracedelete.patch

Attachments: