Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 85232f279ee653a44caf88c8084c008d72c57c78b5adc802c618da3649ec3a7c
Ticket: 723a2f4ac32c306a16919568acaf0b78304dea7d
return -code break/tailcall break from coroutine goes wrong at the top-level
User & Date: sebres on 2018-08-03 16:18:19
Changes

  1. icomment:
    Fixed now in branch [https://core.tcl-lang.org/tcl/timeline?r=sebres-bug-723a2f4ac3|sebres-bug-723a2f4ac3].
    
    Additionally this fixes SEGFAULTS by direct return/break out of coroutine after yield back into coroutine (I've increased priority of ticket to High).<br/>
    Without this fix (with unpatched original 8.6) the new test-cases of this branch segfaulting within coroutine.test.<br/>
    So fixed here by provide of TCL_EVAL_NOERR to Tcl_NREvalObj inside TclNRCoroutineObjCmd, because return with code out of coro (after yield into coro) does not allow normally any modification on call-stack info in the top-level at all.
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"
  4. priority changed to: "8"
  5. resolution changed to: "Fixed"
  6. status changed to: "Pending"