NetBSD-Bugs archive

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

Re: lib/53805: dlclose(3) does not interact correctly with atexit(3) callbacks



The following reply was made to PR lib/53805; it has been noted by GNATS.

From: Kamil Rytarowski <n54%gmx.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: lib/53805: dlclose(3) does not interact correctly with atexit(3)
 callbacks
Date: Thu, 20 Dec 2018 19:25:20 +0100

 This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
 --mYJkTNyXkYYU15E5MRXmi7XePTGh1Vcsf
 Content-Type: multipart/mixed; boundary="5APzVmdPmVrZ48Qb06pYiuFFinrenFXER";
  protected-headers="v1"
 From: Kamil Rytarowski <n54%gmx.com@localhost>
 To: gnats-bugs%NetBSD.org@localhost
 Message-ID: <8745893e-7d9c-db69-27d5-787b405c7db1%gmx.com@localhost>
 Subject: Re: lib/53805: dlclose(3) does not interact correctly with atexit(3)
  callbacks
 References: <pr-lib-53805%gnats.netbsd.org@localhost>
  <20181220170732.7C3557A1ED%mollari.NetBSD.org@localhost>
  <20181220182001.784727A1E3%mollari.NetBSD.org@localhost>
 In-Reply-To: <20181220182001.784727A1E3%mollari.NetBSD.org@localhost>
 
 --5APzVmdPmVrZ48Qb06pYiuFFinrenFXER
 Content-Type: text/plain; charset=utf-8
 Content-Language: en-US
 Content-Transfer-Encoding: quoted-printable
 
 On 20.12.2018 19:20, Joerg Sonnenberger wrote:
 > The following reply was made to PR lib/53805; it has been noted by GNAT=
 S.
 >=20
 > From: Joerg Sonnenberger <joerg%bec.de@localhost>
 > To: gnats-bugs%NetBSD.org@localhost
 > Cc: lib-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
 > 	netbsd-bugs%netbsd.org@localhost, n54%gmx.com@localhost
 > Subject: Re: lib/53805: dlclose(3) does not interact correctly with ate=
 xit(3)
 >  callbacks
 > Date: Thu, 20 Dec 2018 19:19:06 +0100
 >=20
 >  On Thu, Dec 20, 2018 at 06:10:01PM +0000, Kamil Rytarowski wrote:
 >  >  This is the common behavior of atexit(3) vs dlclose(3). Internally
 >  >  atexit(3) is registered together with its DSO pointer so we have al=
 l we
 >  >  need there.
 > =20
 >  It's not, that's the whole point. atexit(3) has no idea what DSO the
 >  handler is in beyond doing address scans. Which is exactly atexit(3) i=
 s
 >  the wrong interface here.
 > =20
 >  Joerg
 > =20
 >=20
 
 Please see my newer message. atexit(3) should be registered with NULL
 DSO according to
 https://itanium-cxx-abi.github.io/cxx-abi/abi.html#dso-dtor-runtime-api
 
 
 --5APzVmdPmVrZ48Qb06pYiuFFinrenFXER--
 
 --mYJkTNyXkYYU15E5MRXmi7XePTGh1Vcsf
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 
 iQJABAEBCAAqFiEELaxVpweEzw+lMDwuS7MI6bAudmwFAlwb3pAMHG41NEBnbXgu
 Y29tAAoJEEuzCOmwLnZsYQUP+QGb/qNO3Ujm7A18uxaSDh02wNpJ/GhFWqz9i2Wr
 QEYDRP/tMbYGB1sgxFC/88ZX1WPdv8XdNk8qBlxp2CS6I3pMR70Ld3VRiC1P7xdw
 yzae4ITeo86J2zV7O8R9OyGTJr1d4psZt4VfiTTj3tSuyZeSFDQac011HhkKacpH
 HLirJtu738GzQKUupuUGLsbDJVI+PUdzwN8MdBuTKAyvdiHkY8v/t3AG0uwE4K/o
 SRCqwzWGFyw+zap9lBH/NYJXthBZDOPtM39Bv9i778795OAE3RRgDALpajrgbUqu
 G6FwZTN6bJjhhoWYBa7jzxGGbfcWqp2EkmIbEXiciaAtybD9xX7nbCRw8AZZRT0h
 dAog7L2Bq0pJPQ9xM7R3vLLRoi6arch7Qmqp233ECTJyMveH7/61CcN7ndTHWYji
 +kd24on1T0JEu883IbUy0PkP9t3i2YS4EHeZ3K3AzjvR/F8CVe7abjowdREy0JeB
 XQHPlAfCq4H+lUIpYgZ2g9TUuQptq4KoB2nhokF5aQS/SWaqC0XqQg2NH6hQ3+ch
 qVDpXli6Gv7rqeshOUnHUpOSqKZCk6ny4DUgdGW5JTOKL/fIrRciy6//ntEcvr7J
 qLJTev70XlvfOqpZfakFDCoHyvyfSsi0A77T7DcWW2LTXZ9OKejnO4xttfUgMdOo
 vTBr
 =UYsH
 -----END PGP SIGNATURE-----
 
 --mYJkTNyXkYYU15E5MRXmi7XePTGh1Vcsf--
 


Home | Main Index | Thread Index | Old Index