Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9ac2f9f66f81973c82ee090e61eee71a4c580854
Ticket: 3006741fffffffffffffffffffffffffffffffff
SIGSEGV in Tcl_LogCommandInfo
User & Date: coldstore on 2010-05-25 19:49:06
Changes

  1. icomment:
    I can reproduce it perfectly reliably.
    
    The problem arises in tclNamesp.c:4958 where you have 'if (iPtr->varFramePtr != iPtr->framePtr', and then traverse a chain of links following frame->callerVarPtr when one of those links (the second, in this case) wasn't in fact a frame, but a string, and interestingly always the same string.
    
    I note that when the crash was occurring iPtr->varFramePtr == iPtr->rootFramePtr
    
    I also note that the crash is occurring in the top-most level of a coroutine.
    
    Is it possible that coroutines' top level frame (that is, #1 within the coro) doesn't have its frame initialized to correctly point to rootFramePtr as its caller var frame?
    
    
    It's also worth noting that the error is occurring in an ::apply which is running as the command of a coro, and both the ::apply namespace and the coro's namespace are not what you would sort of normally expect.  It's a pretty complex case. 
    
    
    
    
  2. login: "coldstore"
  3. mimetype: "text/plain"
  4. username: "coldstore"