Overview
| Artifact ID: | 723a78c64b8c26ea00bca9c3767a2d529692eb97 |
|---|---|
| Ticket: | 2458202fffffffffffffffffffffffffffffffff
Reflected channel crash on exit |
| User & Date: | andreas_kupries on 2008-12-23 02:13:16 |
Changes
- icomment:
I am having a quick look now ... The rcPtr is the channel instance ClientData. The loop we are at iterates over all channels in the rcmPtr (map of channels for the thread) and it seems we are getting a channel with a bad clientdata. Maybe already closed? But not removed from the map yet ? We are in an per-interp deletion handler. If something has changed the order finalization is done the function might be run at the wrong time. This is speculation right now. Related functions (same file): TclChanCreateObjCmd() => line 727+, entering channels into the map. ReflectClose() => line 1149+, Remove channel from the map. This should actually ensure that our deletion handlers cannot access a closed channel. ForwardProc() => line 2745+. A forwarded close operation, i.e. like ReflectClose(). This is used if the reflected channel was moved to a different thread. The closing has to occur in the origin thread, as that keeps all the state (tcl handler etc.) DeleteThreadReflectedChannelMap() => line 2480ff. Same as DeleteReflectedChannelMap, deletes the map for the whole thread (DRCM does it only for a specific interp in the thread). TclChanPostEventObjCmd() => line 817+. Uses only the per-interp map, not the per-thread map, and only to check that the channel is valid. No modifications of the map. These are the places we have to look at to debug this.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"