Skip to content
Tcl Source Code History Of Ticket ec1ee3bc92
Login

History Of Ticket ec1ee3bc92

Artifacts Associated With Ticket ec1ee3bc92

  1. Ticket change [879a90f3fd] (rid 258965) by serhiy.storchaka on 2026-10-18 09:39:59:

    1. cmimetype initialized to: "text/x-fossil-wiki"
    2. 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.
      
    3. foundin initialized to: "8.6.18, 9.0.5, 9.1.0"
    4. login: "serhiy.storchaka"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. severity initialized to: "Minor"
    8. status initialized to: "Open"
    9. subsystem initialized to: "04. Async Events"
    10. title initialized to:
      tcltest crashes when a [testasync] handler is invoked from the event loop (NULL interp)
      
    11. type initialized to: "Bug"
  2. Ticket change [253b88ce55] (rid 259539) by serhiy.storchaka on 2026-10-20 18:11:29:

    1. submitter changed to: "serhiy.storchaka"