New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
std::basic_string crash #5
Comments
Finally got an answer from some Apple dev. They apparently don't want to fix this issue on their side. They gave me three workarounds :
The last solution is the better but still I don't like it : modifying a part of SFML that work on other OSes to make it work on Mac is not a solution. From this perspective I guess the above workaround with |
Out of curiosity, why would the first option not be feasible? |
Good question. I didn't remember so I did the modification to test. Here is the diff. The problem is, apparently, it creates duplicate symbols with predefined templates. |
I didn't compile SFML from source, and I wanted a different way to size text in any case. The easiest thing for me was to create an sf::Text alternative myself, copying from Text.hpp and Text.cpp and using something other than sf::String. |
but you know that this issue is directly related to the underlying |
Of course it's not nice to keep things around that can possible crash an application, but I wonder whether it's a library's job to implement workarounds for broken STL implementations, especially if it's only for a specific and older version. On the other hand if it's just a simple version check and flag setting in CMake, I don't see a reason not to implement it and reading a bit more (e.g. here) about that flag it seems common practice to do so. The question is of course, whether there's still someone around with that old system setup who can test a possible implemented fix. . 😉 |
Marco plans to drop support for OS X 10.5 and 10.6 in a near future. I guess that will solve this problem. |
Unfortunately, it is still present on 10.7/8 since gcc is still available on those OSes. But I guess implementing the fix as @eXpl0it3r suggested should not harm anyone. |
But GCC has been removed since Xcode 4.2... |
Right! They replaced it with llvm-gcc. So it should be safe to close this issue now without a fix. |
Crash with
malloc: *** error for object 0x...: pointer being freed was not allocated
See http://www.sfml-dev.org/forum-fr/viewtopic.php?p=30752#30752 (french) for more details (and potential solutions).
(Bug reported to Apple on 10 February 2011)
Here is a MCRP as of adca580 :
and the backtrace (OS X 10.7.2, GCC or Clang from Xcode 4.2.1) :
Current workaround :
Add
-D_GLIBCXX_FULLY_DYNAMIC_STRING=1
toCMAKE_CXX_FLAGS
.This solution is not officially implemented because I don't know the potential drawbacks.
The text was updated successfully, but these errors were encountered: