NDK r5 beta1 crashes on Android 1.6

当尝试使用 CrystaX NDK r5b 的静态 libstdc++ 库,并启用 RTTI 和异常处理,在 Android 1.6 设备上安装 .apk 时,应用程序会在加载共享库时崩溃。此问题与 gthread_once() 函数有关。CrystaX NDK r4 版本未出现该问题。

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.

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

 

评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值