From owner-freebsd-ports@FreeBSD.ORG Wed Jun 26 20:45:27 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5DBC5D00; Wed, 26 Jun 2013 20:45:27 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id BE5261BD1; Wed, 26 Jun 2013 20:45:26 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.7/8.14.7) with ESMTP id r5QKjMYx076019; Wed, 26 Jun 2013 23:45:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua r5QKjMYx076019 Received: (from kostik@localhost) by tom.home (8.14.7/8.14.7/Submit) id r5QKjMJ9076014; Wed, 26 Jun 2013 23:45:22 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 26 Jun 2013 23:45:21 +0300 From: Konstantin Belousov To: Dimitry Andric 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> References: <20130613031535.4087d7f9@bsd64.grem.de> <20130626015508.426ab5b9@bsd64.grem.de> <51CAADB8.7090603@FreeBSD.org> <20130626133149.4835f14a@bsd64.grem.de> <7CD9075C-F8D6-41C1-8D21-8B10DF866ECE@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UkVofV5Xw/L9x8rZ" Content-Disposition: inline In-Reply-To: <7CD9075C-F8D6-41C1-8D21-8B10DF866ECE@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: Matthias Andree , Brooks Davis , David Chisnall , "freebsd-ports@freebsd.org Ports" , Michael Gmelin X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jun 2013 20:45:27 -0000 --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--