Author Topic: Segfault under Linux  (Read 497 times)

Legacy_JKtheSlacker

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Segfault under Linux
« on: September 02, 2012, 06:37:52 pm »


                Hi,

I've been trying for a year now to get NWN to work on my Slackware 13.37/14.0 install.  I have followed the install guide here, and it works fine (including movies) up to the point that I try to either Create New Character or Select Premade Character. When I click either of those two options, the game exits with a segmentation fault.

My nwn file:


#!/bin/sh
# This script runs Neverwinter Nights from the current directory

# I have a 64-bit machine - this sets the environment to 32-bit
. /etc/profile.d/32dev.sh
export SDL_MOUSE_RELATIVE=0
export SDL_VIDEO_X11_DGAMOUSE=0

# If you do not wish to use the SDL library included in the package, remove
# ./lib from LD_LIBRARY_PATH
export LD_LIBRARY_PATH=./miles:$LD_LIBRARY_PATH
export MALLOC_CHECK_=0

# This was to attempt to discover what it was doing when it segfaulted
#strace -o nwn.log ./nwmain $@ 
./nwmain $@

The output of ldd on the file (stuck into the preloader script):

linux-gate.so.1 (0xffffe000)       
libm.so.6 => /lib/libm.so.6 (0xf7754000)       
libpthread.so.0 => /lib/libpthread.so.0 (0xf773a000)       
libGL.so.1 => /usr/lib/libGL.so.1 (0xf765e000)       
libGLU.so.1 => /usr/lib/libGLU.so.1 (0xf75e6000)       
libmss.so.6 => ./miles/libmss.so.6 (0xf7571000)       
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0xf74c5000)       
libc.so.6 => /lib/libc.so.6 (0xf7344000)       
 /lib/ld-linux.so.2 (0xf7781000)       
libnvidia-tls.so.304.43 => /usr/lib/tls/libnvidia-tls.so.304.43 (0xf7340000)       
libnvidia-glcore.so.304.43 => /usr/lib/libnvidia-glcore.so.304.43 (0xf563b000)       
libX11.so.6 => /usr/lib/libX11.so.6 (0xf5504000)       
libXext.so.6 => /usr/lib/libXext.so.6 (0xf54f3000)       
libdl.so.2 => /lib/libdl.so.2 (0xf54ee000)       
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xf5408000)       
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xf53ee000)       
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xf53e5000)       
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xf53dc000)       
libxcb.so.1 => /usr/lib/libxcb.so.1 (0xf53bb000)       
libXau.so.6 => /usr/lib/libXau.so.6 (0xf53b8000)       
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xf53b2000)       
libvga.so.1 => /usr/lib/libvga.so.1 (0xf5333000)

nwn.log (output of strace) can be found at http://www.slaxer.co.../nwn.log.tar.xz (419k, unzips to a 27M text file).  I've looked it over, but I don't see anything that screams "This is the problem!"

I should probably also note that I'm running an Nvidia card with the latest 304.43 drivers and an intel dual core processor (Core2 Extreme X9000).  I have another machine I haven't tried yet running Slackware 14 32-bit, but I'm thinking about trying that tomorrow evening to see if I'm perhaps missing something.

Any thoughts/questions/quick fixes?

Edit: Fixed the mangled formatting.
               
               

               


                     Modifié par JKtheSlacker, 02 septembre 2012 - 05:53 .
                     
                  


            

Legacy_Knight_Shield

  • Hero Member
  • *****
  • Posts: 812
  • Karma: +0/-0
Segfault under Linux
« Reply #1 on: September 07, 2012, 02:26:37 am »


               Do you have 32bit libs installed on your 64bit machine?I know in ubuntu you have apt-get install ai32-libs
               
               

               
            

Legacy_JKtheSlacker

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Segfault under Linux
« Reply #2 on: September 07, 2012, 02:30:15 am »


               I do indeed.  If I didn't, then I doubt the client would open at all.