• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C++ std::string tries to free() a not allocated pointer ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: C++ std::string tries to free() a not allocated pointer ? (From: Jean-Denis Muys <email@hidden>)
 >Re: C++ std::string tries to free() a not allocated pointer ? (From: Howard Hinnant <email@hidden>)
 >Re: C++ std::string tries to free() a not allocated pointer ? (From: Howard Moon <email@hidden>)

  • Prev by Date: Re: Perforce typemap
  • Next by Date: Re: setting breakpoints in gdb
  • Previous by thread: Re: C++ std::string tries to free() a not allocated pointer ?
  • Next by thread: Export Instruments instrument?
  • Index(es):
    • Date
    • Thread