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:36:44 +0100

 This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
 --Re2XXZjHEmTZLYJ1BJOtH9l3WrZAnNIHt
 Content-Type: multipart/mixed; boundary="biPGKGKdEeIOMwSywsvNCEmQ441qWSY8Y";
  protected-headers="v1"
 From: Kamil Rytarowski <n54%gmx.com@localhost>
 To: gnats-bugs%NetBSD.org@localhost
 Message-ID: <2fe02234-de92-6729-5d1b-57402b394f1a%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>
  <20181220171000.738957A1ED%mollari.NetBSD.org@localhost>
  <20181220175724.GB20295%britannica.bec.de@localhost>
 In-Reply-To: <20181220175724.GB20295%britannica.bec.de@localhost>
 
 --biPGKGKdEeIOMwSywsvNCEmQ441qWSY8Y
 Content-Type: text/plain; charset=utf-8
 Content-Language: en-US
 Content-Transfer-Encoding: quoted-printable
 
 On 20.12.2018 18:57, Joerg Sonnenberger wrote:
 > On Thu, Dec 20, 2018 at 05:10:00PM +0000, n54%gmx.com@localhost wrote:
 >>> Description:
 >> atexit(3) callback registered in DSO misbehaves if DSO is dlclose(3)d.=
 
 >>
 >>  - atexit(3) callback registered in DSO is not called upon dlclose(3),=
 
 >>  - atexit(3) callback registered in DSO is called on program terminati=
 on, even if dlclose(3)d was called and this causes crash.
 >=20
 > This is not a bug. Seriously, do not use atexit(3) from a dynamically
 > opened DSO.
 >=20
 
 What's the rationale that this is not allowed so I can prompt upstream
 to change it?
 
 
 --biPGKGKdEeIOMwSywsvNCEmQ441qWSY8Y--
 
 --Re2XXZjHEmTZLYJ1BJOtH9l3WrZAnNIHt
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 
 iQJABAEBCAAqFiEELaxVpweEzw+lMDwuS7MI6bAudmwFAlwb4TwMHG41NEBnbXgu
 Y29tAAoJEEuzCOmwLnZsMRgQAMWvULIhKjFfb+rEmCWTn0G2nOC6t/fJCgo8SLi3
 UYBy7DOjW8VWLSC/9xqePNAxMPcl0bZ8iN9ZIfy29IOXjncAn5QhDB5aruxU2OiA
 8hzMaAZGmgXACOJcfHXnx1uJW8A9eNd2hP+4Ao6GSB8azBTeCoVvrsz8zFpxulw3
 8NbQ3KDLSnyvXFLWFgZrMb9imvFotwdOL2plAbCyPaLOTwtS+4VPj8PLqb8QvHOR
 9/6D3qIv/59jJ6WN32b7juwWfoVMSagz8RUVL0eA18AqmhBIZ+GBb/HzWQnx+DN4
 2K33FnoR4ekqdL2vBsGFz5s5022nAT5//7RgxhJyXEovfSuqb1LPgYpOGoLKpmNm
 iMLZIORDkHCAqI7NKMGzc7mGarYoGmwjmflFtrGYMzpz3/Ky096pvkuhkXjlnf9f
 n+gJvTgWN07pDP+E+b75wmSxa+zzOx0dcUlh/VjX8zgdLkcFx4lIPdP4OT8R0jnE
 bGUnWEaWViMVoI7sgda8UEM3SBFGhvFH8xs977CVfIVShYpeiZ055PYnZn1baV/B
 GI1cdh+3++JiLnB5hOHT7k0GGwf3DaSY7718sF/Pz4ZaA+xjtUAdiaVazBObhhPA
 mp+9YalwV+wcYGVXaIEkWMQHRnRzUYdkGfU1t+vsUAoQPeAfxc3xmkV4jG00BjuS
 PsAE
 =7hGa
 -----END PGP SIGNATURE-----
 
 --Re2XXZjHEmTZLYJ1BJOtH9l3WrZAnNIHt--
 


Home | Main Index | Thread Index | Old Index