Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 649eff064173e00218acc58be1652127317144f1
Ticket: 494348ffffffffffffffffffffffffffffffffff
foreach crashes in recursion
User & Date: nobody on 2001-12-20 09:49:56
Changes

  1. icomment:
    Logged In: NO 
    
    Donal, you are right. To crash the application we need one
    more condition: a trace function.
    To do it, just add empty trace function into Tcl_AppInit:
        Tcl_CreateTrace (interp, 10, EmptyProc, NULL);
    This will change the execution flow (tclExecute.c):
        DECACHE_STACK_INFO();
        CallTraceProcedure(interp, tracePtr, cmdPtr,
               cmd, numChars, objc, objv);
        CACHE_STACK_INFO();
    Regards,
    Yevgen
    
    
    
  2. login: "nobody"
  3. mimetype: "text/plain"
  4. username: "nobody"