Tcl Source Code

View Ticket
Login
Ticket UUID: 6bca38d59b1f9c11272beb130b37e0fadcfbe1ab
Title: TclOO segmentation fault cleaning up objects that that have mixed themselves into themselves.
Type: Bug Created on: 2017-11-29 11:53:26
Submitter: pooryorick Assigned to: nobody
Subsystem: 35. TclOO Package Severity: Minor
Priority: 5 Medium Last modified: 2017-11-29 12:06:07
Status: Closed Closed by: pooryorick
Resolution: Fixed Closed on: 2017-11-29 12:06:07
Version: core-8-5-branch
Description:

With a tclsh built with --enable-symbols=all or (mem), the following snippet triggers a segmentation fault in ReleaseClassContents():

oo::class create obj

oo::copy obj obj1 obj1
oo::objdefine obj1 {
	mixin obj1 obj
}
oo::copy obj1 obj2
oo::objdefine obj2 {
	mixin obj2 obj1
}
rename obj2 {}
rename obj1 {}

User Comments:
pooryorick added on 2017-11-29 12:06:07:

Fixed in [313a7c1b8a91].