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
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:17:44 -0400
--Apple-Mail=_7DEA87DD-34C9-4494-8ADE-06DB36976398
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
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:
>=20
> The following reply was made to PR toolchain/56153; it has been noted =
by GNATS.
>=20
> 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
>=20
> --Apple-Mail=3D_D5A3BB99-822F-48B5-A725-067060F74FEF
> Content-Transfer-Encoding: quoted-printable
> Content-Type: text/plain;
> charset=3Dus-ascii
>=20
>=20
>> =3D20
>> Hmm, (1)-(3) below results in the same crash for ``gdb cat =
cat.core''.
>> =3D20
>> (1) Replace libc with that with old jemalloc by LD_LIBRARY_PATH
>> (2) Set LD_PRELOAD=3D3D/usr/lib/libbsdmalloc.so
>> (3) Set LD_PRELOAD=3D3D/usr/lib/libgnumalloc.so
>=20
> By the same crash you mean in the same free call or the same jemalloc =
=3D
> stack trace?
>=20
>> =3D20
>> With libc built with -DJEMALLOC_DEBUG:
>> =3D20
>> ----
>> $ LD_LIBRARY_PATH=3D3D~/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>: =3D
> /usr/src/external/bsd/jemalloc/lib/../dist/src/rtree.c:205: Failed =3D
> assertion: "!dependent || leaf !=3D3D NULL"
>> [1] Abort trap (core dumped) LD_LIBRARY_PATH=3D3D~/jemalloc_debug =
gdb =3D
> cat cat.core
>> =3D20
>=20
> That seems like the tree data structure is corrupted? Multiple frees? =
=3D
> But it should have caught that.
>=20
> christos
>=20
>=20
> --Apple-Mail=3D_D5A3BB99-822F-48B5-A725-067060F74FEF
> Content-Transfer-Encoding: 7bit
> Content-Disposition: attachment;
> filename=3Dsignature.asc
> Content-Type: application/pgp-signature;
> name=3Dsignature.asc
> Content-Description: Message signed with OpenPGP
>=20
> -----BEGIN PGP SIGNATURE-----
> Comment: GPGTools - http://gpgtools.org
>=20
> iF0EARECAB0WIQS+BJlbqPkO0MDBdsRxESqxbLM7OgUCYJVIuwAKCRBxESqxbLM7
> OhX2AKDDM5czJmyl3WKgeNnUebWWaoGkwQCghHval8uj6Xy0+dbABHHk65JBTUQ=3D
> =3DhypZ
> -----END PGP SIGNATURE-----
>=20
> --Apple-Mail=3D_D5A3BB99-822F-48B5-A725-067060F74FEF--
>=20
--Apple-Mail=_7DEA87DD-34C9-4494-8ADE-06DB36976398
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+BJlbqPkO0MDBdsRxESqxbLM7OgUCYJVMCAAKCRBxESqxbLM7
OoFoAJ9cJkVCaohiat69CoEjd+ZX8r6G2QCeOHJO94Bz+Y3DDd80Lqw+Urbgl7U=
=6BXN
-----END PGP SIGNATURE-----
--Apple-Mail=_7DEA87DD-34C9-4494-8ADE-06DB36976398--
Home |
Main Index |
Thread Index |
Old Index