From owner-freebsd-ports@FreeBSD.ORG Thu Jun 27 14:04:32 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 6AB1558A; Thu, 27 Jun 2013 14:04:32 +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 0B53B176A; Thu, 27 Jun 2013 14:04:31 +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 r5RE4STB010282; Thu, 27 Jun 2013 17:04:28 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua r5RE4STB010282 Received: (from kostik@localhost) by tom.home (8.14.7/8.14.7/Submit) id r5RE4SP1010281; Thu, 27 Jun 2013 17:04:28 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 27 Jun 2013 17:04:28 +0300 From: Konstantin Belousov To: Dimitry Andric Subject: Re: Global destructor order problems Message-ID: <20130627140428.GI91021@kib.kiev.ua> References: <20130626133149.4835f14a@bsd64.grem.de> <7CD9075C-F8D6-41C1-8D21-8B10DF866ECE@FreeBSD.org> <20130626204521.GU91021@kib.kiev.ua> <6900C006-2A57-4EAF-B19A-629A85CBA001@FreeBSD.org> <20130626210534.GY91021@kib.kiev.ua> <20130626231741.497f7a9b@bsd64.grem.de> <20130626212833.GB91021@kib.kiev.ua> <20130627015602.7a437aad@bsd64.grem.de> <51CC411C.4060105@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OHOABd/r1N6D/+xo" Content-Disposition: inline In-Reply-To: <51CC411C.4060105@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: "freebsd-ports@freebsd.org Ports" , Brooks Davis , David Chisnall , Matthias Andree , 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: Thu, 27 Jun 2013 14:04:32 -0000 --OHOABd/r1N6D/+xo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 27, 2013 at 03:41:48PM +0200, Dimitry Andric wrote: > On 2013-06-27 01:56, Michael Gmelin wrote: > > On Thu, 27 Jun 2013 00:28:33 +0300 > > Konstantin Belousov wrote: > > > >> On Wed, Jun 26, 2013 at 11:17:41PM +0200, Michael Gmelin wrote: > >>> Are you both on the same architecture? > >> > >> I tested both on amd64 and i386. For i386, it was -m32 for clang, and > >> native 32bit gcc 4.8.1, stock build from the tarball. > >> > > > > For completeness sake I tested once more using various compilers > > including gcc 4.8.1 on 10-CURRENT amd64 (see below). >=20 > I have now tested the lang/gcc44, 46, 47, 48 and 49 ports, on both i386 > and amd64. All result in the incorrect destructor order. My build of gcc is stock, not from the ports. Another detail, I built the compiler on stable/9, but use it on both stable and current. I am very curious what makes the my build to generate the code which uses PLT instead of direct reference, but have no time to investigate. I think that we could revert the termination calls to the functions =66rom the dso being unloaded, but this is quite unfortunate, since it will restore the endless series of 'segfault at the process termination' reports. --OHOABd/r1N6D/+xo Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iQIcBAEBAgAGBQJRzEZrAAoJEJDCuSvBvK1BRzsP/34vWkdhOfnjvkcANTyKpuZx a5RP05npxVnNgx/1m131IlBvvltmjVitRan6GrDsNi3qTniMbUWCD4dOmHSq/Dul c5YXcXvJ6PiHnKRLRjm5AfvbbCjI2AE10xxLUpCdm6GY/xw6HLOLANQADwjtd4Km /StBg1YizfWZEr2N9IkC4Ynxcjoy0B4wd/a2NnFrqwR8+LwkpuzbF18p/ecYPWs1 MGI+fhbd4ulOLCxzn4eoltaDY8m7/7KkqQgi4QXF+BveG9AqiQBqQYyW0oZ87XhN 8ClPe/JCrSk4AyvFgcjBRMT2wGvvdg83ta/5l+5237o8EFk/vez+Zx6ETR9dL2Qm t7KBSDuRQXOtfghU+b4YWYSjOmsTFthDo+Z8qm9hA82NMFbwboiUMxfvDvb5LIMC CjERJT7nw/F+FXUBmGain2gBWg+EHqlDrSYbHnfIodQq1UesAf2JAM80+mZTZX3p Mw/atNTKb9g07FSB7gMIaaEBvlbR8+8of2dc6M36sp657EncS9P9QUoUnRdvdGUr 4c5Ac75w9txBlWA75tN6HRZZ2ZTX6m4Eme+A3iK44ZVbVDJ3Ok3UP+7ZUcWqKvbw 3DC/W13ntCwHj812g26VtM7fNBFyGxa6xhU4bha1oQk7nmoOf+IodP2LeI0IQ4jn 2ClgV0atCOjMJqo936Mx =iSDB -----END PGP SIGNATURE----- --OHOABd/r1N6D/+xo--