logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Segfault at module load

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support
View previous topic :: View next topic  
Author Message
Asparius



Joined: 18 Sep 2007
Posts: 52

PostPosted: Tue Jun 17, 2014 18:34    Post subject: Segfault at module load Reply with quote

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
View user's profile Send private message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Wed Jun 18, 2014 10:09    Post subject: Reply with quote

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
View user's profile Send private message
Asparius



Joined: 18 Sep 2007
Posts: 52

PostPosted: Wed Jun 18, 2014 15:48    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group