[Ns-bugs] [Bug 1290] New: buffer-test.cc gets a valgrind error
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Wed Nov 9 14:33:51 PST 2011
https://www.nsnam.org/bugzilla/show_bug.cgi?id=1290
Summary: buffer-test.cc gets a valgrind error
Product: ns-3
Version: pre-release
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: network
AssignedTo: ns-bugs at isi.edu
ReportedBy: watrous at u.washington.edu
Estimated Hours: 0.0
Some of the ns-3 buildbots (full-rahan-g++-4.0.4) are failing.
I think the cause is the changes to this test:
src/network/test/buffer-test.cc
introduced in this changeset:
Bug 1001 - Buffer::CopyData() doesn't return the number of bytes copied
author frederic.urbani at inria.fr
Wed Nov 09 10:13:41 2011 +0100 (12 hours ago)
changeset 7573 a58e7a0cd725
parent 7572 45789a380d6a
child 7574 6b792c9b85cc
Here are the valgrind errors that buffer-test now gets:
stderr = ==2499== Memcheck, a memory error detector
==2499== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==2499== Using Valgrind-3.6.0.SVN and LibVEX; rerun with -h for copyright
info
==2499== Command:
/home/buildslave/slave/full-rahan-g++-4.0.4/build/build/utils/test-runner
--test-name=buffer --stop-on-failure --xml
--tempdir=testpy-output/2011-11-09-18-43-51-CUT
--out=testpy-output/2011-11-09-18-43-51-CUT/buffer.xml
==2499==
==2499==
==2499== HEAP SUMMARY:
==2499== in use at exit: 39 bytes in 1 blocks
==2499== total heap usage: 11,305 allocs, 11,304 frees, 883,071 bytes
allocated
==2499==
==2499== 39 bytes in 1 blocks are definitely lost in loss record 1 of 1
==2499== at 0x4A061AB: malloc (vg_replace_malloc.c:236)
==2499== by 0xCEED346: ns3::BufferTest::DoRun() (buffer-test.cc:312)
==2499== by 0xDDE574C: ns3::TestCase::Run(ns3::TestRunnerImpl*)
(test.cc:207)
==2499== by 0xDDE5700: ns3::TestCase::Run(ns3::TestRunnerImpl*)
(test.cc:201)
==2499== by 0xDDE739E: ns3::TestRunnerImpl::Run(int, char**)
(test.cc:785)
==2499== by 0xDDE7596: ns3::TestRunner::Run(int, char**) (test.cc:808)
==2499== by 0x400D12: main (test-runner.cc:23)
==2499==
==2499== LEAK SUMMARY:
==2499== definitely lost: 39 bytes in 1 blocks
==2499== indirectly lost: 0 bytes in 0 blocks
==2499== possibly lost: 0 bytes in 0 blocks
==2499== still reachable: 0 bytes in 0 blocks
==2499== suppressed: 0 bytes in 0 blocks
==2499==
==2499== For counts of detected and suppressed errors, rerun with: -v
==2499== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 7 from 7)
returncode = 2
--
Configure bugmail: https://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