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=XKHQCm2dJPhj1v5R/Nyu22lDX4zGiy9iryXYIlQ0ZglcHDZPA6geY | |
tAgXTcF+p47PDADOPH+HHHq13e6sAka7qLXodxz8q4rBZZVdI3U9sUy7fO6aZTAw | |
8PJiMWHMOyObzPNaU1W4uu7kohL4L4H5I4db9rR6cz/M6HJKXzJ0mM= | |
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=jD7XH5ApdyFbbmcoEgwuwU2Jqy0=; b=k33ZXW6aAuzyKZx+TB2BiNAXidvj | |
8AtY5slaVHLP4R0d03/ZV2ZJ/yy7c7bMBSGp9uJqn7exx2pI5duuMHE9x35KXSCr | |
shy8fHv3i7lf/7eG6D9uj6zh9g5kHcQMI6mb0YTAf9qtzx3UaCNPmYmEMbU9NGEy | |
PIgClj9eTV64kY0= | |
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 15:57:27 +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: | <20140220145727.GN2246@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> |
MIME-Version: | 1.0 |
In-Reply-To: | <CAMzR4E6eO=m_s4+js=AA_EGntU=LRj9ZURmUqrwYqdVJ31hQWw@mail.gmail.com> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
--dcc91A1uuhZiu/Vt Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --dcc91A1uuhZiu/Vt Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTBhfXAAoJEPU2Bp2uRE+gkuYP/Au/xRZ8QZkxbbFG4FByUJtV j7cjdqIJfzLOdaoEryj7AApggv7d3n6tSsm/JP6daYVmgKghbQifRP2n1AMRUAzk aWrIqxEOkEX3YM3TUq/IxY0fZqO3LIDNB/hefPA9WECaP3jp+DKJEdigwf9oyxS7 54J8xjn06kh0hoYo1KcWgCh47nKX8sbZYCz8v/4TIJ9CSUvn/vgNqljS63mN4j+j 929E5Ti1DB3Mxe88urwEhfSl/51Vyegvn47TET143+kZUncgeINauejiL62Z8zVN sxGgVHJOlEytjS92V0H3tohXbQCoWD73jhEUDAo3ZeF75O3Y4WbgUUiF1uKnvNYx zRY1afvHLHd0Xr9l+s1NezSuAmYWeYY7fdTPpoBOvu5C8OZzUY6rfHY/Yt5IpzNi 8tgVW4cuSOu4Qeu1fM1JNrS8NCNASdEMKak+Zmdth+aIaybOr2j9yTBXYS62Jc2h yGBZvUhc66PX0pSETF4rJYlrcENc8Xx6q8AOf+Mce9IzHTHimGQlcER463BZG4zH tFROR3R+80lxipYC98l3nEsQefI7IzyhIwfIyYj3+QwhmWgCJW48PbW6DehkUbV0 rAsgqwRtFmq3ab9nliTz7u7PPypABYCTYzu01i1+cwgy0oviuBePEut0hBai0bt8 wEchDw+PBW/seHijXrxI =8ids -----END PGP SIGNATURE----- --dcc91A1uuhZiu/Vt--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |