Overview
| Artifact ID: | bc03e05302898fc7cbeb4f7d4814d389f0aa740b954283b71cb349a6d5e37ba7 |
|---|---|
| Ticket: | 055240025ab8553b45b39c5ef409286a7a4e8141
Calling Tcl_DeleteEventSource from inside Tcl_DoOneEvent segfaults |
| User & Date: | serhiy.storchaka on 2026-10-18 16:52:47 |
Changes
- foundin changed to: "9.1.0"
- icomment:
Still present in 9.1 (9.0 and 8.6 have the same loops): <tt>Tcl_DeleteEventSource()</tt> frees the source at once, while <tt>Tcl_DoOneEvent()</tt> or <tt>Tcl_ServiceAll()</tt> continue the traversal through its <tt>nextPtr</tt>, and a deleted source may still have its procs called. Proposed fix in branch [/timeline?r=notifier-delete-source-in-loop|notifier-delete-source-in-loop]: during a traversal the source is only marked deleted, and the outermost traversal frees it. Tests notify-3.1 to 3.4, with a new <nowiki>[testevent deletesource]</nowiki>.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"