bugTiny C Compiler - Bugs: bug #41956, Valgrind report memory leak when...

 
 

bug #41956: Valgrind report memory leak when running tcctest.c with tcc

Submitter:  Domingo Alvarez Duarte <mingodad>
Submitted:  Tue 25 Mar 2014 03:57:58 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 25 Mar 2014 03:57:58 PM UTC, original submission:  

valgrind --tool=memcheck --leak-check=full ../tcc -I../include -I.. -B.. -g  -run  tcctest.c
==26667== Memcheck, a memory error detector
==26667== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==26667== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==26667== Command: ../tcc -I../include -I.. -B.. -g -run tcctest.c
==26667==
...
==26667==
==26667== HEAP SUMMARY:
==26667==     in use at exit: 16,384 bytes in 1 blocks
==26667==   total heap usage: 7,825 allocs, 7,824 frees, 2,608,651 bytes allocated
==26667==
==26667== 16,384 bytes in 1 blocks are definitely lost in loss record 1 of 1
==26667==    at 0x4C2B7B2: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==26667==    by 0x402AA8: tcc_realloc (libtcc.c:240)
==26667==    by 0x416019: put_got_entry (tccelf.c:951)
==26667==    by 0x416897: build_got_entries (tccelf.c:1274)
==26667==    by 0x41C2D6: tcc_relocate_ex (tccrun.c:161)
==26667==    by 0x41C30E: tcc_relocate (tccrun.c:57)
==26667==    by 0x41C36D: tcc_run (tccrun.c:97)
==26667==    by 0x401A67: main (tcc.c:332)
==26667==
==26667== LEAK SUMMARY:
==26667==    definitely lost: 16,384 bytes in 1 blocks
==26667==    indirectly lost: 0 bytes in 0 blocks
==26667==      possibly lost: 0 bytes in 0 blocks
==26667==    still reachable: 0 bytes in 0 blocks
==26667==         suppressed: 0 bytes in 0 blocks
==26667==
==26667== For counts of detected and suppressed errors, rerun with: -v
==26667== Use --track-origins=yes to see where uninitialised values come from
==26667== ERROR SUMMARY: 4 errors from 2 contexts (suppressed: 2 from 2)

Domingo Alvarez Duarte <mingodad>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mingodad (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code