Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7595f06b61fa4513beb5b52466deed71278257ab
Ticket: 1786481fffffffffffffffffffffffffffffffff
dict causes segfault
User & Date: kennykb on 2007-09-10 23:43:17
Changes

  1. icomment:
    Logged In: YES 
    user_id=99768
    Originator: NO
    
    I tried to chase this a little bit further and observe that line 213 of tclCompile.c has:
    
        {"dictUpdateEnd",  9,    -1,   2,{OPERAND_LVT4, OPERAND_AUX4}},
    /* Reflect the state of local variables (described in the aux data
     * referred to by the second immediate argument) back to the state of
     * the dictionary in the variable referred to by the first immediate
     * argument. The list of keys (popped from the stack) must be the same
     * length as the list of variables.
     * Stack:  ... keyList => ... */
    
    This caused an immediate segfault when I tried the test case with tcl_traceCompile=2
    because the numOperands is 1 and almost surely should be 2.
    
    How sure are we about stack balance?
    
    
  2. login: "kennykb"
  3. mimetype: "text/plain"
  4. username: "kennykb"