Skip to content
Tcl Source Code View Ticket
Login

View Ticket

TclOO segmentation fault cleaning up objects that that have mixed themselves into themselves.

Closed / Fixed6bca38d59b1f9c11272beb130b37e0fadcfbe1abCreated 9 years agoUpdated 9 years ago
Descriptionwiki2017-11-29 11:53:26
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 {}
Referenced by2
  • 3908414450Fix for [6bca38d59b], TclOO segmentation fault cleaning up objects that that have mixed themselves into themselves. check-in2018-02-15 09:10:02
  • 313a7c1b8aFix for [6bca38d59b], TclOO segmentation fault cleaning up objects that that have mixed themselves into themselves. check-in2017-11-29 12:01:21
pooryorickwiki2017-11-29 12:06:07

Fixed in [313a7c1b8a91].

Log in (anonymous is fine) to add a comment.