Heisenbug in GNUstep

Robert Millan rmh@debian.org
Sun, 6 Mar 2005 11:16:52 +0100


On Mon, Dec 20, 2004 at 04:38:50AM +0100, Robert Millan wrote:
> 
> which coredumps right after being run.  A gdb backtrace reported lots of calls
> in libc and libstdc++ initialisation routines (libc has debugging symbols in
> this one).  I thought that libstdc++ with debugging symbols could help, so
> installed and.. voila!  The bug is gone.

Same happens with gaim:

Program received signal SIGSEGV, Segmentation fault.
0x2882b245 in next_env_entry (position=0xbfbfe048) at arena.c:296
296     arena.c: No such file or directory.
        in arena.c
(gdb) bt
#0  0x2882b245 in next_env_entry (position=0xbfbfe048) at arena.c:296
#1  0x2882b623 in ptmalloc_init () at arena.c:405
#2  0x2882bce0 in malloc_hook_ini (sz=3217023048, caller=0x287e3abf)
    at hooks.c:43
#3  0x2882d166 in __libc_malloc (bytes=116) at malloc.c:3276
#4  0x287e3abf in __newlocale (category_mask=8127, locale=0x2898aa44 "C", 
    base=0x0) at newlocale.c:179
#5  0x28965b1e in std::locale::facet::_S_create_c_locale(__locale_struct*&, char const*, __locale_struct*) () from /usr/lib/libstdc++.so.5
#6  0x289477fe in std::locale::_Impl::_Impl(std::locale::facet**, unsigned, bool) () from /usr/lib/libstdc++.so.5
#7  0x28927155 in std::locale::classic() () from /usr/lib/libstdc++.so.5
#8  0x28925b0d in std::locale::locale() () from /usr/lib/libstdc++.so.5
#9  0x28916247 in std::basic_filebuf<char, std::char_traits<char> >::basic_filebuf() () from /usr/lib/libstdc++.so.5
#10 0x28914ee2 in std::ctype_byname<wchar_t>::ctype_byname(char const*, unsigned) () from /usr/lib/libstdc++.so.5
#11 0x2891f021 in std::ios_base::Init::_S_ios_create(bool) ()
   from /usr/lib/libstdc++.so.5
#12 0x2891f675 in std::ios_base::Init::Init() () from /usr/lib/libstdc++.so.5

(and with libstdc++5-dbg, the bug is gone)

-- 
 .''`.   Proudly running Debian GNU/kFreeBSD unstable/unreleased (on UFS2+S)
: :' :
`. `'    http://www.debian.org/ports/kfreebsd-gnu
  `-