Skip to content
Tcl Source Code History Of Ticket 6a2d339e50
Login

History Of Ticket 6a2d339e50

Artifacts Associated With Ticket 6a2d339e50

  1. Ticket change [290444aa3c] (rid 138765) by dgp on 2014-07-15 15:59:53:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      ==31159== 213 (48 direct, 165 indirect) bytes in 1 blocks are definitely lost in loss record 6 of 8
      ==31159==    at 0x4A0610C: malloc (vg_replace_malloc.c:195)
      ==31159==    by 0x5D1532: TclpAlloc (tclAlloc.c:699)
      ==31159==    by 0x43D1AE: Tcl_Alloc (tclCkalloc.c:1059)
      ==31159==    by 0x548586: TclCreateLiteral (tclLiteral.c:236)
      ==31159==    by 0x54898F: TclRegisterLiteral (tclLiteral.c:434)
      ==31159==    by 0x4DA4FA: TclCompileInvocation (tclCompile.c:1838)
      ==31159==    by 0x4DB701: CompileCommandTokens (tclCompile.c:2083)
      ==31159==    by 0x4DBB03: TclCompileScript (tclCompile.c:2202)
      
    5. foundin initialized to: "trunk"
    6. is_private initialized to: "0"
    7. login: "dgp"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "dgp"
    13. subsystem initialized to: "33. Safe Base"
    14. title initialized to: "memleaks in safe-13.2, safe-13.4"
    15. type initialized to: "Bug"
  2. Ticket change [95f4f7041a] (rid 138787) by dgp on 2014-07-16 15:08:45:

    1. icomment:
      After spinning my wheel for far too long
      trying to locate the leak, I decided to
      bisect, looking for the origins.
      
      The leak in test safe-13.2 begins happening
      with checkin
      
      http://core.tcl.tk/tcl/info/4492d3b64521aaeedca4b92712248dc19a5b3c40
      
      Was not expecting that.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  3. Ticket change [7e644c8de8] (rid 138789) by dgp on 2014-07-16 15:36:21:

    1. icomment:
      Shifting the search onto the dkf-bytecode-8.6
      branch, I track down the leak origin to checkin
      
      http://core.tcl.tk/tcl/info/abb9522f549a8304020c2e149fd7f934bfa54478
      
      "Improved general case of [string replace] implementation."
      
      Now to look where the light is good....
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  4. Ticket change [a717b0d076] (rid 138790) by dgp on 2014-07-16 15:47:10:

    1. icomment:
      Lines 5220-5273 of tclExecute.c in that checkin
      lack any decr ref count on the value3Ptr to
      account for its removal from the stack.
      
      Checking to see if any other test covers
      that code...
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  5. Ticket change [c8e0eae389] (rid 138791) by dgp on 2014-07-16 15:54:47:

    1. icomment:
      Yes, stringObj-6.9.
      
      And as expected valgrind see the leak there too.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  6. Ticket change [68aebfef3d] (rid 138794) by dgp on 2014-07-16 15:59:34:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2456855.16636863"
    3. closer changed to: "dgp"
    4. icomment: "fixed on trunk."
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. subsystem changed to: "47. Bytecode Compiler"