Overview
| Artifact ID: | 5536eecb2d066c341619b6f3aabef04f3e58556a3d8c214a9b454f0fbaefd260 |
|---|---|
| Ticket: | 815e2468064b4324bc4b303b9bafd3ef92803c32
tcl crash on channel thread transfer and fileevent writable in place |
| User & Date: | sebres on 2018-06-08 11:41:35 |
Changes
- icomment:
Yep, the reason for it is the pair TclChannelPreserve/TclChannelRelease in the TclChannelEventScriptInvoker. <code><pre> TclChannelPreserve((Tcl_Channel)chanPtr); Tcl_EvalObjEx(interp, esPtr->scriptPtr, ...); etc... TclChannelRelease((Tcl_Channel)chanPtr); </pre></code> Where the call of TclChannelRelease sporadically takes place after the channel belong to other thread (and because of the synchronous thread::send it could already start the transfer-process back).<br/> In this it may cause a sync-issue on "shared" ref-count. - login: "sebres"
- mimetype: "text/x-fossil-wiki"