Changes between Initial Version and Version 1 of Ticket #33745
- Timestamp:
- Mar 24, 2012, 12:15:36 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33745
- Property Owner changed from macports-tickets@… to raimue@…
- Property Keywords valgrind g++ removed
- Property Cc cal@… added
-
Ticket #33745 – Description
initial v1 1 1 I have a small piece of C++ software that demonstrates leaks, but for whatever reason I cannot coax the file and line numbers. I used /usr/bin/g++ -g -W -Wall to compile every source. Some sources were generated by flex and bison, but otherwise it's just straightforward C++. 2 2 3 {{{ 3 4 ==985== 96 bytes in 4 blocks are definitely lost in loss record 13 of 22 4 5 ==985== at 0xB823: malloc (vg_replace_malloc.c:266) … … 7 8 ==985== by 0x1000016C7: yyparse(Parser*, void*) (in ./re) 8 9 ==985== by 0x10000291C: main (in ./re) 10 }}} 9 11 10 12 I attempted to reproduce with the following piece of C++ code, but it works. So, there's some difference between the two cases: 11 13 14 {{{ 12 15 $ cat leak.cpp 13 16 class Foo { … … 50 53 ==1299== by 0x100000E56: main (leak.cpp:14) 51 54 ... 55 }}} 52 56 53 57 Any suggestions you may have would be much appreciated.