[Ns-bugs] [Bug 532] ./waf --valgrind --regression passes despite memory leak
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Sun Mar 29 14:53:31 PDT 2009
http://www.nsnam.org/bugzilla/show_bug.cgi?id=532
--- Comment #4 from Tom Henderson <tomh at tomh.org> 2009-03-29 17:53:30 EDT ---
(In reply to comment #2)
> Created an attachment (id=403)
--> (http://www.nsnam.org/bugzilla/attachment.cgi?id=403) [details]
> possible patch
>
> Can you try this patch?
>
This didn't work, using ./waf --valgrind --regression with the patched
regression.py:
==12619== Memcheck, a memory error detector.
==12619== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==12619== Using LibVEX rev 1804, a library for dynamic binary translation.
==12619== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==12619== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation
framework.
==12619== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==12619== For more details, rerun with: -v
==12619==
==12612==
==12612== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 8 from 1)
==12612== malloc/free: in use at exit: 136 bytes in 3 blocks.
==12612== malloc/free: 72,167 allocs, 72,164 frees, 3,474,423 bytes allocated.
==12612== For counts of detected errors, rerun with: -v
==12612== searching for pointers to 3 not-freed blocks.
==12612== checked 834,536 bytes.
==12612==
==12612== 136 (24 direct, 112 indirect) bytes in 1 blocks are definitely lost
in loss record 2 of 3
==12612== at 0x4C23809: operator new(unsigned long)
(vg_replace_malloc.c:230)
==12612== by 0x4066E9: main (csma-broadcast.cc:117)
==12612==
==12612== LEAK SUMMARY:
==12612== definitely lost: 24 bytes in 1 blocks.
==12612== indirectly lost: 112 bytes in 2 blocks.
==12612== possibly lost: 0 bytes in 0 blocks.
==12612== still reachable: 0 bytes in 0 blocks.
==12612== suppressed: 0 bytes in 0 blocks.
PASS test-csma-broadcast
To reproduce, just create some object in one of the scripts using operator new
and do not later delete it.
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Ns-bugs
mailing list