Hi everybody, I am working on ns2.33 using cygwin. When compiling the attached code, I get the following message:
$ ./ns Evaltran.tcl num_nodes is set 1 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Base station is created! wireles node is created! 39.312258 Simulation starts!! Segmentation fault (core dumped) An ns.exe text file appears in my compiling folder with the following content Exception: STATUS_ACCESS_VIOLATION at eip=18F71E50 eax=00000000 ebx=011F762C ecx=011EBDE4 edx=011F6808 esi=00229B00 edi=00229B50 ebp=002294B8 esp=002293E0 program=C:\cygwin\home\KiKoLoCo\ns-allinone-2.33\ns-2.33\ns.exe, pid 8112, thread main cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023 Stack trace: Frame Function Args 002294B8 18F71E50 (011E0998, 00000602, 00000000, 00000000) 002294D8 19226F3E (011E0998, 00000602, 00000000, 1913AFAB) 002294F8 18F8685D (011E1E08, 00000602, 00229518, 18F88603) 00229518 18F86ED0 (011E1E08, 011E1E08, 00229968, 18F86668) 00229528 18F8863A (011E1E08, 19338CEB, 00F72488, FFFFFFFF) 00229968 18F86668 (011E1E08, 00000002, 00229B0C, 00000003) 00229988 1913B9C6 (011E1E08, 00F72370, 00000005, 00229B00) 00229B38 1913F0F2 (011EB1D0, 00F72370, 00000003, 00229B50) 00229BB8 19143F88 (011EB2F0, 00F72370, 00000003, 00F74690) 00229C48 19145650 (00F72370, 00000003, 00F74690, 00000000) 00229EF8 191671D3 (00F72370, 011F29A8, 00000010, 1915C357) 00229F28 1916AC4C (00F72370, 011F29A8, 00000005, 00000000) 0022A1D8 19167463 (00F72370, 0116D2A0, 0022A208, 1916B2FC) 0022A208 1916AC4C (00F72370, 00F7B320, 00F7CF40, 00000001) 0022A5D8 19160E78 (00F861F8, 00F72370, 00000005, 0022A600) 0022A668 191610F5 (00F861F8, 00F72370, 00000005, 0022A720) End of stack trace (more stack frames may be present) I tried to solve this problem by following the instructions in the link listed below and provided by Mr Rehmani. http://article.gmane.org/gmane.network.simulator.isi/2766/match=segmentation +fault but I got the following lines $ gdb -c core GNU gdb 6.8.0.20080328-cvs (cygwin-special) Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/g This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show cop and "show warranty" for details. This GDB was configured as "i686-pc-cygwin". /home/KiKoLoCo/ns-allinone-2.33/ns-2.33/core: No such file or directo (gdb) gdb -c core Undefined command: "gdb". Try "help". (gdb) file ns Reading symbols from /home/KiKoLoCo/ns-allinone-2.33/ns-2.33/ns.exe.. ing symbols found)...done. (gdb) bt No stack. (gdb) select 0 No registers. (gdb) Note that at compiling other .tcl files everything works out. I attached the compiled file, you may probably see the problem. Thank you very much in advance. Dan
