9

Segfaults in new libstdc++ on a legacy system

view full story
linux-howto

http://stackoverflow.com – I'm trying to retrofit a current (GCC >= 4.6) toolchain onto a legacy embedded ARM/Linux system based on glibc 2.3.6. I have successfully built the toolchain, but now my test programs are segfaulting in libstdc++, for example: int main() { int* foo = new int[100]; delete [] foo; return 0; } ... segfaults in static initialization of libstdc++: #0 0x40082778 in (anonymous namespace)::__future_category_instance () at /path/to/src/gcc-4.6.4/libstdc++-v3/src/future.cc:64 #1 0x40082bb0 in __static_initialization_and_destruction_0 (__priority=65535, __initialize_p=1) at /pat (HowTos)