Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3393d4ca68e3a91b83363ecda602774f8cf2645b
Ticket: 599788ffffffffffffffffffffffffffffffffff
error in (array element script) causing tclsh segfault
User & Date: wilkason on 2002-08-25 00:25:31
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The crash originates in generic\tclExecute.c 
    GetSrcInfoForPc at line 4574 
    at CVS head on 8/24/02 The code is below, what 
    happens is the call to 
    macro TclGetInt4AtPtr with value 0xFF returns a huge 
    negative number thus 
    later causing offsets to break and eventually a crash in 
    tclBasic.c 
    Tcl_LogCommandInfo. The error was introduced 
    sometime after 8.4b2. The offending 
    source code is below:
    
    if ((unsigned int) (*srcDeltaNext) == 
    (unsigned int) 0xFF) {
        srcDeltaNext++;
        delta = TclGetInt4AtPtr(srcDeltaNext);    // 
    <- bad juju returned
        srcDeltaNext += 4;
    } else {
        delta = TclGetInt1AtPtr(srcDeltaNext);
        srcDeltaNext++;
    }
    }
    
    Source in the attached file to see it.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "wilkason"
  9. subsystem changed to: "47. Bytecode Compiler"
  10. title changed to: "error in catch causing tclsh segfault"
  11. type changed to: "Bug"