View previous topic :: View next topic |
Author |
Message |
kaskoscuro
Joined: 10 Jan 2012 Posts: 9
|
Posted: Tue Jan 10, 2012 14:02 Post subject: Problems starting module in ubuntu 64 bits |
|
|
Hello, recently I've installed NWNX in linux (ubuntu) in order to test it with a module previously tested in NWNX/Windows & MySQL. When I start the server, then crashes with Segmentation Fault:
NWNX2lib: Init
NWNX2lib: org SetString() at 0x81f41b4, new SetString() at 0xf77b2f00
NWNX2lib: org GetObj() at 0x81f40bc, new GetObj() at 0xf77b2f28
* Parsing configuration...
NWN Extender v2.7-beta4
(c) 2004 by the APS/NWNX Linux Conversion Group
(c) 2007-2008 by virusman
Based on the Win32 version (c) 2003 by Ingmar Stieger (Papillon)
and Jeroen Broekhuizen
visit us at http://www.avlis.org
* Loading modules...
FIXES plugin Registerred.
ODBC plugin Registerred.
* NWNX2 activated.
Neverwinter Nights Server
Build:8109
Copyright BioWare Corp 1998-2004
Server: Loading...
Server: Running...
Server: Loading module "ES) Costa de la espada"................................................................................................................................Segmentation fault
Running it with gdb:
(gdb) set args -module "ES) Costa de la espada"
(gdb) run
Starting program: /home/neverwinter/nwserver -module "ES) Costa de la espada"
aviso: the debug information found in "/lib/ld-2.12.1.so" does not match "/lib/ld-linux.so.2" (CRC mismatch).
[DepuraciĆ³n de hilo usando libthread_db enabled]
[Nuevo Thread 0xf7e32b70 (LWP 1436)]
Neverwinter Nights Server
Build:8109
Copyright BioWare Corp 1998-2004
Server: Loading...
[Nuevo Thread 0xf7211b70 (LWP 1437)]
Server: Running...
Server: Loading module "ES) Costa de la espada"................................................................................................................................
Program received signal SIGSEGV, Segmentation fault.
0x0805f356 in CExoArrayList<unsigned long>::Contains(unsigned long) ()
The platform data is:
$ uname -a
Linux XXXXXX 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:44 UTC 2011 x86_64 GNU/Linux
And the libraries used:
$ ldd nwserver
linux-gate.so.1 => (0xf7733000)
libm.so.6 => /lib32/libm.so.6 (0xf76fd000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf76e4000)
libc.so.6 => /lib32/libc.so.6 (0xf7588000)
/lib/ld-linux.so.2 (0xf7734000)
Besides, I don't understand the message while gdb running:
"the debug information found in "/lib/ld-2.12.1.so" does not match "/lib/ld-linux.so.2" (CRC mismatch)."
Installed libraries are:
$ ls -ltr
drwxr-xr-x 2 root root 4096 2010-10-07 11:15 games
lrwxrwxrwx 1 root root 3 2011-01-27 17:24 lib64 -> lib
drwxr-xr-x 10 root root 4096 2011-01-27 17:25 local
drwxrwsr-x 4 root src 4096 2011-01-27 17:29 src
drwxr-xr-x 4 root root 4096 2011-01-27 17:40 include
drwxr-xr-x 40 root root 36864 2011-01-28 23:55 lib32
drwxr-xr-x 2 root root 4096 2011-02-11 02:26 sbin
drwxr-xr-x 59 root root 12288 2011-03-16 22:27 lib
drwxr-xr-x 107 root root 4096 2012-01-08 23:30 share
drwxr-xr-x 2 root root 20480 2012-01-08 23:30 bin
Thanks in advance for your help !!!!
P.D. Tell me if you need another data over the installation. Previously I've tested the same module in Linux 32 bits (too ubuntu) without problems. |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Tue Jan 10, 2012 22:22 Post subject: |
|
|
I recommend setting up a 32-bit chroot environment and running nwserver from there. _________________ In Soviet Russia, NWN plays you! |
|
Back to top |
|
|
kaskoscuro
Joined: 10 Jan 2012 Posts: 9
|
Posted: Tue Jan 10, 2012 22:46 Post subject: |
|
|
Thanks virusman.
How could I set up a 32-bit chroot environment? Where could I get a valid tutorial?
I've tried this but I don't get running it. Executing as root:
# schroot -c hardy_i386
W: Failed to change to directory '/bin': No such file or directory
W: Failed to change to directory '/root': No such file or directory
W: Falling back to directory '/'
W: Shell '/bin/bash' not available: /bin/bash: Failed to stat file: No such file or directory
W: Falling back to shell '/bin/sh'
E: Failed to execute "/bin/sh": No such file or directory |
|
Back to top |
|
|
kaskoscuro
Joined: 10 Jan 2012 Posts: 9
|
Posted: Tue Jan 10, 2012 23:09 Post subject: |
|
|
Following this post http://www.nwnx.org/phpBB2/viewtopic.php?t=1781&highlight=schroot.
Now when I try to run it I get this:
$ schroot ./nwnstartup.sh
ERROR: ld.so: object './nwnx2.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object './nwnx2.so' from LD_PRELOAD cannot be preloaded: ignored.
/home/neverwinter
./nwserver: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
What am I doing bad?
Regards ! |
|
Back to top |
|
|
kaskoscuro
Joined: 10 Jan 2012 Posts: 9
|
Posted: Tue Jan 10, 2012 23:28 Post subject: |
|
|
Okey I have installed neccessary libraries. And now:
$ schroot ./nwnstartup.sh
NWNX2lib: Init
NWNX2lib: org SetString() at 0x81f41b4, new SetString() at 0xf7777f00
NWNX2lib: org GetObj() at 0x81f40bc, new GetObj() at 0xf7777f28
* Parsing configuration...
NWN Extender v2.7-beta4
(c) 2004 by the APS/NWNX Linux Conversion Group
(c) 2007-2008 by virusman
Based on the Win32 version (c) 2003 by Ingmar Stieger (Papillon)
and Jeroen Broekhuizen
visit us at http://www.avlis.org
* Loading modules...
FIXES plugin Registerred.
ERROR: ODBC: OnCreate() failed.
* NWNX2 activated.
Neverwinter Nights Server
Build:8109
Copyright BioWare Corp 1998-2004
Server: Loading...
Server: Running...
Server: Loading module "ES) Costa de la espada"................................................................................................................................Segmentation fault
Last edited by kaskoscuro on Tue Jan 10, 2012 23:47; edited 1 time in total |
|
Back to top |
|
|
kaskoscuro
Joined: 10 Jan 2012 Posts: 9
|
Posted: Tue Jan 10, 2012 23:43 Post subject: |
|
|
I've changed to 127.0.0.1 the server property in nwnx2.ini, solving previous issue. But the segmentation faults continues:
$ schroot ./nwnstartup.sh
NWNX2lib: Init
NWNX2lib: org SetString() at 0x81f41b4, new SetString() at 0xf7749f00
NWNX2lib: org GetObj() at 0x81f40bc, new GetObj() at 0xf7749f28
* Parsing configuration...
NWN Extender v2.7-beta4
(c) 2004 by the APS/NWNX Linux Conversion Group
(c) 2007-2008 by virusman
Based on the Win32 version (c) 2003 by Ingmar Stieger (Papillon)
and Jeroen Broekhuizen
visit us at http://www.avlis.org
* Loading modules...
FIXES plugin Registerred.
ODBC plugin Registerred.
* NWNX2 activated.
Neverwinter Nights Server
Build:8109
Copyright BioWare Corp 1998-2004
Server: Loading...
Server: Running...
Server: Loading module "ES) Costa de la espada"................................................................................................................................Segmentation fault (core dumped) |
|
Back to top |
|
|
Lokey
Joined: 02 Jan 2005 Posts: 158
|
Posted: Fri Jan 13, 2012 2:41 Post subject: |
|
|
ldd nwserver and nwnx binaries...oh you did that. Run gdb on the file generated (core), see what it's puking on.
Can't think of why ODBC couldn't talk to mysql server, but that might be something to look at. We eventually got things kinda working, but there were some annoyances to track down and we just went to 32bit OS. _________________ Neversummer PW NWNx powered mayhem |
|
Back to top |
|
|
kaskoscuro
Joined: 10 Jan 2012 Posts: 9
|
Posted: Fri Jan 13, 2012 10:16 Post subject: |
|
|
Yes, we have returned to 32 bits.
Thanks |
|
Back to top |
|
|
Space Pirate
Joined: 26 Jan 2013 Posts: 1 Location: United States
|
Posted: Sat Jan 26, 2013 19:15 Post subject: |
|
|
I have been getting the exact same segfault as you did, but have been running 32-bit Ubuntu 12.10. I am using the 2.5.3 and 2.7 beta 4 build. Was your issue solved?
edit: I have tried rebuilding using the 2.8 core and am still getting the same segfault as the previous build. This post details a similar experience on Ubuntu 12.04: http://www.nwnx.org/phpBB2/viewtopic.php?t=2009&postdays=0&postorder=asc&highlight=cc1+warnings+treated+errors&start=15
I'm curious if its the current version of Ubuntu and not the build which is causing the problems. If Debian (which is mentioned in the linked post) is the quickest fix then I'll switch OS's.
edit again: Installed Debian, retrieved needed packages, recompiled core 2.8... Segfault. Ran fixinstall for a lark, even though I had already run it before working with NWNX: Module loaded. Returned to Ubuntu, repeated the fixinstall, module loaded. Still having trouble though with a new segfault afer a few seconds go by so I'm trying to see if its related to the OnModuleHeartbeat script. |
|
Back to top |
|
|
|