Segmentation fault in model/ns3-socket-fd-factory.cc

150 views
Skip to first unread message

Hans van den Bogert

unread,
Aug 20, 2014, 5:06:19 PM8/20/14
to ns-3-...@googlegroups.com
After continuing with DCE using another binary, compared to my other recent thread, I encountered this segmentation fault:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff7fba700 (LWP 13038)]
0x00007ffff7b1b3d0 in ns3::Ns3SocketFdFactory::CreateSocket (this=0x642040, domain=2, type=2, protocol=0) at ../model/ns3-socket-fd-factory.cc:82

The executable is doing some udp sendto, so nothing too fancy

I’m not sure if I’m doing things wrong or this is a bug in DCE, if it is the latter and source for the executable is needed let me know.

Hans

Hajime Tazaki

unread,
Sep 4, 2014, 8:23:25 PM9/4/14
to ns-3-...@googlegroups.com

I guess the error is different from another one.

The crash is because of failing to obtain the socket factory
name of ns-3.

TypeId tid = TypeId::LookupByName ("ns3::UdpSocketFactory");

It's out of my imagine but wondering how did you build DCE
(and ns-3) ? bake ?

or missing ns-3 module dependency in wscript for your
example ?

> I'm not sure if I'm doing things wrong or this is a bug in DCE, if it is the latter and source for the executable is needed let me know.

I'd like to see at least:

- wscript
- your ns-3 script
- source of executable running on DCE, and Makefile (how to build it)

thanks !
-- Hajime

At Wed, 20 Aug 2014 23:08:47 +0200,
> --
> 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 http://groups.google.com/group/ns-3-users.
> For more options, visit https://groups.google.com/d/optout.

Hans van den Bogert

unread,
Sep 5, 2014, 8:10:31 AM9/5/14
to ns-3-...@googlegroups.com
Solved, same reason as https://groups.google.com/d/msg/ns-3-users/2Y5FzSph7Lk/rc6tWDn6SDMJ

I didn't install a internetstack in the node.
Reply all
Reply to author
Forward
0 new messages