#1917: Parrot_api_make_interpreter() cause a crash when another interpreter
already exists
--------------------------+-------------------------------------------------
Reporter: kristaba | Owner: whiteknight
Type: bug | Status: new
Priority: normal | Milestone:
Component: embed/extend | Version: master
Severity: medium | Keywords: interpreter api
Lang: | Patch: new
Platform: linux |
--------------------------+-------------------------------------------------
When a second interpreter is created through the API, the function crash
with the following backtrace :
{{{
src/thread.c:1397: failed assertion '!interpreter_array'
Backtrace - Obtained 32 stack frames (max trace depth is 32).
/usr/local/lib/libparrot.so(+0xc22f2) [0x2db92f2]
/usr/local/lib/libparrot.so(Parrot_confess+0x9a) [0x2db92ba]
/usr/local/lib/libparrot.so(+0x121a36) [0x2e18a36]
/usr/local/lib/libparrot.so(+0x118b6d) [0x2e0fb6d]
/usr/local/lib/libparrot.so(initialize_interpreter+0x2e7) [0x2dd7927]
/usr/local/lib/libparrot.so(Parrot_api_make_interpreter+0xf6) [0x2db2176]
}}}
The only way I find to prevent this is to create a "parent" interpreter
and to call Parrot_api_make_interpreter() using this parent to get a new
interpreter.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1917>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets