LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   i have a new problem with ns2 (https://www.linuxquestions.org/questions/linux-newbie-8/i-have-a-new-problem-with-ns2-947501/)

edison_0927 05-29-2012 11:11 PM

i have a new problem with ns2
 
i got the error below when i using the ns2 to scenario my protocol


Starting program: /usr/local/bin/ns sim.tcl
num_nodes is set 25
INITIALIZE THE LIST xListHead
Loading scenario file...

Program received signal SIGSEGV, Segmentation fault.
0x0829c00b in MobileNode::update_position() ()



who can help to fix it ,thank you !!!!!!!

jhwilliams 05-30-2012 01:56 AM

Looks like the NS guys f*d up; segfaults aren't supposed to happen in good releases. You should report it as a bug.

But, to answer your question, try one of these:

Code:

strace /usr/local/bin/ns sim.tcl
Code:

gdb --args /usr/local/bin/ns sim.tcl
# type run, then bt

Code:

valgrind /usr/local/bin/ns sim.tcl
Then use your Googling skills to figure out what's wrong, based on the information those things return.

Also, double check your input file. You might be passing a bad value to update_position().

edison_0927 05-30-2012 08:07 AM

i have fixed the problem already ..
thank you very much

unSpawn 06-01-2012 12:14 PM

Quote:

Originally Posted by edison_0927 (Post 4691163)
i have fixed the problem already ..

Then list your fix for others please.


All times are GMT -5. The time now is 06:18 PM.