| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT 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 |
| Mime-Version: | 1.0 (Mac OS X Mail 8.2 \(2070.6\)) |
| Subject: | Re: static vs. shared linking |
| From: | Warren Young <wyml AT etr-usa DOT 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 DOT 7020607 AT tiscali DOT co DOT uk> <5511AF73 DOT 9070607 AT tiscali DOT co DOT uk> <20150325090453 DOT GB3017 AT calimero DOT vinschen DOT de> |
| To: | cygwin AT cygwin DOT com |
| X-IsSubscribed: | yes |
| 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 AT cygwin DOT 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |