#5: partcl's [puts hi] exposes memory leaks in r33137
--------------------+-------------------------------------------------------
 Reporter:  coke    |        Owner:       
     Type:  bug     |       Status:  new  
 Priority:  major   |    Milestone:       
Component:  core    |      Version:       
 Severity:  none    |   Resolution:       
 Keywords:  memory  |         Lang:  tcl  
    Patch:          |     Platform:  linux
--------------------+-------------------------------------------------------
Comment (by adu):

 I could not use valgrind because I am on Mac OS X. However, Apple has a
 tool called '''leaks''' which was very helpful. Here is the output
 [http://pastebin.ca/1274468 before] and [http://pastebin.ca/1274469 after]
 garbage collection (GC). The recommended way of using leaks is to run it
 on a PID while the program is running, and to do this I put manual hangs
 so that parrot would stay around long enough to be tested. This is what
 the files looked like for these tests.

 For test 1 (before) main.c:main():
 {{{
     ...
     /* testing for memory leaks */
     if (getenv("PARROT_LEAK_TEST"))
         sleep(120);

     Parrot_destroy(interp);
     ...
 }}}

 For test 2 (after) exit.c:Parrot_exit():
 {{{
     ...
     /* testing for memory leaks */
     if (getenv("PARROT_LEAK_TEST"))
         sleep(120);

     exit(status);
     ...
 }}}

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/5#comment:3>
Parrot <http://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to