Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 678875e8b3cf9c4d0a2a64056adeddb8104a5f2c
Ticket: 1964803fffffffffffffffffffffffffffffffff
crash with tcl_traceExec and format strings
User & Date: ajpasadyn on 2008-05-15 19:34:40
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I'm using the exec trace to try to track down what the interpreter is doing when I encounter a Tcl_Panic in 8.5.2, and I got a crash in the trace itself.  
    
    % set tcl_traceExec 3
    3
    % set fmt "%s%s"
    
    Executing ByteCode 0x00BF96B0, refCt 2, epoch 3, interp 0x00A3CB68 (epoch 3)
      Source: "history add {set fmt \"    4??vQg*?(null)\"}"
      Cmds 1, src 28, inst 9, litObjs 3, aux 0, stkDepth 3, code/src 0.00
      Starting stack top=0
     1:  0 (0) push1 0      # "history"
     1:  1 (0) push1 0 => "history"
     1:  1 (2) push1 1      # "add"
     1:  2 (2) push1 1 => "add"
     1:  2 (4) push1 2      # "set fmt \"%s%s\""
     1:  3 (4) push1 2 =>
    
    
    It's passing an unknown string to fprintf without a format string.  I attached a patch I'm using to get past it.  
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "ajpasadyn"
  10. subsystem changed to: "47. Bytecode Compiler"
  11. title changed to: "crash with tcl_traceExec and format strings"
  12. type changed to: "Bug"