delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/24/14:40:34

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=o5uJ1UM9ro+cJOIldB80zZEcHJVFnpzT2O4OcZ7D4uy
LZedXmeOtkPnMEwy5ncERkDG+TXFkS5cZo5lceG9ybZwj9RSjWz6quFl2GVf/6LF
B4/RK/VkMFtd1JDKZvGnHLwKixvFCTHGAzYMxgpRXqQEJ8OV5znwrusOCdUQWEtA
=
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=tjXUYQEJfawoi6HEJPWeRfBXZOs=; b=R1Aerghg30FcJxptJ
vEcOCGj7a5oduL8ab2LmPkKgSYwAe8k7DEQmCYU3fiRaFLL6WIbezyO+7m/cftlW
LxTrEdmJkhpoWGftUMHJkji9NzMoDHYSvaYNIr1JY8xETetkhY62dDNpTjQ0VV2n
w1uyZMkIGkdFFgOoxa+a3aU3Js=
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: Yes, score=5.2 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.ipsmtp1nec.opaltelecom.net
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A2CXAQASrxFV//5S0lUNT4NYWsZKhSxEAwICggsBAQEBAQGFEgEBBDhAEQsYCRYPCQMCAQIBRRMIAQGIOK4bmwQBAQEBAQUBAQEBAQEBARqLIYR9FoQXBY5ChX2aLIQQbwGCQgEBAQ
X-IPAS-Result: A2CXAQASrxFV//5S0lUNT4NYWsZKhSxEAwICggsBAQEBAQGFEgEBBDhAEQsYCRYPCQMCAQIBRRMIAQGIOK4bmwQBAQEBAQUBAQEBAQEBARqLIYR9FoQXBY5ChX2aLIQQbwGCQgEBAQ
Message-ID: <5511AF73.9070607@tiscali.co.uk>
Date: Tue, 24 Mar 2015 18:39:47 +0000
From: David Stacey <drstacey AT tiscali DOT co DOT uk>
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>
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.
>
> Have I made a stupid error in the compilation of the shared case, or is
> something more interesting going on?

I don't know if anyone has managed to look at this. I haven't had a 
deluge of e-mails telling me that I've done something silly (which is a 
shame, because then I could fix it quickly and move on). For the sake of 
a straw to clutch at, I tried compiling with clang++ rather than g++, 
and got the same result:

     $ ./go.sh
     Running test (static link)...
     Done.

     Running test (shared link)...
     ./go.sh: line 19:  3744 Aborted                 (core dumped) 
./shared_test
     Done.

Any help or hints would be greatly appreciated.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019