ARM 32 apk native crash if converted from app bundle via bundletool

171 views
Skip to first unread message

Volodymyr Shalashenko

unread,
Sep 9, 2024, 10:56:36 AMSep 9
to Chromium-dev
I'm working on building Chromium version 115.0.5790.166 based Android browser. I've faced a strange issue with ARM 32 builds. If I build .aab file as required by Play Store using chrome_public_bundle target and then convert to .apk using bundletool (not the one included in Chromium itself) it crashes on startup immediately with the following stack trace:

signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x00000000
crash_dump32                         A  Cause: null pointer dereference
crash_dump32                         A      r0  d6829968  r1  00000000  r2  00000000  r3  dfd3d07c
crash_dump32                         A      r4  d68299e4  r5  00000000  r6  d6829968  r7  dfd1f204
crash_dump32                         A      r8  d6829968  r9  dfd1f224  r10 d682998c  r11 dfd1f210
crash_dump32                         A      ip  dc5aee15  sp  d682994c  lr  dd25b473  pc  ddab8520
crash_dump32                         A  16 total frames
crash_dump32                         A  backtrace:
crash_dump32                         A        #00 pc 0222e520  /data/app/~~iBF_y_l3sY9uhwgN7v-caA==/app.mobile.browser-ZOUTOF5vPPc8q3uE6spDjw==/lib/arm/libchrome.so (BuildId: d014e7ff4293f1b56e012e2a916c2eecf7a352c4)
crash_dump32                         A        #01 pc 019d1471  /data/app/~~iBF_y_l3sY9uhwgN7v-caA==/app.mobile.browser-ZOUTOF5vPPc8q3uE6spDjw==/lib/arm/libchrome.so (BuildId: d014e7ff4293f1b56e012e2a916c2eecf7a352c4)
crash_dump32                         A        #02 pc 019d15d7  /data/app/~~iBF_y_l3sY9uhwgN7v-caA==/app.mobile.browser-ZOUTOF5vPPc8q3uE6spDjw==/lib/arm/libchrome.so (BuildId: d014e7ff4293f1b56e012e2a916c2eecf7a352c4)
crash_dump32                         A        #03 pc 021e98e3  /data/app/~~iBF_y_l3sY9uhwgN7v-caA==/app.mobile.browser-ZOUTOF5vPPc8q3uE6spDjw==/lib/arm/libchrome.so (BuildId: d014e7ff4293f1b56e012e2a916c2eecf7a352c4)
crash_dump32                         A        #04 pc 021ea153  /data/app/~~iBF_y_l3sY9uhwgN7v-caA==/app.mobile.browser-ZOUTOF5vPPc8q3uE6spDjw==/lib/arm/libchrome.so (BuildId: d014e7ff4293f1b56e012e2a916c2eecf7a352c4)
crash_dump32                         A        #05 pc 021f993d  /data/app/~~iBF_y_l3sY9uhwgN7v-caA==/app.mobile.browser-ZOUTOF5vPPc8q3uE6spDjw==/lib/arm/libchrome.so (BuildId: d014e7ff4293f1b56e012e2a916c2eecf7a352c4)
crash_dump32                         A        #06 pc 02205f17  /data/app/~~iBF_y_l3sY9uhwgN7v-caA==/app.mobile.browser-ZOUTOF5vPPc8q3uE6spDjw==/lib/arm/libchrome.so (BuildId: d014e7ff4293f1b56e012e2a916c2eecf7a352c4)
crash_dump32                         A        #07 pc 022062a5  /data/app/~~iBF_y_l3sY9uhwgN7v-caA==/app.mobile.browser-ZOUTOF5vPPc8q3uE6spDjw==/lib/arm/libchrome.so (BuildId: d014e7ff4293f1b56e012e2a916c2eecf7a352c4)
crash_dump32                         A        #08 pc 021d7563  /data/app/~~iBF_y_l3sY9uhwgN7v-caA==/app.mobile.browser-ZOUTOF5vPPc8q3uE6spDjw==/lib/arm/libchrome.so (BuildId: d014e7ff4293f1b56e012e2a916c2eecf7a352c4)
crash_dump32                         A        #09 pc 0220651d  /data/app/~~iBF_y_l3sY9uhwgN7v-caA==/app.mobile.browser-ZOUTOF5vPPc8q3uE6spDjw==/lib/arm/libchrome.so (BuildId: d014e7ff4293f1b56e012e2a916c2eecf7a352c4)
crash_dump32                         A        #10 pc 021eb6a9  /data/app/~~iBF_y_l3sY9uhwgN7v-caA==/app.mobile.browser-ZOUTOF5vPPc8q3uE6spDjw==/lib/arm/libchrome.so (BuildId: d014e7ff4293f1b56e012e2a916c2eecf7a352c4)
crash_dump32                         A        #11 pc 022181ef  /data/app/~~iBF_y_l3sY9uhwgN7v-caA==/app.mobile.browser-ZOUTOF5vPPc8q3uE6spDjw==/lib/arm/libchrome.so (BuildId: d014e7ff4293f1b56e012e2a916c2eecf7a352c4)
crash_dump32                         A        #12 pc 022182b3  /data/app/~~iBF_y_l3sY9uhwgN7v-caA==/app.mobile.browser-ZOUTOF5vPPc8q3uE6spDjw==/lib/arm/libchrome.so (BuildId: d014e7ff4293f1b56e012e2a916c2eecf7a352c4)
crash_dump32                         A        #13 pc 022213ff  /data/app/~~iBF_y_l3sY9uhwgN7v-caA==/app.mobile.browser-ZOUTOF5vPPc8q3uE6spDjw==/lib/arm/libchrome.so (BuildId: d014e7ff4293f1b56e012e2a916c2eecf7a352c4)
crash_dump32                         A        #14 pc 00044303  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+40) (BuildId: b691a106b22a5e76f1456914835c701a)
crash_dump32                         A        #15 pc 0003b463  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: b691a106b22a5e76f1456914835c701a)

arm64 builds don't have such an issue. If I install app bundle directly using out/ReleaseArm/bin/chrome_public_bundle install it works fine. However Play Store claims that the app isn't stable because of this crashes and doesn't let me to release armeabi version of the app.
Reply all
Reply to author
Forward
0 new messages