SIGSEGV error....help me please :(

2,213 views
Skip to first unread message

Giuseppe Ferrante

unread,
Jul 4, 2012, 7:29:11 AM7/4/12
to ns-3-...@googlegroups.com
i got this error:

Waf: Entering directory `/home/giuseppe/workspace/ns-3-lte-SpectrumSharing/build'
Waf: Leaving directory `/home/giuseppe/workspace/ns-3-lte-SpectrumSharing/build'
'build' finished successfully (0.497s)
Starting simulation.....
Command ['/home/giuseppe/workspace/ns-3-lte-SpectrumSharing/build/debug/scratch/multi_op', '1', '2', '40', '20', '20', '111'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").

searching from the web i also did this command to create a link between che library
/workspace/ns-3-lte-SpectrumSharing/build/debug$ sudo ln -s libns3.so /lib/libns3.so

but it doesn't work anyway!!

could someone help me!!

Hanene GABTENI

unread,
Jul 4, 2012, 10:37:34 AM7/4/12
to ns-3-...@googlegroups.com
Hi, then I have actually the same problem. this is a segmentation error. that means: you point to an adress and you find nothing. then when debugging(in my case) I found "null pointer exception" . I try to make sure that all pointer and specially vectors variables are correctly instanciated.

I hope this will help.


2012/7/4 Giuseppe Ferrante <storx...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ns-3-users/-/adcQTCtBxG0J.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.



--
Hanene GABTENI
University of Haute Alsace
IUT - 34 rue du Grillenbreit 68008 Colmar - France
Email : gabteni.h...@gmail.com or hanene.gabteni@uha.fr
web : http://grtc.uha.fr/MembresGRTC.html
tel: 07 86 33 93 39

ahmed elawamry

unread,
Jul 4, 2012, 11:09:01 AM7/4/12
to ns-3-...@googlegroups.com
Dear all,

Please i want to assign asymmetry to the Wifi channel. Are there anyone can help me on doing this?

Best Regards,
Ahmed Elawamry

OKONOR OBINNA

unread,
Jul 4, 2012, 11:39:36 AM7/4/12
to ns-3-...@googlegroups.com
Hi
In my own knowledge, this SIGSEGV means that there is an assignment that is wrong. i.e either that you created servers that are not connected properly to clients or that a particular node value was not properly assigned.  For this (./waf --run <program> --command-template="gdb --args %s <args>"), retype in your console changing <program> with your file name. You can then use gdb. I hope this will help you started.

--

Giuseppe Ferrante

unread,
Jul 12, 2012, 11:06:32 AM7/12/12
to ns-3-...@googlegroups.com
guys i can't solve my problem....can someone suggest me ....how set my debugger to understand where's the problem...?


To unsubscribe from this group, send email to ns-3-users+unsubscribe@googlegroups.com.

Sara

unread,
Jul 12, 2012, 4:56:39 PM7/12/12
to ns-3-...@googlegroups.com
Hello,
I got this error message before and it means that there is a logical error like you have a 10 nodes and tray to send to node number 11 it will build the program but it gives a logical error, I think you can try to run a small pieces of the code if it is possible to find where the error is 
I hope this can give you better ides where to look

Mitch Watrous

unread,
Jul 12, 2012, 5:37:31 PM7/12/12
to ns-3-...@googlegroups.com
Se this wiki that talks about finding segmentation faults in ns-3 using Insight:

    http://www.nsnam.org/wiki/index.php/HOWTO_understand_and_find_cause_of_terminated_with_signal_errors

Mitch

crazy_bird

unread,
Jul 13, 2012, 8:07:37 AM7/13/12
to ns-3-...@googlegroups.com
aurora  is right. I had the same error several days ago because of "null pointer". So just debug in your code and take more attention to the pointers. You shall find out what's going wrong.

在 2012年7月4日星期三UTC+8下午7时29分11秒,Giuseppe Ferrante写道:
Reply all
Reply to author
Forward
0 new messages