Crash in std::basic_string
Crash in std::basic_string
- Subject: Crash in std::basic_string
- From: Sascha Kratky <email@hidden>
- Date: Wed, 11 Jan 2006 20:02:33 +0100
Hi,
I am porting a C++ command line tool from Linux to OS X 10.4.3 ppc
using gcc 4.0.1. The program compiles and links without problems.
Upon running the program I get a crash when the static constructors
are run in std::basic_string before the main function is called.
Here's the relevant section from the crash dump:
Thread 0 Crashed:
0 libstdc++.6.dylib 0x946ebed4 std::basic_string<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string[in-
charge](std::basic_string<wchar_t, std::char_traits<wchar_t>,
std::allocator<wchar_t> > const&) + 36
1 mlf 0x000f758c
_static_initialization_and_destruction_0(int, int) + 156 (crt.c:355)
2 mlf 0x000f7858
_GLOBAL__I__ZN12TFuzzySetVarIffE13xcloneContextE + 36 (crt.c:355)
3 dyld 0x8fe15984 ImageLoaderMachO::doInitialization
(ImageLoader::LinkContext const&) + 820
4 dyld 0x8fe0bca4 ImageLoader::recursiveInitialization
(ImageLoader::LinkContext const&) + 212
5 dyld 0x8fe0d900 ImageLoader::runInitializers
(ImageLoader::LinkContext const&) + 92
6 dyld 0x8fe030a0 dyld::initializeMainExecutable() + 92
7 mlf 0x00002480 _call_mod_init_funcs + 52 (crt.c:305)
8 mlf 0x00002274 _start + 156 (crt.c:226)
9 mlf 0x000021d4 start + 60
Has anyone experienced a similar problem and managed to find a work-
around?
Thanks,
Sascha
_______________________________________________
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