Date: Wed, 26 Jun 2013 23:45:21 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: Dimitry Andric <dim@FreeBSD.org> Cc: Matthias Andree <mandree@FreeBSD.org>, Brooks Davis <brooks@FreeBSD.org>, David Chisnall <theraven@freebsd.org>, "freebsd-ports@freebsd.org Ports" <freebsd-ports@freebsd.org>, Michael Gmelin <freebsd@grem.de> Subject: Re: Global destructor order problems (was: Re: Are ports supposed to build and run on 10-CURRENT?) Message-ID: <20130626204521.GU91021@kib.kiev.ua> In-Reply-To: <7CD9075C-F8D6-41C1-8D21-8B10DF866ECE@FreeBSD.org> References: <20130613031535.4087d7f9@bsd64.grem.de> <EF830CD7-00F1-4628-8515-76133BBE85E7@FreeBSD.org> <C1CC40FC-4489-4164-96B7-5E1A25DCB37F@FreeBSD.org> <20130626015508.426ab5b9@bsd64.grem.de> <51CAADB8.7090603@FreeBSD.org> <20130626133149.4835f14a@bsd64.grem.de> <7CD9075C-F8D6-41C1-8D21-8B10DF866ECE@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--UkVofV5Xw/L9x8rZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jun 26, 2013 at 09:26:09PM +0200, Dimitry Andric wrote: > This revision is not in 9.1-RELEASE, but it is in 9-STABLE, so the > problem can also be reproduced there. ... > This is roughly gcc 4.3.0 and later. For example, gcc 4.8 generates: I just tested the thing with gcc 4.8 on up to date stable/9 and HEAD. In both cases, major tom did not fail, at least not in the peculiar way. The gcc-generated code passed the PLT address of the corresponding destructor. The r211706 intent is indeed to prevent a situation when the libc calls the atexit(3)-registered termination function from dso which is already unloaded. This is apparently epidemic with PHP and similar environments. --UkVofV5Xw/L9x8rZ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iQIcBAEBAgAGBQJRy1LhAAoJEJDCuSvBvK1BtiIP/1AQbpC8KkPWdQkQC8K5WG9b kND0OU97MfU+D4vVufzxA4T9RKCCBTrpboqwHzcdKv7DYhVkb2SHDP29MAh8kwHZ GH8SWxphx4dD4hI3etSJHt73j9xMDL2S7Ar9+sN13UmVs69G77ragb+8+N9Hkb7c u5UdtUXQKcGPW5Z8W7nZr1D0tNxb9+8Zmj2MLZcogE9dTJATZAYNyLNalGF34oMn gh2Mirpf4JKAH01ViTLkeC8ZE/ku7m8h1wGPlHQ3hwWeLEaHm+R7VadBctsubziE wkRsxstmpp2MKb5az8mhGURtaIsR6eXyY2JyQXzJCRUrV2ONoOaRuqsmpdJ+Ij6D QsT5P374pJXemnDxZ9RlzB3Gi+v8rU+sFmJoyaMbJQnwuivf83iaVLW+B5matOQc jDb0TVfeLU6y0KhEN0ljqaIa6v9bF8E6P33ISWmL8Lx02dyN6GrrYgpa4t9IrzgW HIx+PMh0fRgUE/6bmUDg3RIiNCQ6bCUT4R7JaE8pE9z8ydI9ucHQNK+rwUMHi4eh toBkziE+yOJEn1C060yrRhmF6z3iw3H1zKXIaVvUsn2F/6Myc4H3H9KvKZZUCTUO Ljuw5aYo5SxQBpg2g1fmXDjFVmzbqhwRHmsoc0tRIJERx6oaylCXDcOt1QlYzwy8 /pROX+XGNM4kqWxkY5R2 =YmiI -----END PGP SIGNATURE----- --UkVofV5Xw/L9x8rZ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130626204521.GU91021>