<i>Calling Tcl_DeleteEventSource from inside Tcl_DoOneEvent segfaults</i> status still Open with 4 other changes
by
.
D 2026-10-18T16:52:47.724
J foundin 9.1.0
J icomment Still\spresent\sin\s9.1\s(9.0\sand\s8.6\shave\sthe\ssame\sloops):\s<tt>Tcl_DeleteEventSource()</tt>\sfrees\sthe\ssource\sat\sonce,\swhile\s<tt>Tcl_DoOneEvent()</tt>\sor\s<tt>Tcl_ServiceAll()</tt>\scontinue\sthe\straversal\sthrough\sits\s<tt>nextPtr</tt>,\sand\sa\sdeleted\ssource\smay\sstill\shave\sits\sprocs\scalled.\n\nProposed\sfix\sin\sbranch\s[/timeline?r=notifier-delete-source-in-loop|notifier-delete-source-in-loop]:\sduring\sa\straversal\sthe\ssource\sis\sonly\smarked\sdeleted,\sand\sthe\soutermost\straversal\sfrees\sit.\sTests\snotify-3.1\sto\s3.4,\swith\sa\snew\s<nowiki>[testevent\sdeletesource]</nowiki>.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K 055240025ab8553b45b39c5ef409286a7a4e8141
U serhiy.storchaka
Z fd6d8da6308b2514cae4d137e34efb2a