Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6417b7c113abe69b8fc645bd57c1d4ca8fbb5f21b8a9347771e1205b594e154f
Ticket: 0e3f777ed566b80ba44886212cfd9882819ee06c
Segfault upon sequence of execution traces
User & Date: erikleunissen on 2026-07-25 15:25:16
Changes

  1. comment changed to:
    Attached reproducible script "exercise.tcl" and full stack trace in
    "stack_trace.txt".
    
    To reproduce do:
    
    > cat exercise.tcl
    proc p {} {
        # This proc needs to hold at least one (arbitrary) command
        # for enterstep traces to work.
        puts "p invoked"
    }
    proc handleTrace1 {args} {
        trace remove execution p enterstep handleTrace1
    }
    proc handleTrace0 {args} {
        trace add execution p enterstep handleTrace1
    }
    trace add execution p leave handleTrace0
    trace add execution p leave handleTrace0
    p
    p
    
    > tclsh9.1 exercise.tcl
    p invoked
    Segmentation fault (core dumped)
    
  2. login: "erikleunissen"
  3. mimetype: "text/plain"