error: vanet_routing_compare.cc

295 views
Skip to first unread message

Shilpi Mittal

unread,
Apr 8, 2021, 1:19:27โ€ฏPM4/8/21
to ns-3-...@googlegroups.com
Dear All,
Kindly someone help me out to solve this Problem:

ubuntu@ubuntu:~/ns-3-dev$ ./waf --run "scratch/vanet-routing-compare --protocol=2 --scenario=2"
Waf: Entering directory `/home/ubuntu/ns-3-dev/build'
Waf: Leaving directory `/home/ubuntu/ns-3-dev/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (1.486s)
Routing Setup for AODV
assert failed. cond="m_ptr", msg="Attempted to dereference zero pointer", +0.000000000s -1 file=./ns3/ptr.h, line=630
terminate called without an active exception
Command ['/home/ubuntu/ns-3-dev/build/scratch/vanet-routing-compare', '--protocol=2', '--scenario=2'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --gdb").

Shilpi Mittal

unread,
Apr 8, 2021, 10:13:37โ€ฏPM4/8/21
to ns-3-...@googlegroups.com
Hi teammates,

Kindly solve my problem. Send ur suggestions please

Tom Henderson

unread,
Apr 8, 2021, 11:10:56โ€ฏPM4/8/21
to ns-3-...@googlegroups.com, Shilpi Mittal
On 4/8/21 7:13 PM, Shilpi Mittal wrote:
> Hi teammates,
>
> Kindly solve my problem. Send ur suggestions please

I am not sure about the below program error; did you modify ns-3 or the
program vanet-routing-compare.cc?

If you download and build the latest development version of ns-3-dev,
this program should run successfully as you configured it:

$ ./waf --run 'vanet-routing-compare --protocol=2 --scenario=2'

Since the ns-3.33 release in January, some bugs were fixed in this
example program, so if you are using a released version of ns-3, this
program may not work for the above configuration. However, it does not
produce the error that you list below.

To debug errors like this in general, we recommend to use gdb:

https://www.nsnam.org/wiki/HOWTO_use_gdb_to_debug_program_errors

- Tom
> --
> 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
> <mailto:ns-3-users+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ns-3-users/CADeTpUe2g%3Dy%3DGtGDG4%2BRcrGT%2BNhQRHuz2bU7%2BfD_uUuz8ezTdg%40mail.gmail.com
> <https://groups.google.com/d/msgid/ns-3-users/CADeTpUe2g%3Dy%3DGtGDG4%2BRcrGT%2BNhQRHuz2bU7%2BfD_uUuz8ezTdg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Shilpi Mittal

unread,
Apr 14, 2021, 1:57:11โ€ฏAM4/14/21
to ns-3-...@googlegroups.com
Thanks Tom for your support. Bug has been resolved.๐Ÿ‘

Jian Liu

unread,
Apr 4, 2022, 2:34:04โ€ฏPM4/4/22
to ns-3-users
Could I ask how did you solve the problem? I am facing the same error.

Tom Henderson

unread,
Apr 4, 2022, 2:42:36โ€ฏPM4/4/22
to ns-3-...@googlegroups.com
On 4/4/22 11:34, Jian Liu wrote:
> Could I ask how did you solve the problem? I am facing the same error.

Either using git or using a web browser, you can have a look at the git
history of vanet-routing-compare.cc and see the changes that were made
recently.

https://gitlab.com/nsnam/ns-3-dev/-/commits/master/src/wave/examples/vanet-routing-compare.cc
Reply all
Reply to author
Forward
0 new messages