Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dbbb18fcbcf29097e4d48b7e2fcda3bbfcc1f1182ca85beee2692d4231c51d43
Ticket: 8ecaee5d83a8d8694bd0585066d6d6f71c28ce73
[array for] memory corruption
User & Date: dgp on 2018-04-23 11:39:44
Changes

  1. icomment:
    
    Thanks. That does look like an improvement, but it doesn't solve the problem.
    
    Program received signal SIGSEGV, Segmentation fault.
    0x0000000000589a7b in TclObjLookupVarEx (interp=0x83a678, 
        part1Ptr=0x6161616161616161, part2Ptr=0x0, flags=0, msg=0x0, 
        createPart1=0, createPart2=0, arrayPtrPtr=0x7fffffffd020)
        at /home/dgp/fossil/tcl8.7/generic/tclVar.c:551
    551         const Tcl_ObjType *typePtr = part1Ptr->typePtr;
    Missing separate debuginfos, use: debuginfo-install glibc-2.17-196.el7_4.2.x86_64 zlib-1.2.7-17.el7.x86_64
    (gdb) bt
    #0  0x0000000000589a7b in TclObjLookupVarEx (interp=0x83a678, 
        part1Ptr=0x6161616161616161, part2Ptr=0x0, flags=0, msg=0x0, 
        createPart1=0, createPart2=0, arrayPtrPtr=0x7fffffffd020)
        at /home/dgp/fossil/tcl8.7/generic/tclVar.c:551
    #1  0x000000000058d0ef in ArrayForLoopCallback (data=0xe1ade0, 
        interp=0x83a678, result=0) at /home/dgp/fossil/tcl8.7/generic/tclVar.c:3147
    #2  0x0000000000430d24 in TclNRRunCallbacks (interp=0x83a678, result=0, 
        rootPtr=0x0) at /home/dgp/fossil/tcl8.7/generic/tclBasic.c:4494
    
    When the problem arises, ArrayForLoopCallback() is entered with
    result == TCL_OK. It is this pass through the routine that is 
    supposed to notice the array change and report the error.
    
  2. login: "dgp"
  3. mimetype: "text/plain"