Ticket #1763 (closed bug: fixed)

Opened 11 years ago

Last modified 11 years ago

Memory leak in PackFile_Annotations_new

Reported by: nwellnhof Owned by:
Priority: normal Milestone:
Component: core Version: trunk
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:

Description

$ ./parrot -o tmp2.pbc t/compilers/pct/pct_hllcompiler_2.pir
$ valgrind --leak-check=full ./parrot tmp2.pbc
==10513== Memcheck, a memory error detector
==10513== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==10513== Memcheck, a memory error detector
==10513== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==10513== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==10513== Command: ./parrot tmp2.pbc
==10513==
thingy
==10513==
==10513== HEAP SUMMARY:
==10513==     in use at exit: 2,067,295 bytes in 1,305 blocks
==10513==   total heap usage: 17,179 allocs, 15,874 frees, 3,262,092 bytes allocated
==10513==
==10513== 68 bytes in 1 blocks are definitely lost in loss record 67 of 501
==10513==    at 0x402328F: calloc (vg_replace_malloc.c:467)
==10513==    by 0x4087E89: gc_ms_allocate_memory_chunk_zeroed (gc_ms.c:1415)
==10513==    by 0x4086E58: Parrot_gc_allocate_memory_chunk_with_interior_pointers (api.c:660)
==10513==    by 0x40B2CE4: PackFile_Annotations_new (packfile.c:4281)
==10513==    by 0x40B3353: PackFile_Segment_new_seg (packfile.c:1765)
==10513==    by 0x417652E: e_pbc_emit (pbc.c:2376)
==10513==    by 0x416CD5A: emit_flush (instructions.c:830)
==10513==    by 0x4169615: imc_compile_unit (imc.c:124)
==10513==    by 0x416964C: imc_close_unit (imc.c:235)
==10513==    by 0x4160169: yyparse (imcc.y:1180)
==10513==    by 0x4163C03: imcc_run_compilation (imcc.l:1347)
==10513==    by 0x4164DB0: compile_string (imcc.l:1338)
==10513==

Change History

Changed 11 years ago by nwellnhof

  • version changed from 2.6.0 to trunk
  • component changed from none to core

Changed 11 years ago by plobsing

  • status changed from new to closed
  • resolution set to fixed

fixed in r48795.

Note: See TracTickets for help on using tickets.