NS2 error 139
i'm trying to add a new protocol with the help of http://elmurod.net/?p=157. then i did make, but i get the following error
g++ -Wl,-export-dynamic -o common/ptypes2tcl common/ptypes2tcl.o ./common/ptypes2tcl > gen/ptypes.cc /bin/sh: line 1: 19172 Segmentation fault ./common/ptypes2tcl > gen/ptypes.cc make: *** [gen/ptypes.cc] Error 139 can u say me how to rectify this. |
You're running a makefile that runs a script that's building programs to generate more programs...
... and somewhere in all of this, the executable "./common/ptypes2tcl" is dumping core. You need to debug ptypes2tcl to find the problem. Or ask the author, or somebody in a relevant mail group or IRC channel. |
thank u sir, i've corrected the errors but i'm getting errors while i run the trace file, the errors are like the changes i've done in files have not updated.
|
Hi sir
My name's is nawel kortas , i'm from tunisia i have those erros could you please help me common/ptypes2tcl.cc:71: warning: deprecated conversion from string constant to ‘char*’ g++ -o common/ptypes2tcl common/ptypes2tcl.o ./common/ptypes2tcl > gen/ptypes.cc /bin/sh: line 1: 29973 Erreur de segmentation ./common/ptypes2tcl > gen/ptypes.cc make: *** [gen/ptypes.cc] Erreur 139 thank you very much |
# 4 .
Quote:
Please read http://www.linuxquestions.org/questi...-4175451154/#6 > Post #6 : That's the answer you got a month ago. And there is an unanswered question in that post #6 : "Where did you get the information that the above will work ?" I.e. you are trying to mix two patches, ns-229-nist-mob + pmip6-for-ns-229. ? The two patches may conflict ? - |
Thank you sir for your replay
I still have the error ./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o common/ptypes2tcl.o common/ptypes2tcl.cc g++-4.1 -o common/ptypes2tcl common/ptypes2tcl.o ./common/ptypes2tcl > gen/ptypes.cc /bin/sh: line 1: 26362 Erreur de segmentation ./common/ptypes2tcl > gen/ptypes.cc make: *** [gen/ptypes.cc] Erreur 139 Ns make failed! Do have another solution thank you |
# 6 .
Well, then please tell what you are doing. The error tells very little when all the beginning is mising. Things to specify when you ask an ns2 question : OS name, version, architecture. Like Ubuntu 10.04 - 32bits(i686). Ns2 version. 'ns-allinone-2.29.3.tar.gz' ? ( If ns-2.29 : version 3 is a must.) And if any changes were made to ns-2.xx : Please specify patch name(s). - |
i Use ubuntu 10.04 (32 bit) , I want to add wimax module to ns-allinone-2.29 from this link http://www.lrc.ic.unicamp.br/wimax_ns2/ (this is an old version but i want it to make comparison with my work )
i install my ns-allinone-2.29 correctly then i add the mac files , i change the makefile.in , i copy the modification in the packet.h and tcl/lib file then i try to make so i get the last errors |
# 8 .
You are right. "WiMAX_module-1.02.zip" does not work in ns-2.29. Is for ns-2.28 : 1) tar xvf ns-allinone-2.28.tar.gz 2) patch -p0 < ns228-gcc40.patch 3) patch -p0 < ns-2.28-gcc410.patch <Enter> <Enter> <Enter> 4) cd ns-allinone-2.28/ 5) tar xvf wimax102-ns228-patch.tar.bz2 6) export CC=gcc41 CXX=g++41 && ./install 'wimax102-ns228-patch.tar.bz2' is the repacked WiMAX_module-1.02.zip + Makefile.in. Download link https://docs.google.com/file/d/0B7S2...it?usp=sharing Note 1: You can have as many versions of ns-allinone as you want, installed at the same time. But do not add any path text to .bashrc. Note 2: I don't remember any wimax examples.tcl that actually work. See http://www.linuxquestions.org/questions/tags/wimax/ - |
Thank you very much , it's very sweet from you :)
|
I need you help again sir
when i configure then make the nam-1.11 folder i get those errors , do you have any idea about this /usr/bin/ld: nam: hidden symbol `__stack_chk_fail_local' in /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status make: *** [nam] Erreur 1 |
# 11 .
Nam is a separate application. Any nam can be used. Suggest nam-1.14.i586.tar.gz https://docs.google.com/uc?id=0B7S25...=CLPiyxo&hl=en cd nam-1.14.i586/ && sudo cp nam /usr/local/bin/ ? By the way : Why run './configure && make' in nam-1.11/ ? Is handled by ./install. And : There is no such thing as ./configure in any ns-2.28 application. The command is $ export CC=gcc41 CXX=g++41 && ./configure . - |
Getting Out of segmentation Fault
Quote:
Could you please help to solve the segmentation fault problem? root@chakraborty-desktop:/home/chakraborty/ns/ns-allinone-2.33/ns-2.33# gdb ./common/ptypes2tcl ..... ....... Reading symbols from /home/chakraborty/ns/ns-allinone-2.33/ns-2.33/common/ptypes2tcl...(no debugging symbols found)...done. (gdb) run Starting program: /home/chakraborty/ns/ns-allinone-2.33/ns-2.33/common/ptypes2tcl static const char code[] = "\n\ global ptype pvals\n\ set ptype(error) -1\n\ set pvals(-1) error\n\ ........ ........... set ptype(belllabstrace) 60\n\ set pvals(60) BellLabsTrace\n\ Program received signal SIGSEGV, Segmentation fault. 0x080489b5 in lcase(char const*) () (gdb) bt #0 0x080489b5 in lcase(char const*) () #1 0x08048a6e in main () I am patching GPSR to NS-2.33 in Ubuntu-12.04 with thanks. |
Post #13, @Chakraborty.
What is it you are trying to do ? ** Using "ptypes2tcl" : $ cd ns-allinone-2.33/ns-2.33/common/ && ./ptypes2tcl Quote:
And : There are generally no debugging symbols in any ns2 executable. Meaning you can't use gdb to debug those. Quote:
As you can see from post #5, you can get segmentation fault, when you are using a wrong compiler. - |
All times are GMT -5. The time now is 08:36 AM. |