This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: static vs. shared linking
- From: Warren Young <wyml at etr-usa dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 25 Mar 2015 10:59:54 -0600
- Subject: Re: static vs. shared linking
- Authentication-results: sourceware.org; auth=none
- 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>
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