Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 881d6fd05b753c2ff83740fc0cadef74a6fbd1d5
Ticket: 3138178fffffffffffffffffffffffffffffffff
Yet another crash in traces
User & Date: ferrieux on 2010-12-15 21:24:10
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Reported by Harald Oehlmann on clt thread http://groups.google.com/group/comp.lang.tcl/tree/browse_frm/thread/3408836f98a4bc0a/95b4cc1788636956?rnum=1&_done=%2Fgroup%2Fcomp.lang.tcl%2Fbrowse_frm%2Fthread%2F3408836f98a4bc0a%3F#doc_fe934cdf9091c071
    
    Applying the traceback trick (write trace on ::errorInfo) from http://wiki.tcl.tk/2626 , we get a segfault in 8.5.x for:
    
     set ::errorLevel -1 
     set ::errorStack {} 
     trace add variable ::errorInfo write { 
            set __n [ info level ] 
            if {![regexp {\n    invoked from within\n} $::errorInfo]} { 
                    set ::errorLevel -1; 
                    set ::errorStack [list]; 
            } 
            if { ( $__n > 0 ) && ( $__n != $::errorLevel ) } { 
                    set ::errorLevel $__n 
                    set __l [info level 0] 
                    lappend ::errorStack $__l 
            } 
            list } 
     namespace eval ns { 
            set Const(dCommands) [dict create \
                            01 [dict create In {}] \
                            ] 
     } 
    
     proc ns::nsConfigGet {} { 
            variable Const 
            dict for {Command dParams} $Const(dCommands) { 
                    foreach IndexCur {In} { 
                            set CountCur [expr {[dict get $dParams In]/3}] 
                    } 
            } 
     } 
     ns::nsConfigGet 
    
    gdb backtrace shows OBJ_AT_TOS garbled when trying to ReturnStk.
    Miguel immediately identifies the data caching issue solved 2010-09-22 on the 8.6 branch.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "9 Immediate"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "ferrieux"
  10. subsystem changed to: "46. Traces"
  11. title changed to: "Yet another crash in traces"
  12. type changed to: "Bug"