This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Reproducible, simple bug; g++ toolchain / std::string bug?
- From: Igor Peshansky <pechtcha at cs dot nyu dot edu>
- To: Steven Brown <swbrown at ucsd dot edu>
- Cc: cygwin at cygwin dot com
- Date: Fri, 7 Apr 2006 21:42:57 -0400 (EDT)
- Subject: Re: Reproducible, simple bug; g++ toolchain / std::string bug?
- References: <e170di$ut0$1@sea.gmane.org>
- Reply-to: cygwin at cygwin dot com
On Fri, 7 Apr 2006, Steven Brown wrote:
I've run into what appears to be a bug in the g++ toolchain or the STL's
std::string using the latest Cygwin dist (up to date as of right now).
Minimal test case attached.
If my shared library does a callback to a function returning
std::string, and only if the std::string is empty, I get an abort when
that std::string is destroyed.
The attached files will show this bug - run make and the xxx-cygwin.exe
that's produced and it will abort. The same will happen if you use
libtool to build it the right way - the autoconf/ dir in the bug's
repository[1] can be used for that if you want to see it (copy it into
the main dir, ./autogen.sh && make).
Any ideas as to where the problem lies or how to further identify it?
Sure. This has been discussed on this list a few times this year -- see
the list archives. A Google search for "cygwin dll std:string" should
show some mathces (including a reference to the GCC bug report[*] for
this, which, AFAICS, contains a patch that you can test).
Igor
[*] <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24196>
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/