Re: C++ std::string tries to free() a not allocated pointer ?
Re: C++ std::string tries to free() a not allocated pointer ?
- Subject: Re: C++ std::string tries to free() a not allocated pointer ?
- From: Howard Hinnant <email@hidden>
- Date: Thu, 19 Nov 2009 14:06:16 -0500
On Nov 19, 2009, at 1:45 PM, Howard Moon wrote:
>> libstdc++ (the standard c++ library) has a flag called:
>>
>> _GLIBCXX_FULLY_DYNAMIC_STRING
>>
>> The libstdc++ is compiled with this flag *not* defined. This causes a statically allocated default string to be constructed with a reference count that never can go to 0 (and thus get deallocated). It appears that somehow you are compiling with _GLIBCXX_FULLY_DYNAMIC_STRING defined, and I believe that is the cause of your crash.
>
>
> According to a post on svn.macport.org, Snow Leopard is built with that flag *defined*!
>
> <https://svn.macports.org/ticket/22234>
>
> That post references a discussion on gcc.gnu.org:
>
> <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41645>
>
> I'm not sure how to interpret all of that discussion, but it does seem to be a library problem under Snow Leopard.
To the best of my knowledge, Snow Leopard is built with _GLIBCXX_FULLY_DYNAMIC_STRING undefined.
-Howard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden