Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 68f040045d012705166ff75e07e7e629006e7ab9
Ticket: 3008307fffffffffffffffffffffffffffffffff
callerPtr chain does not traverse coro floor
User & Date: ferrieux on 2010-05-31 05:36:38
Changes

  1. icomment:
    Good news: after adding a reset of the gencount (to -1) in Tcl_PopCallFrame, I now get a violation with Colin's latest short snippet (and also with coroutine-1.9).
    
    This gives the wanted disambiguation, that the snippet actually show a bug, despite its failure to crash. Attaching the updated gencount patch. Here is the gdb bt from Colin's code:
    
    #0  0x00271424 in __kernel_vsyscall ()
    #1  0x003aaa81 in raise () from /lib/libc.so.6
    #2  0x003ac34a in abort () from /lib/libc.so.6
    #3  0x007ec29f in Tcl_PanicVA () from /home/alex/src/cvs/tcl/unix/libtcl8.6.so
    #4  0x007ec2c4 in Tcl_Panic () from /home/alex/src/cvs/tcl/unix/libtcl8.6.so
    #5  0x0074b2f8 in NRInterpCoroutine () from /home/alex/src/cvs/tcl/unix/libtcl8.6.so
    #6  0x0074a9f5 in NRRunObjProc () from /home/alex/src/cvs/tcl/unix/libtcl8.6.so
    #7  0x0074d42d in TclNRRunCallbacks () from /home/alex/src/cvs/tcl/unix/libtcl8.6.so
    #8  0x007b2998 in TclExecuteByteCode () from /home/alex/src/cvs/tcl/unix/libtcl8.6.so
    #9  0x0074d5df in NRCallTEBC () from /home/alex/src/cvs/tcl/unix/libtcl8.6.so
    #10 0x0074d42d in TclNRRunCallbacks () from /home/alex/src/cvs/tcl/unix/libtcl8.6.so
    #11 0x00752d73 in Tcl_EvalObjv () from /home/alex/src/cvs/tcl/unix/libtcl8.6.so
    #12 0x0075361e in TclEvalEx () from /home/alex/src/cvs/tcl/unix/libtcl8.6.so
    #13 0x0075396a in Tcl_EvalEx () from /home/alex/src/cvs/tcl/unix/libtcl8.6.so
    #14 0x007dc11f in Tcl_FSEvalFileEx () from /home/alex/src/cvs/tcl/unix/libtcl8.6.so
    #15 0x007e2b25 in Tcl_Main () from /home/alex/src/cvs/tcl/unix/libtcl8.6.so
    #16 0x080486a1 in main ()
    (
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"