Artifacts Associated With Ticket ec1ee3bc92
Ticket change [879a90f3fd] (rid 258965) by serhiy.storchaka on 2026-10-18 09:39:59:
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
The tcltest binary crashes (segmentation fault) when a <nowiki>[testasync]</nowiki> handler is invoked from the event loop: <verbatim> proc cb {result code} {return $code} set h [testasync create cb] testasync marklater $h after 500 {set done 1} vwait done </verbatim> <tt>AsyncHandlerProc()</tt> in generic/tclTest.c calls <tt>Tcl_GetStringResult(interp)</tt> before it checks for <tt>interp == NULL</tt>, which is what <tt>Tcl_AsyncInvoke()</tt> passes when async handlers run from the event loop. Only the test command is affected, not the library. Seen with 8.6.18, 9.0.5 and 9.1.0. Proposed fix in branch [/timeline?r=testasync-null-interp|testasync-null-interp]: without an interpreter the handler just returns the code. Test async-5.1. - foundin initialized to: "8.6.18, 9.0.5, 9.1.0"
- login: "serhiy.storchaka"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- subsystem initialized to: "04. Async Events"
- title initialized to:
tcltest crashes when a [testasync] handler is invoked from the event loop (NULL interp)
- type initialized to: "Bug"
Ticket change [253b88ce55] (rid 259539) by serhiy.storchaka on 2026-10-20 18:11:29:
- submitter changed to: "serhiy.storchaka"