Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 586a01599628658163e1c927a979bea46fb0df74
Ticket: 3392070fffffffffffffffffffffffffffffffff
literal leak with delayed compile [subst]
User & Date: dgp on 2011-08-15 17:19:18
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    This exercise of the test suite leaks:
    
    $ make valgrind TESTFLAGS='-file "regexpComp.test subst.test" -match "regexpComp-12.1 subst-3.2"'
    ...
    ==4233== 292 (48 direct, 244 indirect) bytes in 1 blocks are definitely lost in loss record 23 of 24
    ==4233==    at 0x4A05E1C: malloc (vg_replace_malloc.c:195)
    ==4233==    by 0x498654: Tcl_Alloc (in /local/tmp/dgp/fossil/tcl-only/unix/tcltest)
    ==4233==    by 0x4FB2CA: TclCreateLiteral (in /local/tmp/dgp/fossil/tcl-only/unix/tcltest)
    ==4233==    by 0x44821F: InitLocalCache (in /local/tmp/dgp/fossil/tcl-only/unix/tcltest)
    ==4233==    by 0x4488F0: TclNRInterpProcCore (in /local/tmp/dgp/fossil/tcl-only/unix/tcltest)
    ==4233==    by 0x48E315: TclNRRunCallbacks (in /local/tmp/dgp/fossil/tcl-only/unix/tcltest)
    ==4233==    by 0x493E03: TclEvalEx (in /local/tmp/dgp/fossil/tcl-only/unix/tcltest)
    ==4233==    by 0x494135: Tcl_EvalEx (in /local/tmp/dgp/fossil/tcl-only/unix/tcltest)
    
    Looking at the tests, I suspect the literal value "j" is leaking,
    but don't have anything more concrete than that yet.
    
  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: "dgp"
  10. subsystem changed to: "47. Bytecode Compiler"
  11. title changed to: "literal leak in regexpComp/subst combination"
  12. type changed to: "Bug"