dfhack
dfhack copied to clipboard
stonesense fails with __pthread_mutex_lock (mutex=0xd2d2d2d2) at pthread_mutex_lock.c:50 50 pthread_mutex_lock.c: No such file or directory.
Using #! 10 64bit BPO (debian squeeze+backports) with some programs install from unstable stonesense crashes at startup showing only a completely black window. A backtrace for the crash is below.
./dfhack -g
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /media/Linux_Data/Dwarf_Fortress/Test_Fortress/0.34.X/df_34_11_linux/df_linux/libs/Dwarf_Fortress...(no debugging symbols found)...done.
(gdb) run
Starting program: /media/Linux_Data/Dwarf_Fortress/Test_Fortress/0.34.X/df_34_11_linux/df_linux/libs/Dwarf_Fortress
ERROR: ld.so: object './hack/libdfhack.so' from LD_PRELOAD cannot be preloaded: ignored.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
(Dwarf_Fortress:4348): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libaurora.so: wrong ELF class: ELFCLASS64
[New Thread 0xf45adb70 (LWP 4367)]
[New Thread 0xf3dacb70 (LWP 4368)]
Loading bindings from data/init/interface.txt
New window size: 640x300
Font size: 8x12
Resizing grid to 80x25
Resizing font to 8x12
Resetting textures
[New Thread 0xf3075b70 (LWP 4369)]
[New Thread 0xf2874b70 (LWP 4370)]
DFHack is ready. Have a nice day!
Type in '?' or 'help' for general help, 'ls' to see all commands.
[DFHack]# [New Thread 0xf2073b70 (LWP 4371)]
stonesense
[New Thread 0xf1872b70 (LWP 4613)]
[New Thread 0xf1071b70 (LWP 4614)]
Stonesense launched
Using allegro version 5.0.5 r1
[DFHack]#
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf1071b70 (LWP 4614)]
__pthread_mutex_lock (mutex=0xd2d2d2d2) at pthread_mutex_lock.c:50
50 pthread_mutex_lock.c: No such file or directory.
(gdb) bt full
#0 __pthread_mutex_lock (mutex=0xd2d2d2d2) at pthread_mutex_lock.c:50
__PRETTY_FUNCTION__ = "__pthread_mutex_lock"
type = <optimized out>
#1 0xf74907d6 in pthread_mutex_lock () from /lib32/libc.so.6
No symbol table info available.
#2 0xf6ac910f in ?? () from /usr/lib32/libX11.so.6
No symbol table info available.
#3 0xf6adf9c4 in XrmQGetResource () from /usr/lib32/libX11.so.6
No symbol table info available.
#4 0xf6ad6f7d in XStringToKeysym () from /usr/lib32/libX11.so.6
No symbol table info available.
#5 0xf6b05c45 in _XimParseStringFile () from /usr/lib32/libX11.so.6
No symbol table info available.
#6 0xf6b0ff39 in _XimLocalOpenIM () from /usr/lib32/libX11.so.6
No symbol table info available.
#7 0xf6afcf3d in _XimOpenIM () from /usr/lib32/libX11.so.6
No symbol table info available.
#8 0xf6ae8f0a in XOpenIM () from /usr/lib32/libX11.so.6
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#9 0xf324880e in xkeybd_init_keyboard ()
from ./stonesense/deplibs/liballegro.so.5.0
No symbol table info available.
#10 0xf320e05b in al_install_keyboard ()
from ./stonesense/deplibs/liballegro.so.5.0
No symbol table info available.
#11 0xf32e0875 in stonesense_thread(ALLEGRO_THREAD*, void*) ()
from /media/Linux_Data/Dwarf_Fortress/Test_Fortress/0.34.X/df_34_11_linux/df_linux/hack/plugins/stonesense.plug.so
No symbol table info available.
#12 0xf321328f in thread_func_trampoline ()
from ./stonesense/deplibs/liballegro.so.5.0
No symbol table info available.
#13 0xf32469b6 in thread_proc_trampoline ()
from ./stonesense/deplibs/liballegro.so.5.0
No symbol table info available.
#14 0xf739dc39 in start_thread (arg=0xf1071b70) at pthread_create.c:304
---Type <return> to continue, or q <return> to quit---
__res = <optimized out>
__ignore1 = <optimized out>
__ignore2 = <optimized out>
pd = 0xf1071b70
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-147136524, 0, 4001536,
-251194344, 659618715, 1523485079}, mask_was_saved = 0}},
priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0,
cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
freesize = <optimized out>
__PRETTY_FUNCTION__ = "start_thread"
#15 0xf748351e in clone () from /lib32/libc.so.6
No symbol table info available.
Hello, this is an X problem. You might have to update xorg to get the thread safe version of libX11.
My xorg (64bit) and libX11 (64bit and 32bit) are at the latest version in Debian already. Updating libx11-data and x11-utils to unstable made it work. Thanks for letting me know it was an X problem, that pointed me in the right direction to find what needed updated.
Alright. Closing :)