[maemo-developers] Possible bug in /usr/lib/libglib-2.0.so.0

From: Detlef Schmicker d.schmicker at physik.de
Date: Thu Sep 20 14:17:10 EEST 2007
Hello,

I have a strange problem: maetronome.garage.maemo.org

(A port of GTick) crashes with bus error. I tracked down the problem
with gdb and strace and the problem is connected to the file 

/usr/share/themes/default/gtk-2.0/gtkrc.cache

If I delete it, the crash does not happen and everything works fine. I
attach my output from gdb and strace. In case somebody wants to
reproduce, think of LD_PRELOAD !!

I seems that glib crashes during processing of gtkrc.cache

Any tips? Any workarounds?

Thanks a lot

Detlef


Nokia-N800-26:~# export
LD_PRELOAD="/usr/bin/libesd.so.0 /usr/bin/libesddsp.so.0"
Nokia-N800-26:~# gdb gtick

.....

Program received signal SIG32, Real-time event 32.
0x41208a90 in pthread_create () from /lib/libpthread.so.0
(gdb) c
Continuing.

Program received signal SIGBUS, Bus error.
0x41162032 in g_scanner_scope_foreach_symbol ()
from /usr/lib/libglib-2.0.so.0
(gdb) bt
#0  0x41162032 in g_scanner_scope_foreach_symbol ()
   from /usr/lib/libglib-2.0.so.0
#1  0x411b04d4 in ?? () from /usr/lib/libglib-2.0.so.0
Cannot access memory at address 0xc
(gdb) 




Nokia-N800-26:~# strace gtick

....

open("/usr/share/themes/default/gtk-2.0/gtkrc.cache", O_RDONLY|
O_LARGEFILE) = 10
fstat64(10, {st_mode=S_IFREG|0644, st_size=17592186044416, ...}) = 0
mmap2(NULL, 182448, PROT_READ, MAP_SHARED, 10, 0x4300000) = 0x40274000
close(10)                               = 0
--- SIGBUS (Bus error) @ 0 (0) ---
+++ killed by SIGBUS +++
Process 2722 detached
Nokia-N800-26:~# 







More information about the maemo-developers mailing list