Segfault in libgnome if using electric fence



Electric fence is a tool to catch weird errors which seem to cause
segfault in every unimaginable place: usually, these are the effect of
bad memory management that (un)fortunatly do not cause a segfault where
they should, but lurk in the dark waiting for the program to do something
else.

Efence solves this putting a "fence" around malloc'd blocks, that way it
segfaults exactly where an address is read/written that shouldn't had.

I tried debugging a gnome app with efence but got into some kind of loop.
I realized the problem was gnome_segv also segfaulting, which led me to
inspect gnome_segv itself with efence.

Here's a stack trace:

#0  0x4151889b in gconv () from /usr/lib/gconv/ISO8859-1.so
#0  0x4151889b in gconv () from /usr/lib/gconv/ISO8859-1.so
#1  0x40471b99 in mbrtowc () from /lib/libc.so.6
#2  0x40439d10 in mbtowc () from /lib/libc.so.6
#3  0x403a1eb4 in _XlcGetCodeSetFromName () from
/usr/X11R6/lib/libX11.so.6
#4  0x4039cddf in _XlcConvert () from /usr/X11R6/lib/libX11.so.6
#5  0x403aa1cc in _Xlcmbstowcs () from /usr/X11R6/lib/libX11.so.6
#6  0x403aa36f in _Xmbstowcs () from /usr/X11R6/lib/libX11.so.6
#7  0x40394369 in _XimLcctstowcs () from /usr/X11R6/lib/libX11.so.6
#8  0x403945ce in XimParseStringFile () from /usr/X11R6/lib/libX11.so.6
#9  0x403932d9 in _XimLocalSetIMValues () from /usr/X11R6/lib/libX11.so.6
#10 0x4039338a in _XimLocalOpenIM () from /usr/X11R6/lib/libX11.so.6
#11 0x403929cc in _XimServerDestroy () from /usr/X11R6/lib/libX11.so.6
#12 0x4036af95 in XOpenIM () from /usr/X11R6/lib/libX11.so.6
#13 0x402f206f in gdk_im_set_best_style () from /usr/lib/libgdk-1.2.so.0
#14 0x402f217b in gdk_im_open () from /usr/lib/libgdk-1.2.so.0
#15 0x402e2939 in gdk_init_check () from /usr/lib/libgdk-1.2.so.0
#16 0x402415e5 in gtk_init_check () from /usr/lib/libgtk-1.2.so.0
#17 0x40241a61 in gtk_init () from /usr/lib/libgtk-1.2.so.0
#18 0x40088a70 in gnome_icon_entry_get_filename ()
   from /usr/lib/libgnomeui.so.32
#19 0x40415ad7 in poptSetExecPath () from /usr/lib/libgnomesupport.so.0
#20 0x40415a9f in poptSetExecPath () from /usr/lib/libgnomesupport.so.0
#21 0x404163e6 in poptGetNextOpt () from /usr/lib/libgnomesupport.so.0
#22 0x403fe899 in gnomelib_parse_args () from /usr/lib/libgnome.so.32
#23 0x40088da9 in gnome_init_with_popt_table () from
/usr/lib/libgnomeui.so.32
#24 0x8048f25 in main ()
#25 0x4043178a in __libc_start_main () from /lib/libc.so.6


Any ideas? 

-- 
   .--= ULLA! =----------------------------.  finger cactus@cactus.rulez.org
   \      http://cactus.rulez.org           \   for PGP public key
    `----------= cactus@cactus.rulez.org =--'
A complex system that works is invariably found to have evolved from a simple system that works.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]