delorie.com/archives/browse.cgi | search |
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=Bg6p9qYpdLhgXQnODgQy8jp+Io4aoY1HWQTTCOPID6magYTWfYfBn | |
UU5Z1qDpjZu+gKzbmbEqTBom3I4zGW1NY3hFZskdk/9zEgogEnpeGfyVRnVIyFDY | |
V73zT187PmB+q4bI70SGI8GQe3m+lM9x+sad813ZuQKEFk2T7N1vDM= | |
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=mvKd5p+dDmfeQixkHSg4UC2pO4o=; b=ZVclgBEYme3ZBjftLub8nr3eHHta | |
gbySjdao8+Bt1KpYetkV/ratwKQQ86IWacxxnu8BFcTvhoUVEQRfGf2kEfmEK6PL | |
W49Zkvk8AaFfQcG4UdIqxj8obScehH9jlt2Ma4uyCvfq89HfwE+h1T40ttJMSV7a | |
IvZiB1K8bvbZ4D4= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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: | Thu, 20 Feb 2014 17:02:55 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Bug with dlopen() and fork() |
Message-ID: | <20140220160255.GB9321@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <CAMzR4E7ngKr5HN=QEZXLUuy0VxGbD_xDN7UaTKPmfbmmD8Bz0A AT mail DOT gmail DOT com> <CAMzR4E6eO=m_s4+js=AA_EGntU=LRj9ZURmUqrwYqdVJ31hQWw AT mail DOT gmail DOT com> <20140220145727 DOT GN2246 AT calimero DOT vinschen DOT de> <20140220153854 DOT GC7958 AT ednor DOT casa DOT cgf DOT cx> |
MIME-Version: | 1.0 |
In-Reply-To: | <20140220153854.GC7958@ednor.casa.cgf.cx> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
--BwCQnh7xodEAoBMC Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 20 10:38, Christopher Faylor wrote: > On Thu, Feb 20, 2014 at 03:57:27PM +0100, Corinna Vinschen wrote: > >On Feb 20 14:16, Jaime Fabregas Fernandez wrote: > >> Hello Corinna, > >>=20 > >> As you've checked, this behaviour doesn't appear with dll's created by > >> gcc, but it does with Visual Studio C++. > >> That minimal example compiled with VS will result in the freeze of the > >> child process. > >>=20 > >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D testlib.h =3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >> #ifdef TESTLIB_EXPORTS > >> #define TEST_API extern "C" __declspec(dllexport) > >> #else > >> #define TEST_API extern "C" __declspec(dllimport) > >> #endif > >>=20 > >> TEST_API int mylib_open (const char *foo); > >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >>=20 > >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D testlib.cpp =3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >> #include "stdafx.h" > >> #include "testLib.h" > >>=20 > >> int > >> mylib_open (const char *foo) > >> { > >> return 1; > >> } > >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >>=20 > >> I've tested several compiler and linker options with same result. > >>=20 > >> Any ideas? > > > >Using MS DLLs across fork in this way is unsupported. If you get it > >working, you're just lucky. >=20 > Too bad. We >just< missed the Thursday window. Indeed. But http://cygwin.com/acronyms/#PTC still applies, if this is possible at all with Visual Studio DLLs, I think. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --BwCQnh7xodEAoBMC Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTBicvAAoJEPU2Bp2uRE+gcTwQAI03sCnwgIiCPeqNXiHvnJ/H CADR2XkKer0226gjYx9ENqMt7Wz49ascoKpy0+rw81YmRQeS0DyEd3+1J37D9h52 gQWKIqlkOA74N5zVnPhBAedKaROp0TWbksk+McAUy4aeee5cGeAU7F1VvozOYlWR GyUAySZzzB3A4taKa7mdK4MPPetfeDXYx4KpmEed1An7y2XKplRbev83idpP7O1Y PtBHfzTV1YcS7TnQtCyR/JKEA24YgyemHDVKA0Z9FdMil2KCIJGN8mZCkHCd5wUG BPt0HTM2tKyZ03k7scufJikDDyEc5M1KB36vRzWB82KlX6c7JEmfQ7KS/K8ee+32 nIxYwdw6wcH7Zh3LHcfNp360xUAHRPglnogXM4HLvO4di2IPcmWjXNzV9URSoOqt 2dQHj197kzbvGkDj4NtC8GptwTuZtRT+gafmZEhCYqRCIIXAFr7vCYqKuzmplLfG xcZWAz1O52UA59nGXvREnY3+L/7rr0B2M737v7QoC+ncKfpbLdR0ICPO2Hy97UDU 0Xe6gPJNQtFUipwPavJtJC6J1RzPRahRUYLzP0GFEbwgrTCTqARZTL20XG2WMxXx M0hP1Nmnl/i4ZFX5gNs/qtd1KlJUGjPBlmFU3GKGW4iQp2ihGyWEhNN28y1qwZpi 2VVWeAlv6STk9dP54Ua/ =dJnQ -----END PGP SIGNATURE----- --BwCQnh7xodEAoBMC--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |