Project

General

Profile

Actions

Bug #1455

closed

Python 3.5 does not initialize on release builds

Added by João V. almost 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
python
Target version:
Start date:
07/27/2016
Due date:
% Done:

100%

Estimated time:
CPU Architecture:
arm64
Host OS:
OS X
Toolchain:
Android version:
6.0 (android-23)
CrystaX NDK Version:

Description

The python3.5 distribution from crystax ndk works fine in debug mode but fails in release mode. The crash happens when I call Py_Initialize() after I correctly set the location of the stdlib.zip file with Py_SetPath().

Here's the logcat for the event:
07-22 22:18:50.248 24633-24633/? I/pybridge: Initializing the Python interpreter
07-22 22:18:50.275 24633-24633/? A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 24633 (latangle.charts)
07-22 22:18:50.378 2793-2793/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-22 22:18:50.378 2793-2793/? A/DEBUG: Build fingerprint: 'motorola/titan_retaildsds/titan_umtsds:6.0/MPB24.65-34/31:user/release-keys'
07-22 22:18:50.378 2793-2793/? A/DEBUG: Revision: 'p400'
07-22 22:18:50.378 2793-2793/? A/DEBUG: ABI: 'arm'
07-22 22:18:50.378 2793-2793/? A/DEBUG: pid: 24633, tid: 24633, name: latangle.charts >>> com.flatangle.charts <<<
07-22 22:18:50.378 2793-2793/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
07-22 22:18:50.401 2793-2793/? A/DEBUG: r0 00000000 r1 00006039 r2 00000006 r3 b6feeb7c
07-22 22:18:50.401 2793-2793/? A/DEBUG: r4 b6feeb84 r5 b6feeb34 r6 0000000d r7 0000010c
07-22 22:18:50.401 2793-2793/? A/DEBUG: r8 b6d96e50 r9 ffffffff sl be92a4ac fp a4026b3c
07-22 22:18:50.401 2793-2793/? A/DEBUG: ip 00000006 sp be92a458 lr b6d74d89 pc b6d76cc0 cpsr 40070010
07-22 22:18:50.408 2793-2793/? A/DEBUG: backtrace:
07-22 22:18:50.408 2793-2793/? A/DEBUG: #00 pc 00043cc0 /system/lib/libc.so (tgkill+12)
07-22 22:18:50.408 2793-2793/? A/DEBUG: #01 pc 00041d85 /system/lib/libc.so (pthread_kill+32)
07-22 22:18:50.408 2793-2793/? A/DEBUG: #02 pc 0001b8e7 /system/lib/libc.so (raise+10)
07-22 22:18:50.408 2793-2793/? A/DEBUG: #03 pc 0001c683 /data/app/com.flatangle.charts-2/lib/arm/libcrystax.so (abort+26)

I've made a minimal example at https://github.com/joaoventura/pyapp that shows the failing behavior.

Actions

Also available in: Atom PDF