From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 116309 invoked by alias); 24 Mar 2015 00:02:58 -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 116300 invoked by uid 89); 24 Mar 2015 00:02:58 -0000 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.ipsmtp2nec.opaltelecom.net Received: from out.ipsmtp2nec.opaltelecom.net (HELO out.ipsmtp2nec.opaltelecom.net) (62.24.202.74) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Tue, 24 Mar 2015 00:02:56 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CWAQC8qBBV/7JU0lUNT4NYWsZThSw/BQOBfwEBAQEBAYVQQD0WGAMCAQIBWAgBAYg4rVSbAAsBAQEaBJAzhBcFjkGFfZophBBvAYJCAQEB X-IPAS-Result: A2CWAQC8qBBV/7JU0lUNT4NYWsZThSw/BQOBfwEBAQEBAYVQQD0WGAMCAQIBWAgBAYg4rVSbAAsBAQEaBJAzhBcFjkGFfZophBBvAYJCAQEB Received: from 85-210-84-178.dynamic.dsl.as9105.com (HELO [127.0.0.1]) ([85.210.84.178]) by out.ipsmtp2nec.opaltelecom.net with ESMTP; 24 Mar 2015 00:02:52 +0000 Message-ID: <5510A9AB.7020607@tiscali.co.uk> Date: Tue, 24 Mar 2015 08:07:00 -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@cygwin.com Subject: static vs. shared linking Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00405.txt.bz2 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? 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