Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a0f3b1054eb5ea9416fadeedb28f4c4cfc9066280d23c64de856fe7a6d41bee8
Ticket: 60559fd4a618258cceacc8d8966ea17b2ec7bc15
-singleproc + coroutine-7.6 + info-23.0.1 => fail
User & Date: dkf on 2019-04-11 19:28:49
Changes

  1. icomment:
    The following test case (<i>provisionally</i> named) shows that this has nothing to do with coroutines. It does have plenty to do with <code>foo</code> having a direct <code>compileProc</code> (special case to allow disabling logging/asserts).
    <pre>
    test coroutine-7.6a {Early yield crashes} -setup {
        set result {}
    } -body {
        proc foo args {}
        set BaseFrameLevel [info frame]
        eval {
            lappend result [expr {[info frame] - $BaseFrameLevel}]
            trace add execution foo enter list
            lappend result [expr {[info frame] - $BaseFrameLevel}]
        }
    } -cleanup {
        rename foo {}
        unset -nocomplain result BaseFrameLevel
    } -result {1 1}
    </pre>
    This is weird stuff!
    
  2. login: "dkf"
  3. mimetype: "text/html"