NetBSD-Bugs archive

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

Re: port-mips/59064 (jemalloc switch to 5.3 broke userland)



The following reply was made to PR port-mips/59064; it has been noted by GNATS.

From: Christos Zoulas <christos%zoulas.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: port-mips-maintainer%netbsd.org@localhost,
 gnats-admin%netbsd.org@localhost,
 netbsd-bugs%netbsd.org@localhost,
 "martin%netbsd.org@localhost" <martin%NetBSD.org@localhost>
Subject: Re: port-mips/59064 (jemalloc switch to 5.3 broke userland)
Date: Sat, 12 Apr 2025 08:52:33 -0400

 --Apple-Mail=_05170A68-0745-44AD-B04D-2CCDE81F2303
 Content-Transfer-Encoding: quoted-printable
 Content-Type: text/plain;
 	charset=utf-8
 
 This means that:
 
 Index: include/jemalloc/internal/jemalloc_internal_defs.h
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: =
 /cvsroot/src/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_inte=
 rnal_defs.h,v
 retrieving revision 1.19
 diff -u -p -u -r1.19 jemalloc_internal_defs.h
 --- include/jemalloc/internal/jemalloc_internal_defs.h  1 Feb 2025 =
 16:26:58 -0000       1.19
 +++ include/jemalloc/internal/jemalloc_internal_defs.h  12 Apr 2025 =
 12:50:39 -0000
 @@ -157,7 +157,9 @@
  /* #undef JEMALLOC_MUTEX_INIT_CB */
 =20
  /* Non-empty if the tls_model attribute is supported. */
 +#ifndef __mips__
  #define JEMALLOC_TLS_MODEL __attribute__((tls_model("initial-exec")))
 +#endif
 =20
  /*
   * JEMALLOC_DEBUG enables assertions and other sanity checks, and =
 disables
 Exit 1
 
 will probably fix it. JEMALLOC_TLS_MODEL is set by autoconf. Can you run =
 configure
 on a mips machine and see what it does. My edgerouter died. I should =
 probably get another.
 
 christos
 
 > On Apr 12, 2025, at 5:40=E2=80=AFAM, Rin Okuyama via gnats =
 <gnats-admin%NetBSD.org@localhost> wrote:
 >=20
 > The following reply was made to PR port-mips/59064; it has been noted =
 by GNATS.
 >=20
 > From: Rin Okuyama <rokuyama.rk%gmail.com@localhost>
 > To: gnats-bugs%NetBSD.org@localhost, Martin Husemann <martin%duskware.de@localhost>
 > Cc:=20
 > Subject: Re: port-mips/59064 (jemalloc switch to 5.3 broke userland)
 > Date: Sat, 12 Apr 2025 18:38:08 +0900
 >=20
 > Hi,
 >=20
 > I've carried out bisectioning for upstream repo to find out
 > the first bad commit:
 >=20
 > https://github.com/jemalloc/jemalloc/commit/1aabab5f
 >=20
 > By reverting this commit from our in-tree jemalloc, both n64 and
 > n32 userlands successfully boot up into multi-user mode on ERLite-3.
 >=20
 > However, now, statically-linked binaries crash via:
 > abort() <-- __tls_get_addr() <-- malloc_init_hard() <-- _initarray()
 >=20
 > This can be a hint for what going on with and without the
 > commit in problem.
 >=20
 > Just a quick report...
 >=20
 > Thanks,
 > rin
 >=20
 
 
 --Apple-Mail=_05170A68-0745-44AD-B04D-2CCDE81F2303
 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+BJlbqPkO0MDBdsRxESqxbLM7OgUCZ/piEQAKCRBxESqxbLM7
 OsrwAKCUau+ybifhVFb9l4g9lnY62RcWtgCbBHsWe73zbF4mS4rrhpcmUDtI9ow=
 =zo8J
 -----END PGP SIGNATURE-----
 
 --Apple-Mail=_05170A68-0745-44AD-B04D-2CCDE81F2303--
 


Home | Main Index | Thread Index | Old Index