Tcl Source Code

View Ticket
Login
Ticket UUID: 2713bfcb017be2405415ed136d49bef6ece05bd1
Title: TclOO: segmentation fault: deleting a class mixed into an object that calls a method on the class in a deletion trace.
Type: Bug Created on: 2017-11-29 15:15:34
Submitter: pooryorick Assigned to: nobody
Subsystem: 35. TclOO Package Severity: Important
Priority: 5 Medium Last modified: 2018-07-12 14:06:47
Status: Closed Closed by: pooryorick
Resolution: Fixed Closed on: 2018-07-12 14:06:47
Version: core-8-branch
Description:

With an interpreter compiled with --enable-symbols=all, the following script results in a segmentation fault:

oo::class create obj1
oo::objdefine obj1 {
	method deleted args {}
}
oo::copy obj1 obj2
oo::objdefine obj2 {
	mixin obj2 obj1
}
trace add command obj2 delete [list obj2 delete]
rename obj1 {}

User Comments:
pooryorick added on 2018-07-12 14:06:47:

Fixed in [edf61054642f324e].