Bug 1379

Summary: lte-multiple-flows example crashes
Product: ns-3 Reporter: John Abraham <john.abraham.in>
Component: lteAssignee: Nicola Baldo <nicola>
Status: RESOLVED FIXED    
Severity: major CC: ns-bugs, tomh
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   
Attachments: The device number was wrong

Description John Abraham 2012-02-29 08:59:22 UTC
Apparently it was crashing on ns-3.13 as well.

John-Abrahams-MacBook-Pro:ns-3-dev john$ ./waf --run "lte-multiple-flows" --command-template="gdb --args %s"
Waf: Entering directory `/Users/john/ns-3/ns3push/ns-3-dev/build'
Waf: Leaving directory `/Users/john/ns-3/ns3push/ns-3-dev/build'
'build' finished successfully (1.463s)
GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul  1 10:50:06 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ................................................ done


(gdb) run
Starting program: /Users/john/ns-3/ns3push/ns-3-dev/build/src/lte/examples/ns3-dev-lte-multiple-flows-debug 
Reading symbols for shared libraries +++++++++++++++++++++++++++++++++++++++++++++++.................................warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_bzip2/work/bzip2-1.0.6/blocksort.o" - no debug information available for "blocksort.c".

warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_bzip2/work/bzip2-1.0.6/huffman.o" - no debug information available for "huffman.c".

warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_bzip2/work/bzip2-1.0.6/crctable.o" - no debug information available for "crctable.c".

warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_bzip2/work/bzip2-1.0.6/randtable.o" - no debug information available for "randtable.c".

warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_bzip2/work/bzip2-1.0.6/compress.o" - no debug information available for "compress.c".

warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_bzip2/work/bzip2-1.0.6/decompress.o" - no debug information available for "decompress.c".

warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_bzip2/work/bzip2-1.0.6/bzlib.o" - no debug information available for "bzlib.c".

............................................................................................................ done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
0x0000000100f4e1ce in ns3::Ipv4InterfaceContainer::GetAddress (this=0x7fff5fbfe838, i=1, j=0) at ipv4-interface-container.cc:43
43	  return ipv4->GetAddress (interface, j).GetLocal ();
(gdb) bt
#0  0x0000000100f4e1ce in ns3::Ipv4InterfaceContainer::GetAddress (this=0x7fff5fbfe838, i=1, j=0) at ipv4-interface-container.cc:43
#1  0x0000000100004ce5 in main (argc=1, argv=0x7fff5fbff858) at lte-multiple-flows.cc:182
(gdb)
Comment 1 Tommaso Pecorella 2012-03-18 14:32:50 UTC
Created attachment 1363 [details]
The device number was wrong

Kinda stupid bug. Don't know if it work as intended, but it doesn't crash anymore.

Need a check from lte maintainer.

T.
Comment 2 Tom Henderson 2012-04-23 12:05:59 UTC
will be fixed by the pending LENA LTE merge (I have been told).
Comment 3 Tom Henderson 2012-05-18 17:19:59 UTC
can this be closed now?
Comment 4 Nicola Baldo 2012-05-19 10:58:45 UTC
Yes, the example lte-multiple-flows has been replaced by other examples.