X-Recipient: archive-cygwin@delorie.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=Gj2qcSzvUOMumdbdrKI62hZCPFQn40fJnhAhIVrVPG2
	zaLy1KWvlq4kzdTWMdY/MRQnUVtwmAFNgCk0S+VA0hs77y6X3osOCILBjRLZyvDD
	gTR704efCf2VZk7LkjJeMcerqMbZJia7LIOlvU6Avz9wCgddbMXyffIFIj+wJ/J0
	=
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=ughmjqNqLKMEz+ahXLLXXpHqoyQ=; b=NtHq4kugqniRib0fN
	7e66An3Aymg/Kfv6xhqbgDO+TrwTFQ2ISkWKrp+GKJJyo4LL2j/AJrkJmYARcRkx
	S6S7gct+pZVnVBbC6mI2k6Q4n9Ql9FM2F00FfIr0cBZzOCyhqKQ85LMVWlcwx15n
	kggTQfReQuj8lCrC7Gw7HZz3Jg=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
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
X-SMTPAUTH: drstacey@tiscali.co.uk
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A2CWAQCJzBpV/ytZ0lUNT4dIxguCTQMCAoIPAQEBAQEBhRIBAQQjFUARCxgCAgUWCwICCQMCAQIBRRMIAQG8LHCZEwEBAQcBAQEBHoEhigiEfxaCUoFFBY5TjSGPVoNIhBGDMQEBAQ
X-IPAS-Result: A2CWAQCJzBpV/ytZ0lUNT4dIxguCTQMCAoIPAQEBAQEBhRIBAQQjFUARCxgCAgUWCwICCQMCAQIBRRMIAQG8LHCZEwEBAQcBAQEBHoEhigiEfxaCUoFFBY5TjSGPVoNIhBGDMQEBAQ
Message-ID: <551ACCE2.3000103@tiscali.co.uk>
Date: Tue, 31 Mar 2015 17:35:46 +0100
From: David Stacey <drstacey@tiscali.co.uk>
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

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

