Artifacts Associated With Ticket 1a28e71204305438
Ticket change [deec6f69ed] (rid 150338) by luguanhui on 2016-12-05 07:15:28:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
1 . Recently ,when I upgrade the tcl/tk to 8.6.1 from 8.5.9,the program is crash in Tcl_DeleteInterp.After I debug the tcl/tk,I found that in the follow code: static void DeleteInterpProc( Tcl_Interp *interp) /* Interpreter to delete. */ { ........ if (!(iPtr->flags & DELETED)) { Tcl_Panic("DeleteInterpProc called on interpreter not marked deleted"); } } 2. It seems that ,Tcl_DeleteInterp and Tcl_CreateInterp should be called in the same thread? But the code work fine in 8.5.9 .Is there any change done in 8.6.1? Thank you - foundin initialized to: "8.6.1"
- is_private initialized to: "0"
- login: "luguanhui"
- priority initialized to: "5 Medium"
- private_contact initialized to: "7ea2264d7851fedd822fe9347c46ea57253fec57"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "luguanhui"
- subsystem initialized to: "20. [interp]"
- title initialized to:
when i call Tcl_DeleteInterp in new thread ,the program crash
- type initialized to: "Bug"
Ticket change [f464967753] (rid 150961) by dgp on 2017-01-03 19:47:15:
- assignee changed to: "dgp"
- closedate changed to: "2457757.32448522"
- closer changed to: "dgp"
- icomment:
A (Tcl_Interp *) can only be passed into the Tcl library by the same thread that originally received it from a call to Tcl_CreateInterp(). This is the "apartment model" for using threads with Tcl.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"