#1762: Memory leak in Parrot_find_method_with_cache
-----------------------+----------------------------------------------------
Reporter: nwellnhof | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: core | Version: trunk
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
-----------------------+----------------------------------------------------
{{{
$ ./parrot -o tmp2.pbc t/compilers/pge/pge_text_5.pir
$ valgrind --leak-check=full ./parrot tmp2.pbc
==9708== Memcheck, a memory error detector
==9708== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==9708== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for
copyright info
==9708== Command: ./parrot tmp2.pbc
==9708==
failed==9708==
==9708== HEAP SUMMARY:
==9708== in use at exit: 1,522,965 bytes in 835 blocks
==9708== total heap usage: 17,604 allocs, 16,769 frees, 2,768,608 bytes
allocated
==9708==
==9708== 12 bytes in 1 blocks are definitely lost in loss record 9 of 464
==9708== at 0x402328F: calloc (vg_replace_malloc.c:467)
==9708== by 0x4087E89: gc_ms_allocate_memory_chunk_zeroed
(gc_ms.c:1415)
==9708== by 0x4086E58:
Parrot_gc_allocate_memory_chunk_with_interior_pointers (api.c:660)
==9708== by 0x40B1685: Parrot_find_method_with_cache (oo.c:1016)
==9708== by 0x40CE6AA: Parrot_default_find_method (default.pmc:568)
==9708== by 0x408C71E: Parrot_pcc_invoke_method_from_c_args (pcc.c:201)
==9708== by 0x411D99D: Parrot_CodeString_nci_key (codestring.pmc:513)
==9708== by 0x40E16FC: Parrot_NCI_invoke (nci.pmc:396)
==9708== by 0x406A1C5: Parrot_callmethodcc_p_sc (core_ops.c:19793)
==9708== by 0x40BB0B4: runops_slow_core (cores.c:647)
==9708== by 0x40BA9CD: runops_int (main.c:237)
==9708== by 0x40903FC: runops (ops.c:127)
==9708==
}}}
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1762>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets