Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7ac149bf4edd1d2b4ccde08cf271f7b1f5b77310
Ticket: 3008307fffffffffffffffffffffffffffffffff
callerPtr chain does not traverse coro floor
User & Date: ferrieux on 2010-06-01 03:51:01
Changes

  1. icomment:
    Thanks Miguel !
    After updating the invariant to account for the legal reparenting (attached), I no longer any violation nor crash, neither in the test suite nor in Colin's script. Congrats !
    Now observing the traversal of the coro boundary:
    
      - [info level -N] still stops at the depth of the coro part of the stack. That is expected since it uses the ->level field of CFs, which have not been modified by the reparenting.
    
      - TIP 348 works better, in that it shows the full depth (both caller and coro parts). However I'm seeing a tiny glitch in the computation of the uplevel offsets:
    
    proc a {} b
    proc b {} c
    proc c {} {coroutine D d}
    proc d {} e
    proc e {} {
        #error E1
        yield
        error E2
    }
    
    proc a1 {} {D}
    
    catch {
        a
        a1
    }
    
    puts [info errorstack]
    
    ==> with error E1 (before first yield, caller depth 3):
    CALL e CALL d UP 4 CALL c CALL b CALL a
    
    ==> with error E2 (after first yield, resumer depth 1):
    CALL e CALL d UP 4 CALL a1
    
    Maybe something a bit strange with the varFramePtrs ? (the UP is computed by crawling callerPtr's until the varPtr is found)
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"