Tcl Source Code

View Ticket
Login
Ticket UUID: ee08ed090b0a5408a0ad2e4fab429adec4aa31b
Title: sporadic segmentation fault in coroutine.test/coroutine-7.4
Type: Bug Version: core-8-branch
Submitter: pooryorick Created on: 2023-01-26 23:53:58
Subsystem: 16. Commands A-H Assigned To: pooryorick
Priority: 5 Medium Severity: Important
Status: Closed Last Modified: 2023-01-28 18:55:03
Resolution: Fixed Closed By: jan.nijtmans
    Closed on: 2023-01-28 18:55:03
Description: (text/x-fossil-wiki)
coroutine-7.4 sometimes ends in a segmentation fault.  This is because
TclNRCoroutineObjCmd() does not initialize <code>corPtr->yieldPtr</code>, so
that member may contain an invalid value when
<code>TclNRCoroutineActivateCallback()</code> attempts to access it.
User Comments: jan.nijtmans added on 2023-01-28 18:55:03: (text/x-fossil-wiki)
Thanks!

pooryorick added on 2023-01-28 18:36:43: (text/x-fossil-wiki)
Just checked, and 8.6 doesn't have this issue.  Now closing.

jan.nijtmans added on 2023-01-27 21:47:26: (text/x-fossil-wiki)
Should this fix be backported to core-8-6-branch as well?

pooryorick added on 2023-01-27 00:06:24: (text/x-fossil-wiki)
Fixed in [417d67fc63d237b7].