Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b8d25f8ec9941c964efe5cf0df3de250f419d286
Ticket: 2964425fffffffffffffffffffffffffffffffff
SEGV during make test in ioTrans.test
User & Date: ferrieux on 2010-03-06 04:17:39
Changes

  1. icomment:
    Correction, it's iortrans.tf-6.1
    
    Below is the gdb trace, showing the crash in Tcl_GetString.
    Interesting fact: we have an objPtr with simultaneously NULL ->bytes and ->typePtr.
    Note the following comment just before the point of crash:
    
    /*
     * Note we do not check for objPtr->typePtr == NULL.  An invariant of
     * a properly maintained Tcl_Obj is that at least  one of objPtr->bytes
     * and objPtr->typePtr must not be NULL.  If broken extensions fail to
     * maintain that invariant, we can crash here.
     */
    
    Program received signal SIGSEGV, Segmentation fault.
    0x00d3a24f in Tcl_GetString (objPtr=0x8fc51a8) at /home/alex/src/cvs/tcl/generic/tclObj.c:1627
    (gdb) where
    #0  0x00d3a24f in Tcl_GetString (objPtr=0x8fc51a8) at /home/alex/src/cvs/tcl/generic/tclObj.c:1627
    #1  0x00d3a2e0 in Tcl_GetStringFromObj (objPtr=0x8fc51a8, lengthPtr=0xbf9076f4) at /home/alex/src/cvs/tcl/generic/tclObj.c:1677
    #2  0x00d2f962 in UpdateStringOfList (listPtr=0x8f981d8) at /home/alex/src/cvs/tcl/generic/tclListObj.c:1889
    #3  0x00d3a278 in Tcl_GetString (objPtr=0x8f981d8) at /home/alex/src/cvs/tcl/generic/tclObj.c:1637
    #4  0x00d3a2e0 in Tcl_GetStringFromObj (objPtr=0x8f981d8, lengthPtr=0xbf9077e4) at /home/alex/src/cvs/tcl/generic/tclObj.c:1677
    #5  0x00d2f962 in UpdateStringOfList (listPtr=0x8f98148) at /home/alex/src/cvs/tcl/generic/tclListObj.c:1889
    #6  0x00d3a278 in Tcl_GetString (objPtr=0x8f98148) at /home/alex/src/cvs/tcl/generic/tclObj.c:1637
    #7  0x00d63d39 in TclStringMatchObj (strObj=0x8f98148, ptnObj=0x8fc3f48, flags=0) at /home/alex/src/cvs/tcl/generic/tclUtil.c:1777
    #8  0x00ca2840 in StringMatchCmd (dummy=0x0, interp=0x8ee9770, objc=3, objv=0x8fb98b0) at /home/alex/src/cvs/tcl/generic/tclCmdMZ.c:2069
    #9  0x00c83771 in NRRunObjProc (data=0x8fc517c, interp=0x8ee9770, result=0) at /home/alex/src/cvs/tcl/generic/tclBasic.c:4347
    #10 0x00c83535 in TclNRRunCallbacks (interp=0x8ee9770, result=0, rootPtr=0x8fc43c8, tebcCall=1) at /home/alex/src/cvs/tcl/generic/tclBasic.c:4294
    #11 0x00cf2c99 in TclExecuteByteCode (interp=0x8ee9770, codePtr=0x8fcec88) at /home/alex/src/cvs/tcl/generic/tclExecute.c:2806
    #12 0x00c837f4 in NRCallTEBC (data=0x8fc3fac, interp=0x8ee9770, result=0) at /home/alex/src/cvs/tcl/generic/tclBasic.c:4370
    #13 0x00c83535 in TclNRRunCallbacks (interp=0x8ee9770, result=0, rootPtr=0x0, tebcCall=0) at /home/alex/src/cvs/tcl/generic/tclBasic.c:4294
    #14 0x00c82eea in Tcl_EvalObjv (interp=0x8ee9770, objc=11, objv=0x8ef09a0, flags=2097152) at /home/alex/src/cvs/tcl/generic/tclBasic.c:4066
    #15 0x00c85041 in TclEvalEx (interp=0x8ee9770, script=0x8f33118 "# -*- tcl -*-\n# Functionality covered: operation of the reflected transformation\n#\n# This file contains a collection of tests for one or more of the Tcl\n# built-in commands.  Sourcing this file into T"..., numBytes=46734, flags=0, line=1243, clNextOuter=0x0, outerScript=0x8f33118 "# -*- tcl -*-\n# Functionality covered: operation of the reflected transformation\n#\n# This file contains a collection of tests for one or more of the Tcl\n# built-in commands.  Sourcing this file into T"...) at /home/alex/src/cvs/tcl/generic/tclBasic.c:5236
    #16 0x00c84658 in Tcl_EvalEx (interp=0x8ee9770, script=0x8f33118 "# -*- tcl -*-\n# Functionality covered: operation of the reflected transformation\n#\n# This file contains a collection of tests for one or more of the Tcl\n# built-in commands.  Sourcing this file into T"..., numBytes=46734, flags=0) at /home/alex/src/cvs/tcl/generic/tclBasic.c:4892
    #17 0x00d29e09 in Tcl_FSEvalFileEx (interp=0x8ee9770, pathPtr=0x8eeef90, encodingName=0x0) at /home/alex/src/cvs/tcl/generic/tclIOUtil.c:1750
    #18 0x00d326c4 in Tcl_Main (argc=-1, argv=0xbf908544, appInitProc=0x8048b72 <Tcl_AppInit>) at /home/alex/src/cvs/tcl/generic/tclMain.c:358
    #19 0x08048b65 in main (argc=36, argv=0xbf9084b4) at /home/alex/src/cvs/tcl/unix/tclAppInit.c:85
    (gdb) print *objPtr
    $1 = {refCount = 0, bytes = 0x0, length = -1, typePtr = 0x0, internalRep = {longValue = 150754568, doubleValue = 1.9791706336425661e-265, otherValuePtr = 0x8fc5508, wideValue = 646696352645666056, twoPtrValue = {ptr1 = 0x8fc5508, ptr2 = 0x8f986e8}, ptrAndLongRep = {ptr = 0x8fc5508, value = 150570728}}}
    (gdb)
    
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"