From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 102589 invoked by alias); 31 Mar 2015 16:36:01 -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 102581 invoked by uid 89); 31 Mar 2015 16:36:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.9 required=5.0 tests=AWL,BAYES_00,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, 31 Mar 2015 16:35:59 +0000 X-SMTPAUTH: drstacey@tiscali.co.uk X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CWAQCJzBpV/ytZ0lUNT4dIxguCTQMCAoIPAQEBAQEBhRIBAQQjFUARCxgCAgUWCwICCQMCAQIBRRMIAQG8LHCZEwEBAQcBAQEBHoEhigiEfxaCUoFFBY5TjSGPVoNIhBGDMQEBAQ X-IPAS-Result: A2CWAQCJzBpV/ytZ0lUNT4dIxguCTQMCAoIPAQEBAQEBhRIBAQQjFUARCxgCAgUWCwICCQMCAQIBRRMIAQG8LHCZEwEBAQcBAQEBHoEhigiEfxaCUoFFBY5TjSGPVoNIhBGDMQEBAQ Received: from 85-210-89-43.dynamic.dsl.as9105.com (HELO [192.168.1.2]) ([85.210.89.43]) by out.ipsmtp2nec.opaltelecom.net with ESMTP; 31 Mar 2015 17:35:54 +0100 Message-ID: <551ACCE2.3000103@tiscali.co.uk> Date: Tue, 31 Mar 2015 18:00:00 -0000 From: David Stacey User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: static vs. shared linking References: <5510A9AB.7020607@tiscali.co.uk> <5511AF73.9070607@tiscali.co.uk> <20150325090453.GB3017@calimero.vinschen.de> <551339E4.60705@tiscali.co.uk> <20150330105529.GJ29875@calimero.vinschen.de> <5519A0E1.6020707@tiscali.co.uk> <20150331090527.GB32403@calimero.vinschen.de> In-Reply-To: <20150331090527.GB32403@calimero.vinschen.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00555.txt.bz2 On 31/03/15 10:05, Corinna Vinschen wrote: > On Mar 30 20:15, David Stacey wrote: >> Back to the matter in hand - I don't suppose you had thoughts on why my >> simple application crashes when linked as shared, but works fine when linked >> statically? > No, sorry. This may be a c++11 thingy which requires "something" in > libstdc++ and Cygwin, but I don't know what that could be. It's > especially weird that free() aborts. This points to some malloc/free > inconsistency, as if the malloc (or new) call used another > implementation of malloc than the aborting free call. It may also > be a memory overflow issue but that would show up on other platforms > as well. Thanks for your reply. Ah well, worth a try. I'm going to keep plugging away at this. My next goal is to produce a C++ example that doesn't require the STL, and after that maybe an example in plain C. Reducing the amount of code and eliminating number dependencies should help us see what's going on more clearly. I'll post back here if and when I make more progress. 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