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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=eECwI4ETPe5gJmm/zqN0vtzQzSaBswGr7+hxLid5Je3 odcyNWKXrdDsBDk6n0vNN35zWNX68svdYJsSeA2HQpUf+zoxROXalvjZPoXogVLp DO1VPKYVrYyHnPyse/OumjHBai73I0WOdV+x56tsUAb9wDU1qLkZxfIgAAOUQ45g = 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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=zntwba15++S8/NO4f/GArp1JN0c=; b=flKGFtqLdQPQKSTyn n4CKMTT/HdyToJPNL4opU6oywBfc7dYpx1Ej0M+3MTI84nvIOv58PFl5rGHK5bu8 9bInXygd4mKAJYcdD34DURNTQ99ve7Gy0/UZFgfsKRmF138uRUTvihRx6CZvuWhQ 8xiUPGGqZqAZt7rzpK3Vat92c0= 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: Yes, score=5.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_COUK,KAM_FROM_URIBL_PCCC,SPF_PASS autolearn=no version=3.3.2 X-HELO: out.ipsmtp4nec.opaltelecom.net X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CXAQA4RBNV/wVe0lUNT4NVWsUWhSw/BQMCAoInAQEBAQEBhRIBAQQ4QBELGAkWDwkDAgECAUUTCAEBiDivEZsQAQEBAQEFAQEBAQEBAQEWBIshhH0WhBcFjkKFfZoshBBvAYJCAQEB X-IPAS-Result: A2CXAQA4RBNV/wVe0lUNT4NVWsUWhSw/BQMCAoInAQEBAQEBhRIBAQQ4QBELGAkWDwkDAgECAUUTCAEBiDivEZsQAQEBAQEFAQEBAQEBAQEWBIshhH0WhBcFjkKFfZoshBBvAYJCAQEB Message-ID: <5513449A.4010303@tiscali.co.uk> Date: Wed, 25 Mar 2015 23:28:26 +0000 From: David Stacey User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: static vs. shared linking References: <5510A9AB DOT 7020607 AT tiscali DOT co DOT uk> In-Reply-To: <5510A9AB.7020607@tiscali.co.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 24/03/2015 00:02, David Stacey wrote: > I've been having difficulty building poco-1.6.0 for Cygwin for some > time. I've managed to produce a test case that shows the problem: > > https://dl.dropboxusercontent.com/u/119453582/Cygwin/crashtest.tar.xz > > This archive contains source files that produce a very simple library. > When linked statically, the code works fine. However, when linked as a > shared DLL, the test crashes with a core dump. The behaviour is > identical on x86 and x86_64 architectures. As a quick test, I moved all of the inlined code from crash_library.h into the cpp file, as I wanted to rule out some crazy inlining problem. As expected, the shared library version still crashed. Dave. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple