http://www.crystax.net/trac/ticket/44
This is the same problem with official NDK r5b - when you're trying to use static libstdc++ with RTTI and exceptions, using
APP_STL := gnustl_static
inside Application.mk, and install the resulting .apk on the Android 1.6 device or emulator, it will crash when trying to load shared lib inside
gcc-4.4.3/arm-linux-androideabi/thumb/libstdc++-v3/include/arm-linux-androideabi/bits/gthr-default.h:726,
inside function gthread_once().
The libstdc++ from CrystaX NDK r4 worked without problems.
当尝试使用 CrystaX NDK r5b 的静态 libstdc++ 库,并启用 RTTI 和异常处理,在 Android 1.6 设备上安装 .apk 时,应用程序会在加载共享库时崩溃。此问题与 gthread_once() 函数有关。CrystaX NDK r4 版本未出现该问题。






The problem relates to Android 2.1 as well. Newer versions (2.2 or higher) do not suffer from this issue.