Can you try undef'ing all the HAVE_ALLOCA? [10:15am] 224>find . -name \*.h -exec grep HAVE_ALLOCA {} + | grep alpha ./libbfd/arch/alpha/config.h:/* #undef HAVE_ALLOCA_H */ ./libgdb/arch/alpha/config.h:#define HAVE_ALLOCA 1 ./libgdb/arch/alpha/config.h:/* #undef HAVE_ALLOCA_H */ ./libiberty/arch/alpha/config.h:/* #undef HAVE_ALLOCA_H */ ./libgdbsupport/arch/alpha/gdbsupport/config.h:#define HAVE_ALLOCA 1 ./libgdbsupport/arch/alpha/gdbsupport/config.h:/* #undef HAVE_ALLOCA_H */ ./libgnulib/arch/alpha/gnulib/config.h:#define HAVE_ALLOCA 1 ./libgnulib/arch/alpha/gnulib/config.h:/* #undef HAVE_ALLOCA_H */ christos > On May 7, 2021, at 10:05 AM, Christos Zoulas <christos%zoulas.com@localhost> wrote: > > The following reply was made to PR toolchain/56153; it has been noted by GNATS. > > From: Christos Zoulas <christos%zoulas.com@localhost> > To: gnats-bugs%netbsd.org@localhost > Cc: toolchain-manager%netbsd.org@localhost, > gnats-admin%netbsd.org@localhost, > netbsd-bugs%netbsd.org@localhost, > rokuyama.rk%gmail.com@localhost > Subject: Re: toolchain/56153: gdb is broken for alpha > Date: Fri, 7 May 2021 10:03:39 -0400 > > --Apple-Mail=_D5A3BB99-822F-48B5-A725-067060F74FEF > Content-Transfer-Encoding: quoted-printable > Content-Type: text/plain; > charset=us-ascii > > >> =20 >> Hmm, (1)-(3) below results in the same crash for ``gdb cat cat.core''. >> =20 >> (1) Replace libc with that with old jemalloc by LD_LIBRARY_PATH >> (2) Set LD_PRELOAD=3D/usr/lib/libbsdmalloc.so >> (3) Set LD_PRELOAD=3D/usr/lib/libgnumalloc.so > > By the same crash you mean in the same free call or the same jemalloc = > stack trace? > >> =20 >> With libc built with -DJEMALLOC_DEBUG: >> =20 >> ---- >> $ LD_LIBRARY_PATH=3D~/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 !=3D NULL" >> [1] Abort trap (core dumped) LD_LIBRARY_PATH=3D~/jemalloc_debug gdb = > cat cat.core >> =20 > > That seems like the tree data structure is corrupted? Multiple frees? = > But it should have caught that. > > christos > > > --Apple-Mail=_D5A3BB99-822F-48B5-A725-067060F74FEF > Content-Transfer-Encoding: 7bit > Content-Disposition: attachment; > filename=signature.asc > Content-Type: application/pgp-signature; > name=signature.asc > Content-Description: Message signed with OpenPGP > > -----BEGIN PGP SIGNATURE----- > Comment: GPGTools - http://gpgtools.org > > iF0EARECAB0WIQS+BJlbqPkO0MDBdsRxESqxbLM7OgUCYJVIuwAKCRBxESqxbLM7 > OhX2AKDDM5czJmyl3WKgeNnUebWWaoGkwQCghHval8uj6Xy0+dbABHHk65JBTUQ= > =hypZ > -----END PGP SIGNATURE----- > > --Apple-Mail=_D5A3BB99-822F-48B5-A725-067060F74FEF-- >
Attachment:
signature.asc
Description: Message signed with OpenPGP