Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 10d81a2effda8b51b8a289940c9b8c964d019c22
Ticket: 599788ffffffffffffffffffffffffffffffffff
error in (array element script) causing tclsh segfault
User & Date: msofer on 2002-08-25 20:56:03
Changes

  1. icomment:
    Logged In: YES 
    user_id=148712
    
    TclLogCommandInfo is getting wrong input: 'script' and
    'command' do point to strings with the correct contents, but
    'command' is not a substring of 'script' as it should. See
    the debug session below:
    
    (gdb) r
    Starting program: /CVS/tcl_SF_clean/unix/tclsh 
    % set a([set x])
    
    Program received signal SIGSEGV, Segmentation fault.
    0x0806d426 in Tcl_LogCommandInfo (interp=0x81070e0,
    script=0x810f9a0 "set a([set x])\n", 
        command=0xbfffe88e "set x]\"", length=5) at
    ./../generic/tclBasic.c:3243
    3243            if (*p == '\n') {
    (gdb) p p
    $1 = 0x8130000 <Address 0x8130000 out of bounds>
    
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"