Crash and assert failure during script with ToS and CCA mechanism

80 views
Skip to first unread message

Łukasz M

unread,
Jan 12, 2017, 2:56:57 AM1/12/17
to ns-3-users
Hi,

I work on a script concerning ToS, CCA and generally QoS.
I have tried two releases of 3.26 version: ns-3.26 and ns-3.26-dev and I got segmentation fault in one case and assert failure in another. I have no ideas how I can avoid it.
Can you take a look at it? It is very important, because my master thesis based on this script.

I attached two files with described problems and the script.

Best Regards,
Łukasz
ns-3.26 dev.png
ns-3.26.png
script_cca_tos.cc

Łukasz M

unread,
Jan 15, 2017, 5:21:45 AM1/15/17
to ns-3-users
Can anyone help?

Tommaso Pecorella

unread,
Jan 15, 2017, 6:39:07 PM1/15/17
to ns-3-users
Hi,

the Simulator::Destroy (); cal should be at the very end of the cycle. Otherwise the applications will be deleted and accessing their objects will be fatal.

Beside this, you did hit a bug. Please check Bugzilla if there's some bug open about this, and (in case there's nothing similar) contact the Wi-Fi module maintainer.

Thanks,

T.

On Sunday, January 15, 2017 at 11:21:45 AM UTC+1, Łukasz M wrote:
Can anyone help?

Sebastien Deronne

unread,
Jan 18, 2017, 3:23:54 PM1/18/17
to ns-3-users
Which version are you using?

I hit a different issue when I run your script:
msg="Ipv4AddressGeneratorImpl::Add(): Address Collision: 192.168.1.1", file=../src/internet/model/ipv4-address-generator.cc, line=367
libc++abi.dylib: terminating

I suspect the bug was fixed in ns-3-dev and the new issue is no longer pointing to wifi.

Łukasz M

unread,
Jan 18, 2017, 6:16:58 PM1/18/17
to ns-3-users
@Sebastien - names of pictures include used version.

@Tommaso - I did as you advised concerning "Simulator::Destroy()" and it works correct, but unfortunatelly, after some time, there is another bug:

msg="Packet in blockAck manager retry queue is not Qos Data", file=../src/wifi/model/block-ack-manager.cc, line=531
terminate called without an active exception
Command ['/home/bieniu/workspace/ns-allinone-3.26/ns-3.26/build/scratch/ht-wifi-network_tos'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").

I used 3.26 version. Also, I attached the script.
Could you help with it?

Best Regards 

Łukasz M

unread,
Jan 18, 2017, 6:18:19 PM1/18/17
to ns-3-users
I forgot about used script. 
ht-wifi-network_tos.cc

Tommaso Pecorella

unread,
Jan 19, 2017, 7:17:46 AM1/19/17
to ns-3-users, sebastie...@gmail.com
Good news everyone! -- Prof. Farnsworth

The bug is there BUT I'm not able to reproduce it consistently.
On my MacOS it shows.
On my Linux box it doesn't.

The hunt begins (and I have little or no time to hunt, sorry).

T

Tommaso Pecorella

unread,
Jan 19, 2017, 7:23:46 AM1/19/17
to ns-3-users, sebastie...@gmail.com
Correction: it happens on Linux too, only much, much later in the simulation.
It seems a memory corruption issue, I'll try to run it through Valgrind.

T.

Łukasz M

unread,
Jan 20, 2017, 3:05:16 AM1/20/17
to ns-3-users, sebastie...@gmail.com
Yes, it happens on Linux and, as you wrote, it occurs later, not at the beginning of the simulation.

Thanks in advance, Tommaso!
I will be waiting for your response and more details.

Best Regards,
Łukasz

Sebastien Deronne

unread,
Jan 20, 2017, 1:16:43 PM1/20/17
to ns-3-users

Sorry but I get a different error if I run your new script:

msg="Packet has no Traffic ID", file=../src/wifi/model/qos-utils.cc, line=163
libc++abi.dylib: terminating

Łukasz M

unread,
Jan 23, 2017, 7:19:16 AM1/23/17
to ns-3-users, sebastie...@gmail.com
Tommaso, did you check this issue already?

Łukasz M

unread,
Jan 24, 2017, 3:25:14 PM1/24/17
to ns-3-users
@Sebastien - maybe you used another version of ns-3 than me. I have used ns-3.26 version.
As you can see, Tommaso has the same errors like me. 

Gmail

unread,
Jan 24, 2017, 3:46:37 PM1/24/17
to ns-3-...@googlegroups.com
I use the latest ns-3-dev
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Łukasz M

unread,
Jan 27, 2017, 3:30:55 AM1/27/17
to ns-3-users
Tommaso? Do you have any solutions?
It is very important for me, because my master thesis depens on this. 

Tommaso Pecorella

unread,
Jan 29, 2017, 8:15:15 PM1/29/17
to ns-3-users
Hi,

sorry but I'm extremely busy these days. As I said, it seems a memory issue, but I don't know which one.
My suggestion is to try with valgrind and an extremely short run. If there's a memory failure it should find it.

Cheers,

T.
Reply all
Reply to author
Forward
0 new messages