Bug 14 - Memory errors apparent in samples/main-p2p-net-device-if.cc
Memory errors apparent in samples/main-p2p-net-device-if.cc
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: samples
pre-release
PC Linux
: P1 blocker
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-03 14:15 UTC by Gustavo J. A. M. Carneiro
Modified: 2007-04-18 00:30 UTC (History)
0 users

See Also:


Attachments
valgrind log (26.53 KB, text/plain)
2007-04-03 14:15 UTC, Gustavo J. A. M. Carneiro
Details
big log, easy fix (903 bytes, patch)
2007-04-03 14:20 UTC, Gustavo J. A. M. Carneiro
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo J. A. M. Carneiro 2007-04-03 14:15:24 UTC
In the ns-3-dev branch, when running the program produced by samples/main-p2p-net-device-if.cc I get a segfault in the end, when the program is releasing all memory.  Valgrind shows double-free corruption.
Comment 1 Gustavo J. A. M. Carneiro 2007-04-03 14:15:47 UTC
Created attachment 7 [details]
valgrind log
Comment 2 Gustavo J. A. M. Carneiro 2007-04-03 14:20:43 UTC
Created attachment 8 [details]
big log, easy fix
Comment 3 Tom Henderson 2007-04-18 00:30:19 UTC
This sample probably going away, but it is fixed for now.