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:content-type:mime-version:subject:from
	:in-reply-to:date:content-transfer-encoding:message-id
	:references:to; q=dns; s=default; b=JY9d83L75X8Mjk3s93hgXTSDxGhm
	uWNgUJoEkFPR/TqudGfU/ccqrfcJpK276hKNBkJVjfTjcPBCrKqkmq30noJIWrtL
	A9GNNrNxHsGGZM/ZgrfaSPbdCNUsen4UAZ7hQOJga7jlNr6n62PXInfI9ZALVnxX
	AKbwzXAXOJFS9ZU=
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:content-type:mime-version:subject:from
	:in-reply-to:date:content-transfer-encoding:message-id
	:references:to; s=default; bh=OnaAPiIsfU1lHKE72uwmwLYZ31o=; b=bw
	TQxbajrWl4WLgI6Zqxz+j4Eg5X5BjLwN/vM032cWlcvF7t9RndBL4r6XOHXBY7tG
	DllNWGwcQa83YkZMSm50LA0ef190x003gxbGjT4DZK0yRoMDw90StESNYEq3vGLK
	6MVj4FIn5XYd47g5htyQG4EAmGG6oQ+CjdyjgrGIY=
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=-1.2 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: etr-usa.com
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
Subject: Re: static vs. shared linking
From: Warren Young <wyml@etr-usa.com>
In-Reply-To: <20150325090453.GB3017@calimero.vinschen.de>
Date: Wed, 25 Mar 2015 10:59:54 -0600
Message-Id: <850E2E37-EA86-448E-9B9F-206C662E14E5@etr-usa.com>
References: <5510A9AB.7020607@tiscali.co.uk> <5511AF73.9070607@tiscali.co.uk> <20150325090453.GB3017@calimero.vinschen.de>
To: cygwin@cygwin.com
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t2PH0Dln002086

On Mar 25, 2015, at 3:04 AM, Corinna Vinschen <corinna-cygwin@cygwin.com> wrote:
> 
> And this is where it comes from.  It's a call to
> 
>  void basic_string<_CharT, _Traits, _Alloc>::reserve(size_type __res)

David, what happens if you say 

    wtext.reserve(1);

inside runTests() before the call to crash()?

If that makes the symptom disappear, I wonder if there’s some problem with a Cygwin *.exe owning a std::string that gets resized by a Cygwin *.dll.  If so, that probably *is* a memory ownership coordination problem that affects Cygwin proper.

I’ve run both versions under valgrind on a Linux box here, and they can find no fault with your code.  On manual inspection, I, too find it to be perfectly cromulent.
--
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


