Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2018-07-12
14:06 • Closed ticket [2713bfcb01]: TclOO: segmentation fault: deleting a class mixed i... artifact: df52481a1a user: pooryorick
2017-12-21
22:08 • Ticket [90657479e8] code review [2201fdb82c] status still Open with 3 other ... artifact: 1a3be8fbb5 user: pooryorick
2017-11-29
15:17 • Ticket [2713bfcb01] TclOO: segmentation fault: deleting a class mixed into an o... artifact: d159ba1f2a user: pooryorick
15:15 • New ticket [2713bfcb01]. artifact: cd917e6ad6 user: pooryorick

TclOO: segmentation fault: deleting a class mixed into an object that calls a method on the class in a deletion trace.

Closed / Fixed2713bfcb017be2405415ed136d49bef6ece05bd1Created 9 years agoUpdated 8 years ago
Descriptionwiki2017-11-29 15:15:34
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 {}
pooryorick Ticket [2713bfcb01]: 3 changes [History diff]2017-11-29 15:17:25
pooryorickwiki2018-07-12 14:06:47

Fixed in [edf61054642f324e].

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