NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/56153: gdb is broken for alpha



> 
> Hmm, (1)-(3) below results in the same crash for ``gdb cat cat.core''.
> 
> (1) Replace libc with that with old jemalloc by LD_LIBRARY_PATH
> (2) Set LD_PRELOAD=/usr/lib/libbsdmalloc.so
> (3) Set LD_PRELOAD=/usr/lib/libgnumalloc.so

By the same crash you mean in the same free call or the same jemalloc stack trace?

> 
> With libc built with -DJEMALLOC_DEBUG:
> 
> ----
> $ LD_LIBRARY_PATH=~/jemalloc_debug gdb cat cat.core
> GNU gdb (GDB) 11.0.50.20200914-git
> ...(snip)...
> Reading symbols from cat...
> Reading symbols from /usr/libdata/debug//bin/cat.debug...
> [New process 18637]
> <jemalloc>: /usr/src/external/bsd/jemalloc/lib/../dist/src/rtree.c:205: Failed assertion: "!dependent || leaf != NULL"
> [1]   Abort trap (core dumped) LD_LIBRARY_PATH=~/jemalloc_debug gdb cat cat.core
> 

That seems like the tree data structure is corrupted? Multiple frees? But it should have caught that.

christos

Attachment: signature.asc
Description: Message signed with OpenPGP



Home | Main Index | Thread Index | Old Index