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

 
 

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

Submitted by:  Domingo Alvarez Duarte <mingodad>
Submitted on:  Tue 25 Mar 2014 03:57:58 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup