Artifacts Associated With Ticket 42202ba1e5
Ticket change [d71d82acf2] (rid 152744) by apnadkarni on 2017-03-30 14:37:58:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The following script causes Tcl_Panic with message: DeleteInterpProc called with active evals Script: interp create slave slave eval { coroutine demo apply {{} { while {1} yield }} demo tcl::unsupported::inject demo puts foo } interp delete slave If the inject command is removed, the panic goes away. Since this happens with an unsupported command, keeping severity as minor but may be an indication of a more general problem. I was originally using inject interactively to figure out where one of the coroutines in a slave was getting stuck. - foundin initialized to: "8.6.6"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "60. NRE and coroutines"
- title initialized to: "Coro inject followed by interp delete causes panic"
- type initialized to: "Bug"
Ticket change [c89b8ca48c] (rid 152797) by apnadkarni on 2017-04-04 02:09:05:
- icomment:
Note the given example does not call the coroutine after the injection. But that is irrelevant as the panic occurs even if the coroutine is called so the injection code gets a chance to run. For example interp create slave slave eval { coroutine demo apply {{} { while {1} yield }} demo tcl::unsupported::inject demo set x 1 demo } interp delete slave - login: "apnadkarni"
- mimetype: "text/plain"
- icomment:
Ticket change [f8bdcf27da] (rid 152798) by ferrieux on 2017-04-04 06:41:41:
- icomment:
Clearly there's a mismatched pair of (iPtr->numlevels++;iPtr->numlevels--). I have yet to familiarize with the NR guts to know which one though. The universe is colder without our beloved Miguel.
- login: "ferrieux"
- mimetype: "text/plain"
- icomment:
Ticket change [7b00a4188c] (rid 152804) by sebres on 2017-04-04 10:02:01:
- foundin changed to: ">= 8.6"
- icomment:
I've fixed it within [4d97b416fd94520d73090dfdc87753d31f1130d4]. There's not a mismatched pair of numlevels--/++. The way, that was used to add a inject-callback in the NRCoroInjectObjCmd is inaccurate (resp. not allowed anymore), because anyway can leave interpreter in unusable state after executing of the coro-resume callback. BTW. For the people trying to tinker on NRE callbacks (I mean such hackish way's), please next time take care what you are doing.
- login: "sebres"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- severity changed to: "Severe"
Ticket change [872b41f10c] (rid 152805) by sebres on 2017-04-04 10:26:57:
- icomment:
Hmm... I have to be a bit familiar with fossil (pushed wrong test-branch). Newer branch comming soon.
- login: "sebres"
- mimetype: "text/plain"
- icomment:
Ticket change [f11cd3a3f8] (rid 152812) by sebres on 2017-04-04 11:20:05:
- icomment:
So I hope, now I've got correct branch :). Fixed in [f700c69f46d57a2edca3b88f8026c54a42134fc2]. BTW, I need every now and then the routine I've called here `TclNREvalList` (for similar purposes as here). We could possibly add this to our internal declarations in "tclInt.h"...
- login: "sebres"
- mimetype: "text/plain"
- icomment:
Ticket change [732149d579] (rid 152813) by ferrieux on 2017-04-04 13:32:39:
- icomment:
Re the following comment by sebres: "BTW. For the people trying to tinker on NRE callbacks (I mean such hackish way's), please next time take care what you are doing." As it turns out, coroinject was contributed by Miguel himself. Next time you feel you need to make acrid remarks, aim better.
- login: "ferrieux"
- mimetype: "text/plain"
- icomment:
Ticket change [6da68c1d6d] (rid 152814) by sebres on 2017-04-04 14:14:27:
- icomment:
> coroinject was contributed by Miguel himself. I doubt, but I didn't want to blame someone... > Next time you feel you need to make acrid remarks, aim better. I would not have meant it so "angry". English is non-native for me, just foreigner :) And most importantly I meant it in commemoration of him, for the sake of clarity. Sorry, if that sounded too hard...
- login: "sebres"
- mimetype: "text/plain"
- icomment:
Ticket change [749f266496] (rid 153035) by sebres on 2017-04-12 11:51:03:
- icomment: "merged to 8.6"
- login: "sebres"
- mimetype: "text/x-fossil-plain"
- priority changed to: "Immediate"
- status changed to: "Closed"
- type changed to: "Code_Defect"