X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=OyXlVM9amY4tnIfNcc8Z9+Z4OeDLBf5RPnVKMQ3S0DpFDlMi0/N9m JquBOWUEO30vGm1T7QoyxqqqvyZlHTNm7zUH4d3D3CM+cSenceVB9Ijs9LtNtgPa lTptV1VxF5ubNESrSB/K200LPIr3mdQaoMDabV5ij3tiZ3bZc/Ogw8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=WbXVed4fR2a7g2/1ALAfBCqthOU=; b=CVH5fHLLUR2WcjKzbwJVHrZRljKR NbXg3JJTNc9odj+8uF+mXphH3kvdXKaP91ukmInKYG/5STklB3qYsR/gufyfhueU 4PrMT5EHNSu2hlwgfz0I8ZMr2MdJLjFWyJoeEbieujKBFrPJilnrfkL/jqw5ajjP mxU1TUthH7e263g= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Tue, 15 Jul 2014 11:02:59 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Core dump on 32-bit Cygwin if program calls dlopen Message-ID: <20140715090259.GB20640@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <53C46ACD DOT 5060601 AT cornell DOT edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ftEhullJWpWg/VHq" Content-Disposition: inline In-Reply-To: <53C46ACD.5060601@cornell.edu> User-Agent: Mutt/1.5.23 (2014-03-12) --ftEhullJWpWg/VHq Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jul 14 19:42, Ken Brown wrote: > I'm getting a core dump on exit from a program that does nothing but call > dlopen. (But the call to dlopen succeeds.) This happens only in the 32-= bit > case. Here's a simple test case. >=20 > $ cat test_dlopen.c > #include > #include > int > main() > { > const char *dllname =3D "cyggs-9.dll"; > void *handle; > printf ("Trying to dlopen %s...", dllname); > handle =3D dlopen (dllname, RTLD_LAZY); > if (handle) > { > printf ("succeeded.\n"); > return 0; > } > else > { > printf ("failed.\n"); > return 1; > } > } >=20 > $ gcc test_dlopen.c >=20 > $ ./a > Trying to dlopen cyggs-9.dll...succeeded. > Aborted (core dumped) The crash occurs when calling the destructors from do_global_dtors. The crash address points to a crash inside a destructor of libgcc (actually cyggcc_1-1.dll) which has been pulled in by cyggs-9.dll. What destructor in libgcc would that be? And what is it expecting which is apparently missing? Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --ftEhullJWpWg/VHq Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTxO5DAAoJEPU2Bp2uRE+gPBYP/0g/12QylWPDyC36hRXyrXXC VrB0vKjyjqd6oQS87tvhP2ZueSbPBhAs/jaI9vZycIexv3ukbreSxYf1y6uiDK1G 13UOy2mCLbiiBuFDPXLXUO7MZLpfmdIf7jVphXxJR6DkRGiun+KDfrzpf3nQxVTt JAsWARExzaZOb1VTqAOc+uxiUVxHlbtvEKIth4jpkus1LK0Ss2WrQrKL/w/Zo5MB LrTpJdbToQyHkHHPHJh3xE+fOoJq2YoMUPYp92vaevi4FftuVmNU1p71n37380Uk NTmx4KUJrfycj05aeSMWnDsRllb6fdmy7BrrJk+PC9g5p1Ot+JmJMRArQQVpJuad tE6KG1nXdrVmImbaNtEm8VDK24rSUxbQgQ+bY+Lh6OwQU7nLue6u+2wLY6B5E21a Za4Ow5LowXRVB59XXE3ls/8IWOs/JzyQC+hiNe1ToYso7BziLTlBfQ6Nx+PwQ3T7 5gG4WYyyuSfHlJ17u6DkYFEe9SMnNycTxexC5MLQkGQV7snF/pSmTPHW9XbxI3FQ M0X0Pvz3nNor3PkhpsCV2hf/c/r8Y+b3T9wBy5mH9yYNN16tBIilVZuuMewhcAvL uj6li1d6J91jFLLxYcaUGULA9+VDF3UEcaNKAgpknrEnIaf8hYjI5dx7T17knEk7 m0kdEdbGIFcMMvzWuMja =0SX6 -----END PGP SIGNATURE----- --ftEhullJWpWg/VHq--