Error in implementation

1 view
Skip to first unread message

Nitish Khanna

unread,
Sep 1, 2010, 11:06:13 PM9/1/10
to omn...@googlegroups.com
Hi,

I had created a simple routing protocol with the help of the Mixim package.
I had imported the Base Network Layer and edited it perform routing which worked.

However when i copy pasted the code into a new file the code crashed the moment the first packet is sent.

The exact same thing works when i import the Base Network Layer and manually type it out but crashed when I copy past it directly.

The error message in the console is:

Simulation terminated with exit code: 139
Command line: /home/eads/Nitish/omnetpp-4.1/Mac1/Mac1 -r 0 -n /home/eads/Nitish/omnetpp-4.1/Mac1:/home/eads/Nitish/omnetpp-4.1/MiXiM/base:/home/eads/Nitish/omnetpp-4.1/MiXiM/examples:/home/eads/Nitish/omnetpp-4.1/MiXiM/modules -l /home/eads/Nitish/omnetpp-4.1/MiXiM/tests/testUtils/miximtestUtils -l /home/eads/Nitish/omnetpp-4.1/MiXiM/base/miximbase -l /home/eads/Nitish/omnetpp-4.1/MiXiM/tests/power/utils/powerTestUtils -l /home/eads/Nitish/omnetpp-4.1/MiXiM/modules/miximmodules /home/eads/Nitish/omnetpp-4.1/Mac1/omnetpp.ini

Working directory: /home/eads/Nitish/omnetpp-4.1/Mac1

LD_LIBRARY_PATH=/home/eads/Nitish/omnetpp-4.1/lib::/home/eads/Nitish/omnetpp-4.1/MiXiM/tests/testUtils:/home/eads/Nitish/omnetpp-4.1/MiXiM/base:/home/eads/Nitish/omnetpp-4.1/MiXiM/tests/power/utils:/home/eads/Nitish/omnetpp-4.1/MiXiM/modules:/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons
PATH=/home/eads/Nitish/omnetpp-4.1/bin::/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/eads/Nitish/omnetpp-4.1/bin
OMNETPP_IMAGE_PATH=/home/eads/Nitish/omnetpp-4.1/images

I would be grateful is someone could help me out...

Thank you,

Regards,
Nitish.

Karl Wessel

unread,
Sep 7, 2010, 5:35:43 AM9/7/10
to omn...@googlegroups.com
Hi,

that problem is hard to solve at it is now over a mailing list. Best way
to tackle it is by running your simulation with a debugger like "gdb" or
the build in version of the omnet IDE. Thats always the best way to
start when something like "Simulation terminated with exit code: xxx"
occurs.
If you need help on how to use a debugger there are a lot of tutorials
(on "gdb" and the debugging view of eclipse which omnets IDE is based
on) and its _really_ worth the effort. They can spare you a lot of time
solving problems occurring at runtime.
A debugger also will probably give you a more helpful error message than
"Simulation terminated with exit code: 139". You can post that error
message to the list which makes it easier for us to help you (if using
the debugger didn't already helped you enough to solve the problem
yourself).

Debuggers are extremely useful tools! :)

Greetings,
Karl

> --
> You received this message because you are subscribed to the Google
> Groups "omnetpp" group.
> To post to this group, send email to omn...@googlegroups.com.
> To unsubscribe from this group, send email to
> omnetpp+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/omnetpp?hl=en.

Reply all
Reply to author
Forward
0 new messages