Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9d594bf5cba8050dc0acc5890ad527e6e4414b2e
Ticket: 599788ffffffffffffffffffffffffffffffffff
error in (array element script) causing tclsh segfault
User & Date: msofer on 2002-08-26 00:39:29
Changes

  1. icomment:
    Logged In: YES 
    user_id=148712
    
    Found the problem; it is caused by the CONSTification of the
    parser/compiler. In tclCompCmds.c, line 3267, we are
    compiling the tokens from a *copy* of the relevant source
    string, thus getting pointers to said copy instead of to the
    original. 
    Diagnostic done, fix not yet ...
    
    The simplest script to show the bug is
        set a([error])
    when it is compiled (ie, typed at the tclsh prompt or in a
    proc body if sourced).
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. title changed to:
    error in (array element script) causing tclsh segfault
    
  5. username: "msofer"