Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Segfault in libfltk on 64-bit archlinux
jaeger Offline
Junior Member

Posts: 10
Threads: 2
Joined: Mar 2008
Reputation: 0
#1
Solved: 8 Years, 8 Months, 4 Weeks ago Segfault in libfltk on 64-bit archlinux

Hello!

All my Penumbra games segfault. This is the output from gdb:

Program received signal SIGSEGV, Segmentation fault.
0xf7f8631e in Fl_Preferences::Node::set(char const*, char const*) () from ./lib/libfltk.so.1.1
(gdb) bt
#0  0xf7f8631e in Fl_Preferences::Node::set(char const*, char const*) () from ./lib/libfltk.so.1.1
#1  0xf7f864ec in Fl_Preferences::Node::set(char const*) () from ./lib/libfltk.so.1.1
#2  0xf7f86d4f in Fl_Preferences::RootNode::read() () from ./lib/libfltk.so.1.1
#3  0xf7f870fb in Fl_Preferences::RootNode::RootNode(Fl_Preferences*, Fl_Preferences::Root, char const*, char const*) () from ./lib/libfltk.so.1.1
#4  0xf7f8723f in Fl_Preferences::Fl_Preferences(Fl_Preferences::Root, char const*, char const*) () from ./lib/libfltk.so.1.1
#5  0xf7f6a87d in ?? () from ./lib/libfltk.so.1.1
#6  0xf7fb9cfa in ?? () from ./lib/libfltk.so.1.1
#7  0xf7ffcfc4 in ?? () from /lib/ld-linux.so.2
#8  0x0000002e in ?? ()
#9  0xffffd178 in ?? ()
#10 0xf7f533dd in _init () from ./lib/libfltk.so.1.1
Backtrace stopped: frame did not save the PC

ldd32 revealse the following about the library deps for penumbra.bin:
    linux-gate.so.1 =>  (0xf77be000)
    libvorbisfile.so.3 => ./lib/libvorbisfile.so.3 (0xf77b6000)
    libfltk.so.1.1 => ./lib/libfltk.so.1.1 (0xf7716000)
    libSDL-1.2.so.0 => ./lib/libSDL-1.2.so.0 (0xf7690000)
    libSDL_ttf-2.0.so.0 => ./lib/libSDL_ttf-2.0.so.0 (0xf7689000)
    libSDL_image-1.2.so.0 => ./lib/libSDL_image-1.2.so.0 (0xf766d000)
    libGL.so.1 => /opt/lib32/usr/lib/libGL.so.1 (0xf7587000)
    libGLU.so.1 => /opt/lib32/usr/lib/libGLU.so.1 (0xf7519000)
    libCg.so => ./lib/libCg.so (0xf7212000)
    libCgGL.so => ./lib/libCgGL.so (0xf71ca000)
    libopenal.so.0 => ./lib/libopenal.so.0 (0xf7186000)
    libalut.so.0 => ./lib/libalut.so.0 (0xf717f000)
    libstdc++.so.6 => ./lib/libstdc++.so.6 (0xf70a3000)
    libm.so.6 => /opt/lib32/lib/libm.so.6 (0xf707d000)
    libgcc_s.so.1 => /opt/lib32/usr/lib/libgcc_s.so.1 (0xf705e000)
    libc.so.6 => /opt/lib32/lib/libc.so.6 (0xf6f18000)
    libpthread.so.0 => /opt/lib32/lib/libpthread.so.0 (0xf6eff000)
    libvorbis.so.0 => ./lib/libvorbis.so.0 (0xf6ed7000)
    libXft.so.2 => /opt/lib32/usr/lib/libXft.so.2 (0xf6ec4000)
    libX11.so.6 => /opt/lib32/usr/lib/libX11.so.6 (0xf6da9000)
    libfreetype.so.6 => /opt/lib32/usr/lib/libfreetype.so.6 (0xf6d25000)
    libXrender.so.1 => /opt/lib32/usr/lib/libXrender.so.1 (0xf6d1c000)
    libfontconfig.so.1 => /opt/lib32/usr/lib/libfontconfig.so.1 (0xf6cee000)
    libXext.so.6 => /opt/lib32/usr/lib/libXext.so.6 (0xf6ce0000)
    libdl.so.2 => /opt/lib32/lib/libdl.so.2 (0xf6cdb000)
    libz.so.1 => /opt/lib32/usr/lib/libz.so.1 (0xf6cc7000)
    libGLcore.so.1 => /opt/lib32/usr/lib/libGLcore.so.1 (0xf5c2c000)
    libnvidia-tls.so.1 => /usr/lib/tls/libnvidia-tls.so.1 (0xf5c2a000)
    /lib/ld-linux.so.2 (0xf77bf000)
    libogg.so.0 => ./lib/libogg.so.0 (0xf5c24000)
    libxcb.so.1 => /opt/lib32/usr/lib/libxcb.so.1 (0xf5c0b000)
    libexpat.so.1 => /opt/lib32/usr/lib/libexpat.so.1 (0xf5be5000)
    libXau.so.6 => /opt/lib32/usr/lib/libXau.so.6 (0xf5be2000)
    libXdmcp.so.6 => /opt/lib32/usr/lib/libXdmcp.so.6 (0xf5bdd000)

The same thing also happens with blackplague.bin.

Penumbra Overture version is: 1.0.679
Black plague version is: 1.0.2567
My system is x86_64 Archlinux.

Hollar if ya need more info, any help appreciated. Thanks!
02-19-2010, 08:26 PM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#2
Solved: 8 Years, 8 Months, 4 Weeks ago RE: Segfault in libfltk on 64-bit archlinux

Have you tried using the system 32bit fltk? (just rename the one in the lib directory).

and did you do a thread apply all bt in GDB?

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
02-22-2010, 08:26 PM
Website Find
jaeger Offline
Junior Member

Posts: 10
Threads: 2
Joined: Mar 2008
Reputation: 0
#3
Solved: 8 Years, 8 Months, 4 Weeks ago RE: Segfault in libfltk on 64-bit archlinux

As the topic suggests, I'm on a 64-bit system, there's no system-wide 32-bit version of fltk on this box and I'm guessing that the one that came with the game (in lib, the one in use) shouldn't segfault.

There's only one thread running at that point it seems, also gdb already pointed to the function that segfaults.
02-24-2010, 10:01 PM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#4
Solved: 8 Years, 8 Months, 4 Weeks ago RE: Segfault in libfltk on 64-bit archlinux

Can you please apply this update http://support.frictionalgames.com/entry/65/ and retry ?

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
02-24-2010, 10:15 PM
Website Find
jaeger Offline
Junior Member

Posts: 10
Threads: 2
Joined: Mar 2008
Reputation: 0
#5
Solved: 8 Years, 8 Months, 4 Weeks ago RE: Segfault in libfltk on 64-bit archlinux

Problem remains after the update.
02-25-2010, 09:12 PM
Find




Users browsing this thread: 1 Guest(s)