View previous topic :: View next topic |
Author |
Message |
Asparius
Joined: 18 Sep 2007 Posts: 52
|
Posted: Tue Jun 17, 2014 18:34 Post subject: Segfault at module load |
|
|
Hello
After a long time, I finally moved to Linux server. I have installed Debian 7.5, 32bit , compiled NWNX from git, copied compiled components to server directory - then tried to load module (contest of champions, switched name to 'Contest').
The result was :
Code: |
Loading module "Contest".../nwnstartup.sh: line 21: 22402 Segmentation fault ./nwserver -publicserver 1 -servername Test -dmpassword bahblahsth -oneparty 0 -pvp 0 -difficulty 2 -module Contest -elc 0 -reloadwhenempty 0 -maxclients 64 -servervault 1 -maxlevel 40 -gametype 0 -autosaveinterval 0 "$@"
|
Can anyone tell me what can I do with this problem?
(it happens with other modules as well). |
|
Back to top |
|
|
Baaleos
Joined: 02 Sep 2007 Posts: 830
|
Posted: Wed Jun 18, 2014 10:09 Post subject: |
|
|
You will need to tell us the names of the nwnx plugins being used.
Also - SegFaults from experience should tell you the location they triggered from
Quote: |
Program terminated with signal 11, Segmentation fault.
#0 0x080d9352 in CNWSArea::ExploreArea(CNWSCreature *, int, int, int) ()
(gdb) Program terminated with signal 11, Segmentation fault.
|
Can you let us know if you are getting any output like above?
Are you seeing any core files being dumped?
Quote: |
Core Files
You are also able to retrace a core file if you have one produced. (I believe these are disabled by default)
Load the core file into the debugger
gdb -c <corefile> 2>&1 | tee gdb-<program>.txt
Retrieve a backtrace of the crash:
(gdb) backtrace full
(gdb) info registers
(gdb) x/16i $pc
(gdb) thread apply all backtrace
(gdb) quit
Attach the complete output from GDB, contained in gdb-<program>.txt, in your bug report. You will find the file in your home directory /home/<username>/.
|
The above steps detail the way to get the stack trace from core files in ubuntu. |
|
Back to top |
|
|
Asparius
Joined: 18 Sep 2007 Posts: 52
|
Posted: Wed Jun 18, 2014 15:48 Post subject: |
|
|
Didnt change anything, now it is working without problems... strange
I will test different configurations and try to check if I can re-create the error.
Answering the questions asked - server was starting fine without NWNX, however placing even nwnx2.so file in the server directory resulted in error listed above. |
|
Back to top |
|
|
|