Artifacts Associated With Ticket 3c32a3f8bd054837
Ticket change [37b03fcd24] (rid 157631) by pooryorick on 2017-11-01 20:48:42:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
The following script causes a segmentation fault <code><verbatim> proc dying {_ args} { puts [list $_ is dying] } oo::define oo::class {export createWithNamespace} oo::class createWithNamespace obj1 obj1 ::oo::define obj1 {self mixin [self]} ::oo::copy obj1 obj2 ::oo::objdefine obj2 {mixin [self]} ::oo::copy obj2 obj3 trace add command obj3 delete [list obj3 dying] rename obj2 {} </verbatim></code> - foundin initialized to: "trunk"
- is_private initialized to: "0"
- login: "pooryorick"
- priority initialized to: "5 Medium"
- private_contact initialized to: "e476148cded301ffff84bcdc432536dc0c949e88"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "pooryorick"
- subsystem initialized to: "35. TclOO Package"
- title initialized to: "TclOO - mixing an object"
- type initialized to: "Bug"
Ticket change [d69854ed4b] (rid 157632) by pooryorick on 2017-11-01 20:57:39:
- icomment:
The problem lies in TclOO.c/ReleaseClassContents(), in a section that seems to be about removing a class that has been mixed into one of its instances (an unusual use case, to say the least): <code><verbatim> for(j=0 ; j<instancePtr->mixins.num ; j++) { Class *mixin = instancePtr->mixins.list[j]; if (mixin == clsPtr) { instancePtr->mixins.list[j] = NULL; } } </verbatim></code> Leaving a <code>NULL<code> in the list breaks expectations. Instead, that particular item should be unstitched from the list. - login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [43d1bf64af] (rid 158620) by pooryorick on 2017-11-17 23:06:36:
- closedate changed to: "2458075.46292816"
- closer changed to: "pooryorick"
- icomment: "Fixed in commit [5f178e7f03]."
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
- status changed to: "Closed"
Ticket change [dd1f4e80ca] (rid 158624) by pooryorick on 2017-11-18 00:14:37:
- closedate changed to: "2458075.51015454"
- login: "pooryorick"
- mimetype: "text/plain"
- resolution changed to: "Fixed"