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:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=wWFTbhL0t5ziZ7eX
	31m4ywLtd6AN8+aOLhh5dksLTfImnTtlFZuzbqxQBhslCdEPs18kNlkxQS1FAAWC
	yws/GypXCgr73YbkDJQ55JiO5HuXT4EjRuNP2akIvCrkamib6xuT/tVyYkroRXk2
	HrFf5cIjJ7UMrPQDlpB4/iNkSPE=
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:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=Pspg+IShHKovNovzTXTrdU
	gx6LY=; b=SDUvgHvlgxS/xFJFKYP+o++bb+QU9rwX+OZmpHqXMH/GdhPXcb/Lsp
	NU/7y0z5/Dx2dAuGC4T678oekgNLE4IHYSUyt4jSs3C88z+HtrCsNkPMIJt/sDMW
	aWf1poSMhXAA7J/sjVeMcdPaCAmSSAEuMK22s1gSVzO+1xxcp50No=
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=2.4 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2
X-HELO: vms173025pub.verizon.net
X-CMAE-Score: 0
X-CMAE-Analysis: v=2.1 cv=QtXpBu2Y c=1 sm=1 tr=0	a=Z9UJdt/jcW91Hd6r4aN9qw==:117 a=vP6ySPhpAh4A:10 a=N659UExz7-8A:10	a=w_pzkKWiAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=e9J7MTPGsLIA:10	a=mDV3o1hIAAAA:8 a=VoTuB6HezguHrPLwo7QA:9 a=pILNOxqGKmIA:10
Message-id: <5526EFDE.4090901@cygwin.com>
Date: Thu, 09 Apr 2015 17:32:14 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-to: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.3.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> <551ACCE2.3000103@tiscali.co.uk> <5526351D.2000307@tiscali.co.uk>
In-reply-to: <5526351D.2000307@tiscali.co.uk>
Content-type: text/plain; charset=windows-1252; format=flowed
Content-transfer-encoding: 7bit

On 04/09/2015 04:15 AM, David Stacey wrote:

<snip>

> I can't believe that I'm the first person to fall foul of this - any library
> that relies heavily on templates risks falling into the same trap.

<snip>

It's true that someone using STL strings has the potential to see this bug
but I doubt there are allot of template libraries out there pulling the same
memory trick or doing so with the same catastrophic results.  In addition,
this is not the first time this has come up as an issue (for Cygwin or other
platforms) in one form or another.  Here's a good reference:

<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16612>

There they recommend the "--enable-fully-dynamic-string" flag as a solution
for this particular problem but I agree if the "-frepo" will solve this as
well, it's better because it manages templates better overall and aligns
with Linux behavior.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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

