Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6c65d7a03905b0c077c606aea83a50a4ad8364de
Ticket: 93081e9a8404270e45eadf642c4cdfbff6ef968b
crash in PushProcCallFrame due to nullpointer derefence
User & Date: anonymous on 2015-09-23 10:59:13
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Windows 7, Tcl 8.5.18
    
    My app runs for some length of time and then crashes in tclProc.c #1583 in PushProcCallFrame()
    
    	codePtr = procPtr->bodyPtr->internalRep.twoPtrValue.ptr1;
    => 	if (((Interp *) *codePtr->interpHandle != iPtr)
    		|| (codePtr->compileEpoch != iPtr->compileEpoch)
    		|| (codePtr->nsPtr != nsPtr)
    		|| (codePtr->nsEpoch != nsPtr->resolverEpoch)) {
    	    goto doCompilation;
    	}
    where codePtr->interpHandle == 0.
    
    The call stack is short enough:
      Tcl_EvalObjv()
      TclEvalObjvInternal()
      TclObjInterpProc()
      PushProcCallFrame() *crash*
    with 2 objects passed to Tcl_EvalObjv:
    - one Tcl_NewStringObj which denotes a routine to call and is reused (I've checked that the refCount == 1 before reusing it)
    - one Tcl_NewIntObj() the argument for the routine, fresh on each call
    
    The code in question is repeatedly called many times, so I'm wondering whether I'm looking at memory corruption of some sort or some hideous bug. 
    
    I would be glad if someone could point me at a place where the object in question is changed, especially where the interphandle is possibly intentionally reset to 0.
    
    TNX
    R'
    
  5. foundin changed to: "8.5.18"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "1d3c95db24e116878d6afed7cf890a89a0effe62"
  10. resolution changed to: "None"
  11. severity changed to: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "47. Bytecode Compiler"
  15. title changed to:
    crash in PushProcCallFrame due to nullpointer derefence
    
  16. type changed to: "Bug"