Segfault in arch linux 64 bit

Technical support for the Linux and Mac platforms for Shadowgrounds and Shadowgrounds Survivor.
scrawl
Posts: 3
Joined: Mon May 16, 2011 2:35 pm

Segfault in arch linux 64 bit

Postby scrawl » Mon May 16, 2011 3:04 pm

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
0xf76d69c0 in ?? () from /opt/lib32/usr/lib/libstdc++.so.6
(gdb) bt
#0  0xf76d69c0 in ?? () from /opt/lib32/usr/lib/libstdc++.so.6
#1  0xf7665ddf in bool std::has_facet<std::ctype<char> >(std::locale const&) ()
   from /opt/lib32/usr/lib/libstdc++.so.6
#2  0xf7657d38 in std::basic_ios<char, std::char_traits<char> >::_M_cache_locale(std::locale const&) () from /opt/lib32/usr/lib/libstdc++.so.6
#3  0xf7657de7 in std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*) ()
   from /opt/lib32/usr/lib/libstdc++.so.6
#4  0xf7645cb0 in std::ios_base::Init::Init() ()
   from /opt/lib32/usr/lib/libstdc++.so.6
#5  0xf7d57b15 in ?? ()
   from /home/scrawl/survivor/lib/libboost_thread-mt.so.1.37.0
#6  0xf7d5ce1d in ?? ()
   from /home/scrawl/survivor/lib/libboost_thread-mt.so.1.37.0
#7  0xf7d575bc in _init ()
   from /home/scrawl/survivor/lib/libboost_thread-mt.so.1.37.0
#8  0xf7fee69c in call_init () from /lib/ld-linux.so.2
#9  0xf7fee7b1 in _dl_init_internal () from /lib/ld-linux.so.2
#10 0xf7fe084f in _dl_start_user () from /lib/ld-linux.so.2


Same happens with shadowgrounds and trine (only 32 bit, the 64 bit version works)

Any ideas?

Code: Select all

[email protected]:~$ uname -a
Linux scrawl-desktop 2.6.32-ARCH #1 SMP PREEMPT Tue Feb 23 19:43:46 CET 2010 x86_64 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux


GFX card: Geforce 7600GS with latest drivers

alt_tuomas
Posts: 57
Joined: Tue Apr 05, 2011 11:30 am

Re: Segfault in arch linux 64 bit

Postby alt_tuomas » Wed May 18, 2011 12:33 pm

For some reason the game seems to use libstdc++.so.6 from a system directory (/opt/lib32/usr/lib/) instead of the /lib directory under the game directory. However libboost_thread-mt.so.1.37.0 comes from the correct place. You should find out why libstdc++ is loaded from the wrong place, we don't have an idea unfortunately.
Tuomas Närväinen
Alternative Games

scrawl
Posts: 3
Joined: Mon May 16, 2011 2:35 pm

Re: Segfault in arch linux 64 bit

Postby scrawl » Thu May 19, 2011 9:40 pm

Actually it was loaded from the game folder. Then I thought maybe this libstdc++.so.6 in ./lib is incompatible or something, so I moved it to my home folder. So now its loading from system folder, but exactly the same problem.

alt_turo
Posts: 195
Joined: Mon Dec 13, 2010 11:06 am

Re: Segfault in arch linux 64 bit

Postby alt_turo » Fri May 20, 2011 11:19 am

The crash appears to be before main. There's some incompatible library in there somewhere. Remove all unnecessary libraries from lib32. You'll have to figure out what unnecessary means for yourself depending on what libraries your system has installed. libav* at least are necessary because those have to be very specific version. libPhysX* and libNx* are PhysX libraries and are also necessary. libGLEW needs to be at least 1.5.2.
Turo Lamminen
Alternative Games

scrawl
Posts: 3
Joined: Mon May 16, 2011 2:35 pm

Re: Segfault in arch linux 64 bit

Postby scrawl » Sun May 29, 2011 2:14 pm

This is what I have left now:

Code: Select all

libavcodec.so.51              libNxCharacter.so    libSDL_sound-1.0.so.1
libavformat.so.52             libNxCharacter.so.1  libsmpeg-0.4.so.0
libavutil.so.49               libNxCooking.so
libboost_thread-mt.so.1.35.0  libNxCooking.so.1    libstorm3dv2.so
libboost_thread-mt.so.1.37.0  libPhysXCore.so      libtiff.so.4
libfmod-3.75.so               libPhysXCore.so.1    libvga.so.1
libfusion-1.0.so.0            libPhysXLoader.so.1
libGLEW.so.1.5                libpng12.so.0


Code: Select all

./survivor-bin
./survivor-bin: /usr/lib/libssl.so.0.9.8: no version information available (required by ./survivor-bin)
Segmentation fault

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
0xf76c49c0 in ?? () from /opt/lib32/usr/lib/libstdc++.so.6
(gdb) bt
#0  0xf76c49c0 in ?? () from /opt/lib32/usr/lib/libstdc++.so.6
#1  0xf7653ddf in bool std::has_facet<std::ctype<char> >(std::locale const&) ()
   from /opt/lib32/usr/lib/libstdc++.so.6
#2  0xf7645d38 in std::basic_ios<char, std::char_traits<char> >::_M_cache_locale(std::locale const&) () from /opt/lib32/usr/lib/libstdc++.so.6
#3  0xf7645de7 in std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*) ()
   from /opt/lib32/usr/lib/libstdc++.so.6
#4  0xf7633cb0 in std::ios_base::Init::Init() ()
   from /opt/lib32/usr/lib/libstdc++.so.6
#5  0xf7d51f56 in ?? ()
   from /home/scrawl/.survivor/lib/libboost_thread-mt.so.1.37.0
#6  0xf7d58ff5 in ?? ()
   from /home/scrawl/.survivor/lib/libboost_thread-mt.so.1.37.0
#7  0xf7d518ac in _init ()
   from /home/scrawl/.survivor/lib/libboost_thread-mt.so.1.37.0
#8  0xf7fee69c in call_init () from /lib/ld-linux.so.2
#9  0xf7fee7b1 in _dl_init_internal () from /lib/ld-linux.so.2
#10 0xf7fe084f in _dl_start_user () from /lib/ld-linux.so.2

Code: Select all

ldd ./survivor-bin
./survivor-bin: /home/scrawl/.survivor/lib/libssl.so.0.9.8: no version information available (required by ./survivor-bin)
   linux-gate.so.1 =>  (0xf774d000)
   libstorm3dv2.so => /home/scrawl/.survivor/lib/libstorm3dv2.so (0xf7651000)
   libavcodec.so.51 => /home/scrawl/.survivor/lib/libavcodec.so.51 (0xf753c000)
   libavformat.so.52 => /home/scrawl/.survivor/lib/libavformat.so.52 (0xf7524000)
   libavutil.so.49 => /home/scrawl/.survivor/lib/libavutil.so.49 (0xf7514000)
   libz.so.1 => /opt/lib32/usr/lib/libz.so.1 (0xf74ce000)
   libdl.so.2 => /opt/lib32/lib/libdl.so.2 (0xf74ca000)
   libboost_thread-mt.so.1.37.0 => /home/scrawl/.survivor/lib/libboost_thread-mt.so.1.37.0 (0xf74ba000)
   libSDL-1.2.so.0 => /usr/lib32/libSDL-1.2.so.0 (0xf742d000)
   libSDL_image-1.2.so.0 => /usr/lib32/libSDL_image-1.2.so.0 (0xf7410000)
   libSDL_ttf-2.0.so.0 => /usr/lib32/libSDL_ttf-2.0.so.0 (0xf740a000)
   libSDL_sound-1.0.so.1 => /home/scrawl/.survivor/lib/libSDL_sound-1.0.so.1 (0xf73c6000)
   libGLEW.so.1.5 => /home/scrawl/.survivor/lib/libGLEW.so.1.5 (0xf738e000)
   libGL.so.1 => /usr/lib/libGL.so.1 (0xf72cf000)
   libGLU.so.1 => /opt/lib32/usr/lib/libGLU.so.1 (0xf7213000)
   libfmod-3.75.so => /home/scrawl/.survivor/lib/libfmod-3.75.so (0xf7178000)
   libPhysXLoader.so.1 => /home/scrawl/.survivor/lib/libPhysXLoader.so.1 (0xf716d000)
   libgtk-1.2.so.0 => /usr/lib32/libgtk-1.2.so.0 (0xf7020000)
   libgdk-1.2.so.0 => /usr/lib32/libgdk-1.2.so.0 (0xf6fe7000)
   libXi.so.6 => /opt/lib32/usr/lib/libXi.so.6 (0xf6fd9000)
   libXext.so.6 => /opt/lib32/usr/lib/libXext.so.6 (0xf6fcb000)
   libX11.so.6 => /opt/lib32/usr/lib/libX11.so.6 (0xf6eb1000)
   libglib-1.2.so.0 => /opt/lib32/usr/lib/libglib-1.2.so.0 (0xf6e8b000)
   libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0xf6e3a000)
   libstdc++.so.6 => /opt/lib32/usr/lib/libstdc++.so.6 (0xf6d4b000)
   libm.so.6 => /opt/lib32/lib/libm.so.6 (0xf6d26000)
   libgcc_s.so.1 => /opt/lib32/usr/lib/libgcc_s.so.1 (0xf6d0a000)
   libc.so.6 => /opt/lib32/lib/libc.so.6 (0xf6bbf000)
   /lib/ld-linux.so.2 (0xf774e000)
   librt.so.1 => /opt/lib32/lib/librt.so.1 (0xf6bb6000)
   libpthread.so.0 => /opt/lib32/lib/libpthread.so.0 (0xf6b9b000)
   libfreetype.so.6 => /opt/lib32/usr/lib/libfreetype.so.6 (0xf6b16000)
   libsmpeg-0.4.so.0 => /home/scrawl/.survivor/lib/libsmpeg-0.4.so.0 (0xf6abc000)
   libmikmod.so.2 => /usr/lib32/libmikmod.so.2 (0xf6a72000)
   libvorbis.so.0 => /usr/lib32/libvorbis.so.0 (0xf6a4c000)
   libvorbisfile.so.3 => /usr/lib32/libvorbisfile.so.3 (0xf6a43000)
   libFLAC.so.8 => /usr/lib32/libFLAC.so.8 (0xf69f4000)
   libogg.so.0 => /opt/lib32/usr/lib/libogg.so.0 (0xf69ef000)
   libspeex.so.1 => /usr/lib32/libspeex.so.1 (0xf69da000)
   libXmu.so.6 => /opt/lib32/usr/lib/libXmu.so.6 (0xf69c5000)
   libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0xf5929000)
   libnvidia-tls.so.1 => /usr/lib/tls/libnvidia-tls.so.1 (0xf5927000)
   libgmodule-1.2.so.0 => /opt/lib32/usr/lib/libgmodule-1.2.so.0 (0xf5924000)
   libxcb.so.1 => /opt/lib32/usr/lib/libxcb.so.1 (0xf590c000)
   libcrypto.so.1.0.0 => /opt/lib32/usr/lib/libcrypto.so.1.0.0 (0xf5792000)
   libXt.so.6 => /opt/lib32/usr/lib/libXt.so.6 (0xf5740000)
   libSM.so.6 => /opt/lib32/usr/lib/libSM.so.6 (0xf5738000)
   libICE.so.6 => /opt/lib32/usr/lib/libICE.so.6 (0xf5721000)
   libXau.so.6 => /opt/lib32/usr/lib/libXau.so.6 (0xf571e000)
   libXdmcp.so.6 => /opt/lib32/usr/lib/libXdmcp.so.6 (0xf5719000)
   libuuid.so.1 => /opt/lib32/lib/libuuid.so.1 (0xf5714000)

alt_turo
Posts: 195
Joined: Mon Dec 13, 2010 11:06 am

Re: Segfault in arch linux 64 bit

Postby alt_turo » Mon May 30, 2011 11:14 am

scrawl wrote:

Code: Select all

ldd ./survivor-bin
   libstorm3dv2.so => /home/scrawl/.survivor/lib/libstorm3dv2.so (0xf7651000)

The bundle version does not use a separate libstorm3dv2.so. You have an old binary. Did you install on top of LGP version? Remove the old one and reinstall.
Turo Lamminen
Alternative Games


Return to “Technical support for Linux & Mac”

Who is online

Users browsing this forum: No registered users and 1 guest