[Ns-bugs] [Bug 527] PointToPointNetDevice::~PointToPointNetDevice never called

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Mon Mar 23 05:40:40 PDT 2009


http://www.nsnam.org/bugzilla/show_bug.cgi?id=527





--- Comment #1 from Mathieu Lacage <mathieu.lacage at sophia.inria.fr>  2009-03-23 08:40:40 EDT ---
Running this code in valgrind shows:
[mlacage at diese ns-3-dev]$ valgrind
./build/debug/examples/simple-point-to-point-olsr 
==1695== Invalid free() / delete / delete[]
==1695==    at 0x40052EA: operator delete(void*, std::nothrow_t const&)
(vg_replace_malloc.c:354)
==1695==    by 0x155058: std::__verify_grouping(char const*, unsigned,
std::string const&) (locale_facets.cc:108)
==1695==    by 0x155F8C: std::locale::_Impl::_Impl(char const*, unsigned)
(localename.cc:218)
==1695==    by 0x97C5EF: pthread_once (pthread_once.S:122)
==1695==    by 0x157137: std::locale::locale() (localename.cc:88)
==1695==    by 0x15211C: std::locale::_Impl::_Impl(std::locale::_Impl const&,
unsigned) (locale.cc:251)
==1695==    by 0x475477D: __static_initialization_and_destruction_0(int, int)
(iostream:77)
==1695==    by 0x47547E7: _GLOBAL__I_v4ping.cc (v4ping.cc:180)
==1695==    by 0x475740C: (within
/home/mlacage/code/ns-3-dev/build/debug/libns3.so)
==1695==    by 0x429E203: (within
/home/mlacage/code/ns-3-dev/build/debug/libns3.so)
==1695==    by 0x7B01EC: _dl_init (dl-init.c:70)
==1695==    by 0x7A088E: (within /lib/ld-2.9.so)
==1695==  Address 0x1ee188 is not stack'd, malloc'd or (recently) free'd


==1695== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 56 from 1)
==1695== malloc/free: in use at exit: 0 bytes in 0 blocks.
==1695== malloc/free: 56,472 allocs, 56,473 frees, 2,130,473 bytes allocated.
==1695== For counts of detected errors, rerun with: -v
==1695== All heap blocks were freed -- no leaks are possible.



which does not look very good. *sigh*

[mlacage at diese ns-3-dev]$ valgrind --version
valgrind-3.3.0


-- 
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