Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b613eaa37fb10000aea6632dd6966e091416e90a
Ticket: 3386417fffffffffffffffffffffffffffffffff
errorstack leaked on syntax error
User & Date: msofer on 2011-08-04 23:03:38
Changes

  1. assignee changed to: "ferrieux"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    When the compiler bails out on a syntax error, the errorstack is leaked. For example, for the script
    
      namespace eval x {set syntax {}{}}
    
    valgrind reports
    
    
      0:  malloc (vg_replace_malloc.c:236)
      1:  TclpAlloc (tclAlloc.c:705)
      2:  Tcl_Alloc (tclCkalloc.c:1046)
      3:  Tcl_NewListObj (tclListObj.c:225)
      4:  Tcl_CreateInterp (tclBasic.c:542)
      5:  Tcl_Main (tclMain.c:639)
      6:  main (tclAppInit.c:84)
    -- foo: ==9070== 3,248 (48 direct, 3,200 indirect) bytes in 1 blocks are definitely lost in loss record 136 of 136
    
    
  4. foundin changed to: "obsolete: 8.6b2"
  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: "msofer"
  10. subsystem changed to: "47. Bytecode Compiler"
  11. title changed to: "errorstack leaked on syntax error"
  12. type changed to: "Bug"