Overview
| Artifact ID: | 4965e7034f7b720cd3f41089eb6214ab3212f81300b4f64d28f49fcc2e4ea10e |
|---|---|
| Ticket: | 135804138e33ff05b89f06101008113c86156322
TclOO segmentation fault: direct call to a method called by the object destructor, and that deletes the object via [rename] before calling [next] |
| User & Date: | sebres on 2019-11-14 17:22:34 |
Changes
- icomment:
Fixed now in branch [/timeline?r=bug-135804138e|bug-135804138e]... I had 2 variants to solve that. In the 1st variant the result of test-case oo-7.10 would be something like: <code><pre style="padding-left:10pt"> <b style="color:red">- delete c2::destructor delete no-self c1::m1 unreachable /c2::destructor no-self 1 {no next method implementation}</b> <b style="color:green">+ delete c2::destructor delete no-self c1::m1 unreachable /c2::destructor no-self c1::m1 unreachable 0 {}</b> </pre></code> So the "next" had successfully called "c1::m1" second time, so it had assumed that only context of object is deleted (not a class in the call chain) and all access to my/self etc would be prohibited anyway, but just because "c1::m1" behaves like a proc (without object context access) it were possible without any issue to call it second time. The interim decision was another variant (as it is currently implemented in branch [/timeline?r=bug-135804138e|bug-135804138e]) is calling of "next" is impossible after object deletion - so it throws an error there. - login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Pending"