On Mar 25, 2015, at 3:04 AM, Corinna Vinschen <corinna-cyg...@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

Reply via email to