Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 03334108e20c13f944f6837cb4447e0d0702800e
Ticket: 3154ea27591de16257a7b8b8d361514b004e527f
Repeat catch six times and get core dump
User & Date: aspect on 2016-06-22 13:27:43
Changes

  1. icomment:
    seems like kbk already snuck this into trunk ..
    http://core.tcl.tk/tcl/timeline?r=bug-3154ea2759
    
    Looking at the code again (without understanding much!), this
    seems to be the right thing.  The second loop in
    UnstackExpiredCatches already includes such a guard, and can
    clearly set catches[i]=NULL, catchDepth[i]=-1 for items not at the
    end of the array.  StackFreshCatches also has the guard and
    LookForFreshCatches has a stronger condition.
    
    This all argues that NULL/-1 in the middle of the array is legit,
    UEC has been missing the guard now in trunk since it was born, and
    six exception ranges really is a lot!
    
    I suspect StackFreshCatches only has catchDepth as an argument out
    of symmetry with UnstackExpiredCatches, which actually needs it.
    
    Some tidying up could be in order, but I think the bug is
    satisfactorily resolved.
    
  2. login: "aspect"
  3. mimetype: "text/plain"