Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boot loop after asan_device_setup on Android 6.0.1 #923

Open
adubovkin opened this issue Mar 8, 2018 · 1 comment
Open

Boot loop after asan_device_setup on Android 6.0.1 #923

adubovkin opened this issue Mar 8, 2018 · 1 comment

Comments

@adubovkin
Copy link

adubovkin commented Mar 8, 2018

It looks like Zygote keeps failing to start:

03-07 17:51:29.083 284 284 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-07 17:51:29.083 284 284 F DEBUG : Build fingerprint: 'google/hammerhead/hammerhead:6.0.1/M4B30Z/3437181:user/release-keys'
03-07 17:51:29.083 284 284 F DEBUG : Revision: '11'
03-07 17:51:29.083 284 284 F DEBUG : ABI: 'arm'
03-07 17:51:29.083 284 284 F DEBUG : pid: 4512, tid: 4515, name: main >>> zygote <<<
03-07 17:51:29.084 284 284 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
03-07 17:51:29.123 284 284 F DEBUG : Abort message: 'art/runtime/gc/space/malloc_space.cc:140] mprotect failed for main rosalloc space'
03-07 17:51:29.124 284 284 F DEBUG : r0 00000000 r1 000011a3 r2 00000006 r3 8f509978
03-07 17:51:29.124 284 284 F DEBUG : r4 8f509980 r5 8f509930 r6 0000000d r7 0000010c
03-07 17:51:29.124 284 284 F DEBUG : r8 b0aff800 r9 b0afde44 sl b2308a3b fp b0ae3450
03-07 17:51:29.124 284 284 F DEBUG : ip 00000006 sp 8f509280 lr b6842b61 pc b6844f50 cpsr 400b0010
03-07 17:51:29.156 284 284 F DEBUG :
03-07 17:51:29.156 284 284 F DEBUG : backtrace:
03-07 17:51:29.156 284 284 F DEBUG : #00 pc 00041f50 /system/lib/libc.so (tgkill+12)
03-07 17:51:29.156 284 284 F DEBUG : #1 pc 0003fb5d /system/lib/libc.so (pthread_kill+32)
03-07 17:51:29.156 284 284 F DEBUG : #2 pc 0001c30f /system/lib/libc.so (raise+10)
03-07 17:51:29.156 284 284 F DEBUG : #3 pc 000194c1 /system/lib/libc.so (__libc_android_abort+34)
03-07 17:51:29.156 284 284 F DEBUG : #4 pc 000174ac /system/lib/libc.so (abort+4)
03-07 17:51:29.156 284 284 F DEBUG : #5 pc 00333971 /system/lib/libart.so (_ZN3art7Runtime5AbortEv+228)
03-07 17:51:29.156 284 284 F DEBUG : #6 pc 000f45fb /system/lib/libart.so (_ZN3art10LogMessageD2Ev+2226)
03-07 17:51:29.156 284 284 F DEBUG : #7 pc 000f08d1 /system/lib/libart.so (_ZN3art7BarrierD2Ev+216)
03-07 17:51:29.156 284 284 F DEBUG : #8 pc 0035b473 /system/lib/libart.so (_ZN3art10ThreadList4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+162)
03-07 17:51:29.156 284 284 F DEBUG : #9 pc 00333a35 /system/lib/libart.so (_ZN3art7Runtime5AbortEv+424)
03-07 17:51:29.156 284 284 F DEBUG : #10 pc 000f45fb /system/lib/libart.so (_ZN3art10LogMessageD2Ev+2226)
03-07 17:51:29.156 284 284 F DEBUG : #11 pc 001d1f17 /system/lib/libart.so (_ZN3art2gc5space11MallocSpace8MoreCoreEi+286)
03-07 17:51:29.156 284 284 F DEBUG : #12 pc 0018060f /system/lib/libart.so (_ZN3art2gc9allocator8RosAlloc9RefillRunEPNS_6ThreadEj+258)
03-07 17:51:29.156 284 284 F DEBUG : #13 pc 00180adf /system/lib/libart.so (ZN3art2gc9allocator8RosAlloc12AllocFromRunEPNS_6ThreadEjPjS5_S5+518)
03-07 17:51:29.156 284 284 F DEBUG : #14 pc 00126ec9 /system/lib/libart.so (_ZN3art6mirror5Class11AllocObjectEPNS_6ThreadE+1124)
03-07 17:51:29.157 284 284 F DEBUG : #15 pc 0029d91d /system/lib/libart.so (_ZN3art3JNI11AllocObjectEP7_JNIEnvP7_jclass+368)
03-07 17:51:29.157 284 284 F DEBUG : #16 pc 0035393f /system/lib/libart.so (_ZN3art6Thread10CreatePeerEPKcbP8_jobject+142)
03-07 17:51:29.157 284 284 F DEBUG : #17 pc 00354595 /system/lib/libart.so (_ZN3art6Thread6AttachEPKcbP8_jobjectb+532)
03-07 17:51:29.157 284 284 F DEBUG : #18 pc 0032f5bf /system/lib/libart.so (_ZN3art7Runtime19AttachCurrentThreadEPKcbP8_jobjectb+14)
03-07 17:51:29.157 284 284 F DEBUG : #19 pc 0033b7fb /system/lib/libart.so (_ZN3art13SignalCatcher3RunEPv+78)
03-07 17:51:29.157 284 284 F DEBUG : #20 pc 0003f45f /system/lib/libc.so (_ZL15__pthread_startPv+30)
03-07 17:51:29.157 284 284 F DEBUG : #21 pc 00019b43 /system/lib/libc.so (__start_thread+6)

@eugenis
Copy link
Contributor

eugenis commented Mar 13, 2018

I've never seen this exact error message, but it is probably connected to ASan shadow mapping and its conflicts with Art mappings. Could you try a newer version of ASan and/or figure why did the mprotect fail and what's up with the address space around that address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants