-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Uli Schlachter wrote:
> Julien Danjou wrote:
>> At 1241874772 time_t, Uli Schlachter wrote:
>>> Well, I went with valgrind and now got this backtrace (man, I miss debugging
>>> symbols... btw I still can't compile awesome due to some missing
>>> dependencies).
>>> Anyone got some ideas what's going on? Proposals how to get my beloved debug
>>> symbols? :(
>> http://naquadah.org/~jd/debian/awesome_3.3~rc2-1_nostrip-debug-noopt_amd64.deb
>
>
> Hi,
>
> now it crashed again and valgrind finally gave some more useful backtraces:
>
> ==4386== Invalid read of size 1
> ==4386== at 0x4A09F9E: memmove (mc_replace_strmem.c:517)
> ==4386== by 0x439E24: luaA_imagebox_newindex (luaobject.h:39)
> ==4386== by 0x430031: luaA_widget_newindex (widget.c:490)
> ==4386== by 0x30AAE0CB15: (within /usr/lib/liblua5.1.so.0.0.0)
> ==4386== by 0x30AAE0D028: (within /usr/lib/liblua5.1.so.0.0.0)
> ==4386== by 0x30AAE173DB: (within /usr/lib/liblua5.1.so.0.0.0)
> ==4386== by 0x30AAE0D084: (within /usr/lib/liblua5.1.so.0.0.0)
> ==4386== by 0x30AAE0C706: (within /usr/lib/liblua5.1.so.0.0.0)
> ==4386== by 0x30AAE0C784: (within /usr/lib/liblua5.1.so.0.0.0)
> ==4386== by 0x30AAE08093: lua_pcall (in /usr/lib/liblua5.1.so.0.0.0)
> ==4386== by 0x41A843: property_handle_net_wm_icon (luaa.h:261)
> ==4386== by 0x3565A00BE8: (within /usr/lib/libxcb-property.so.1.0.0)
> ==4386== Address 0x5cde9b0 is 0 bytes after a block of size 96 alloc'd
> ==4386== at 0x4A0891E: malloc (vg_replace_malloc.c:207)
> ==4386== by 0x4A08AA7: realloc (vg_replace_malloc.c:429)
> ==4386== by 0x412EA2: client_manage (util.h:155)
> ==4386== by 0x417D90: event_handle_maprequest (event.c:645)
> ==4386== by 0x40DFDC: a_xcb_check_cb (awesome.c:203)
> ==4386== by 0x32AE607216: ev_loop (in /usr/lib/libev.so.3.0.0)
> ==4386== by 0x40E8A6: main (awesome.c:536)
New day, new backtrace (why does it only ever crash once per day for me?).
Notice that the memory was allocated in 'property_handle_net_wm_icon
(util.h:155)'. util.h:155 ist xrealloc() which is only ever called from
p_realloc() which in turn is called from several places.
Looking through client_manage() I would expect either the call to
client_array_push() or the image_ref() call (which calls
luaA_ref_array_append()) to be the cause. So this all points to the code in
common/array.h, I guess, but I'd expect bugs in there to be more visible... :/
==4485== Invalid read of size 1
==4485== at 0x4A09F9E: memmove (mc_replace_strmem.c:517)
==4485== by 0x439E24: luaA_imagebox_newindex (luaobject.h:39)
==4485== by 0x430031: luaA_widget_newindex (widget.c:490)
==4485== by 0x30AAE0CB15: (within /usr/lib/liblua5.1.so.0.0.0)
==4485== by 0x30AAE0D028: (within /usr/lib/liblua5.1.so.0.0.0)
==4485== by 0x30AAE173DB: (within /usr/lib/liblua5.1.so.0.0.0)
==4485== by 0x30AAE0D084: (within /usr/lib/liblua5.1.so.0.0.0)
==4485== by 0x30AAE0C706: (within /usr/lib/liblua5.1.so.0.0.0)
==4485== by 0x30AAE0C784: (within /usr/lib/liblua5.1.so.0.0.0)
==4485== by 0x30AAE08093: lua_pcall (in /usr/lib/liblua5.1.so.0.0.0)
==4485== by 0x41A843: property_handle_net_wm_icon (luaa.h:261)
==4485== by 0x3565A00BE8: (within /usr/lib/libxcb-property.so.1.0.0)
==4485== Address 0x8136948 is 0 bytes after a block of size 96 alloc'd
==4485== at 0x4A0891E: malloc (vg_replace_malloc.c:207)
==4485== by 0x4A08AA7: realloc (vg_replace_malloc.c:429)
==4485== by 0x41A923: property_handle_net_wm_icon (util.h:155)
==4485== by 0x3565A00BE8: (within /usr/lib/libxcb-property.so.1.0.0)
==4485== by 0x40DFDC: a_xcb_check_cb (awesome.c:203)
==4485== by 0x32AE607216: ev_loop (in /usr/lib/libev.so.3.0.0)
==4485== by 0x40E8A6: main (awesome.c:536)
Cheers,
Uli
P.S. I'm only posting this so that I can find all my backtraces in one place.
- --
"Do you know that books smell like nutmeg or some spice from a foreign land?"
-- Faber in Fahrenheit 451
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iQEcBAEBCAAGBQJKCR3/AAoJECLkKOvLj8sGvEAH/jPd7aPZFCXAfk55cC7i/DaL
i0F5SBz5ls5E+AUPxwCm04SN7XSD0jsUSf9X2Hop22d33+psrhJitayKsapj8lxT
wzZEn3rpNTMbxu1IWOJyWWaGN+XVyJXIdOGGssTYN5Fus070t2tvX58ergDfi6h2
kuXnrfshoUxkOhu3XLi3HQafJby8SDQxmh/9J/7GqOB2n73oyorZMBgWYOBolUBR
RziJpqo6XvXgAkOa3H+ufMwCReCGmaEY/nADelkcYUP4C+P/nIuaXjhN/fUEa3FM
pvj4hX6zy3hctv1s01o+gQ6YGc3WEIMso5jLhBPx5JTb87iYTFWRT6t4TEmSLWw=
=p9LU
-----END PGP SIGNATURE-----
--
To unsubscribe, send mail to [email protected].