Bug 1501 - Tcp test crash using another test case.
Tcp test crash using another test case.
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: tcp
ns-3.15
PC Linux
: P5 normal
Assigned To: Adrian S.-W. Tam
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-05 08:20 EDT by Frederic Urbani
Modified: 2012-12-07 10:04 EST (History)
2 users (show)

See Also:


Attachments
Patch usable to reproduce the crash. (771 bytes, patch)
2012-09-05 08:20 EDT, Frederic Urbani
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Urbani 2012-09-05 08:20:50 EDT
Created attachment 1442 [details]
Patch usable to reproduce the crash.

I was trying to reproduce a bug using tcp-test and I found this:

Find in attachment the little patch to tcp-test.cc then tcp-test will crash.
Comment 1 Brian Swenson 2012-12-06 14:10:24 EST
Is this still a bug?  I'm not able to replicate with ns-3-dev.  See below:

$:~/Code/NS3/Diff/ns-3-allinone/ns-3-dev$ hg diff
diff -r 0c6d395e5db2 src/internet/test/tcp-test.cc
--- a/src/internet/test/tcp-test.cc	Thu Dec 06 08:45:57 2012 -0800
+++ b/src/internet/test/tcp-test.cc	Thu Dec 06 14:09:19 2012 -0500
@@ -438,10 +438,12 @@
     AddTestCase (new TcpTestCase (13, 200, 200, 200, 200, false));
     AddTestCase (new TcpTestCase (13, 1, 1, 1, 1, false));
     AddTestCase (new TcpTestCase (100000, 100, 50, 100, 20, false));
+    AddTestCase (new TcpTestCase (10000, 1000, 2000, 100, 20, false));
 
     AddTestCase (new TcpTestCase (13, 200, 200, 200, 200, true));
     AddTestCase (new TcpTestCase (13, 1, 1, 1, 1, true));
     AddTestCase (new TcpTestCase (100000, 100, 50, 100, 20, true));
+    AddTestCase (new TcpTestCase (10000, 1000, 2000, 100, 20, true));
   }
 
 } g_tcpTestSuite;
$:~/Code/NS3/Diff/ns-3-allinone/ns-3-dev$ ./test.py --suite=tcp
         
[...]

PASS: TestSuite tcp
Comment 2 Frederic Urbani 2012-12-07 04:24:25 EST
You are right it is not more a bug, I just try using current ns-3-dev.