From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12300 invoked by alias); 24 Jul 2014 13:45:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 12262 invoked by uid 89); 24 Jul 2014 13:45:19 -0000 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 Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 24 Jul 2014 13:45:18 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 1869C8E1528; Thu, 24 Jul 2014 15:45:16 +0200 (CEST) Date: Thu, 24 Jul 2014 13:45:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Cc: DJ Delorie , Kai Tietz Subject: Re: Core dump on 32-bit Cygwin if program calls dlopen Message-ID: <20140724134516.GC12212@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com, DJ Delorie , Kai Tietz References: <20140715143915.GA8330@calimero.vinschen.de> <20140716070231.GA25020@calimero.vinschen.de> <53C6F68A.9000801@gmail.com> <20140717073734.GA15332@calimero.vinschen.de> <53C7EC48.5060903@dronecode.org.uk> <20140717182429.GS15332@calimero.vinschen.de> <20140722082711.GA22860@calimero.vinschen.de> <53CE604D.1070309@dronecode.org.uk> <20140722132001.GD27005@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7ZAtKRhVyVSsbBD2" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2014-07/txt/msg00295.txt.bz2 --7ZAtKRhVyVSsbBD2 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2546 On Jul 24 15:08, Kai Tietz wrote: > 2014-07-22 15:20 GMT+02:00 Corinna Vinschen wrote: > > On Jul 22 13:59, Jon TURNEY wrote: > >> On 22/07/2014 09:27, Corinna Vinschen wrote: > >> >On Jul 17 20:24, Corinna Vinschen wrote: > >> >>On Jul 17 16:31, Jon TURNEY wrote: > >> >>>On 17/07/2014 08:37, Corinna Vinschen wrote: > >> >>>>It's the libgcc DLL which gives us grief, so a new libgcc package = is > >> >>>>sufficent, afaics. We should check if this DLL fixes the problem = and > >> >>>>then make it "curr" soon, I think. > >> >>> > >> >>>I briefly tested this other patch with my test case from the mail a= bove, and > >> >>>it doesn't seem to help. > >> >>>[...] > >> >>I asked DJ to take another look, but I guess ultimately we need the > >> >>attention of one of the GCC Windows maintainers. Kai Tietz seems to= be > >> >>unavailable right now, unfortunately. > >> > > >> >Looks like I totally misunderstood DJ's patch. The patch does *not* > >> >change libgcc, it changes cygmin-crtbegin.c, thus the crtbegin.o file > >> >which is statically linked into the executable. > >> > > >> >That means, to fix the issue, you don't have to replace libgcc, you > >> >have to recompile the executable against the new crtbegin.o. > >> > > >> >DJ still claims his patch is the correct one. The simple testcase > >> >dlopen'ing cyggs-9.dll works fine with the new crtbegin.o, according = to > >> >him. > >> > >> Sorry, I hadn't tested it correctly. > > > > No worries, this was my fault. Talking about building a new libgcc > > rather than building a new crtbegin.o was bound to lead everyone > > off track :| > > > >> Building my test with an updated crtbegin.o as well, my test case is f= ixed. > > > > Nice! > > > >> I agree this patch seems better than my suggested one, as it makes crt= begin > >> do the right thing in the face of unbalanced libgcc load/unload, rathe= r than > >> attempting to balance the libgcc load/unload as mine does. > > > > Ok. I CC'ed DJ so he knows all is good, and then we probably need a > > windows GCC maintainer to approve the patch I guess. Kai? Ping? > > >=20 > Hi Corinna >=20 > As I we spoke yesterday on irc, I took already a look to DJ's patch > and it is sensible. If DJ sends patch upstream to gcc's ML, and put > me CC, I will review it asap. Thanks a lot! JonY, any chance we could get a gcc package with the new crtbegin.o soon? Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --7ZAtKRhVyVSsbBD2 Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJT0Q3rAAoJEPU2Bp2uRE+gPGQP/RLolcSQiooSmyYEGk/pR8wk TrlOx9ldkDHGDCF6U3OKxWflV5oFh9KvSLpPF32ZDpmhGV6JPwqS5a9K8PO766Ci snE/5OsomEKcADcnxN6XTOZW9CVNsbnizxVSVtaTR96xMozIm/42Dku7zSt70bi9 Ikwa2kyH+Wje4069Pa6D4xkiCnsa1/vrobf3a2ksNYBv0WSjTw1hZyMbzvAaZnGl 6K+31Fd7D0FBFlXGS7P+5iZUE0Rsb5Y4fCnmZW2gmTyoONWSSlellaBtI9PDAzrz 69axV+e0HDNBYJB7edvya/SdqCV0qDXvMg0TWeeT2FFGT/s54zpN/d9vQxQNbv1e xxeD48oxTDbqCh9s+pf3Oc90vpqlHj/6lXOWcU7o9R6Gj9DAvRCBLq21jvjbxf35 WRttOo+1m7Qx15byfVD0zCKM7XtStM+y+ToPZ0LSRJPRxr7tOvygCCj3QfyNl0a3 gqhrYmoHCY0PQLah+YYysrKMi07NL5yMLjdIsWWacq/czukqZ/5wS6y006bnYEH4 mEsfbpwuGbnBzy5DenWrbA/bImolMhem9ooGNRYHqzT3GPLfSHZQ0jALMfkqnpre knKO1zX/ShUmKZBPXekMk2mB36JNt2uSoGYwaiOujPt7h9gE54ViwEfEPZduxe8j UmKL21fdrpAxWsRZK38i =gLn2 -----END PGP SIGNATURE----- --7ZAtKRhVyVSsbBD2--