Skip to content
Tcl Source Code History Of Ticket 587488ffffffffff
Login

History Of Ticket 587488ffffffffff

Artifacts Associated With Ticket 587488ffffffffff

  1. Ticket change [f6f76d04f1] (rid 130405) by msofer on 2002-07-27 18:58:35:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Reported on clt by Sven Sass on clt:
      http://groups.google.com/groups?dq=&start=25&hl=en&lr=&ie=UTF-8&group=comp.lang.tcl&selm=88d0b923.0207260455.4e4f3da9%40posting.google.com
      http://groups.google.com/groups?dq=&hl=en&lr=&ie=UTF-8&group=comp.lang.tcl&selm=ahrscj%24290%2402%241%40news.t-online.com
      
      The problem is: when compiling with  both 
         -DTCL_THREADS -DUSE_THREAD_ALLOC
      the following script (typed at the tclsh prompt) leaks
      massively
      
        for { set i 0 } { $i < 100000 } {incr i} {
            lappend a ""
            unset a
        }
      
      Replacing [lappend] with [append] or [unset a] with
      [set a {}] stops the leak; compiling with the previous
      allocator stops it too.
      
      I confirmed the problem on linux, with the HEAD as of
      2002-04-24 - i.e., just after the commit of the new
      allocator and before releasing tcl8.4b1.
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.4b2"
    5. priority initialized to: "8"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "msofer"
    9. subsystem initialized to: "41. Memory Allocation"
    10. title initialized to: "leak with the new thread allocator"
    11. type initialized to: "Bug"
  2. Ticket change [dc698d81f0] (rid 114472) by msofer on 2002-08-07 21:27:01:

    1. assignee changed to: "msofer"
    2. closedate changed to: "2002-08-07T14:27:01"
    3. closer changed to: "msofer"
    4. icomment:
      Logged In: YES 
      user_id=148712
      
      Fixed in HEAD - generic/tclObj.c (Tcl_NewObj) was missing
      the special code for USE_THREAD_ALLOC, and was thus
      allocating the object in a list that would never be freed.
      
      
    5. login: "msofer"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "msofer"
  3. Ticket change [7e3c1c33bd] (rid 97368) by msofer on 2002-08-09 01:47:30:

    1. closedate changed to: "2002-08-08T18:47:30"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      Note: no test added, the leak was already exercised by the
      testsuite (creating object with lappend), so that purify
      should pick it up.
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. username: "msofer"