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

seccomp prevented call to disallowed x86_64 system call 0 #1131

Open
sarora5 opened this issue Aug 13, 2019 · 0 comments
Open

seccomp prevented call to disallowed x86_64 system call 0 #1131

sarora5 opened this issue Aug 13, 2019 · 0 comments

Comments

@sarora5
Copy link

sarora5 commented Aug 13, 2019

I am getting SIGSYS crash on x86_64 build with ASAN
NDK : 17
Clang 7 compiler

8-13 19:59:01.254 +0000 3952 3952 I wrap.sh : + os_version=27 │
08-13 19:59:01.254 +0000 3952 3952 I wrap.sh : + '[' 27 -eq 27 ']' │
08-13 19:59:01.254 +0000 3952 3952 I wrap.sh : + cmd='/system/bin/app_process64 -Xrunjdwp:transport=dt_android_adb,suspend=n,server=y -Xcompiler-option --debuggable' │
08-13 19:59:01.255 +0000 3952 3952 I wrap.sh : + dirname '/data/app/-YzofKukHclDljeqpZmT5sw==/lib/x86_64/wrap.sh' │
08-13 19:59:01.264 +0000 3952 3952 I wrap.sh : + cd '/data/app/-YzofKukHclDljeqpZmT5sw==/lib/x86_64' │
08-13 19:59:01.264 +0000 3952 3952 I wrap.sh : + pwd │
08-13 19:59:01.264 +0000 3952 3952 I wrap.sh : + HERE='/data/app/-YzofKukHclDljeqpZmT5sw==/lib/x86_64' │
08-13 19:59:01.264 +0000 3952 3952 I wrap.sh : + export 'ASAN_OPTIONS=abort_on_error=true,log_to_syslog=false,allow_user_segv_handler=1,fast_unwind_on_fatal=1' │
08-13 19:59:01.264 +0000 3952 3952 I wrap.sh : + export 'ASAN_OPTIONS=abort_on_error=true,log_to_syslog=false,allow_user_segv_handler=1,fast_unwind_on_fatal=1:verbosity=1:debug=1' │
08-13 19:59:01.264 +0000 3952 3952 I wrap.sh : + export 'LD_PRELOAD=/data/app/i-YzofKukHclDljeqpZmT5sw==/lib/x86_64/libclang_rt.asan-x86_64-android.so /data/app/-YzofKukHclDljeqpZmT5sw==/lib/x86_64/libc++_shared.so' │
08-13 19:59:01.264 +0000 3952 3952 I wrap.sh : + /system/bin/app_process64 '-Xrunjdwp:transport=dt_android_adb,suspend=n,server=y' -Xcompiler-option --debuggable /system/bin --application '--nice-name=' com.android.internal.os.WrapperInit 4 28 android.app.A│
08-13 19:59:01.459 +0000 3953 3953 F libc : Fatal signal 31 (SIGSYS), code 1 in tid 3953 (app_process64), pid 3953 (app_process64) │
08-13 19:59:01.469 +0000 3959 3959 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone │
08-13 19:59:01.470 +0000 1525 1525 I /system/bin/tombstoned: received crash request for pid 3953 │
08-13 19:59:01.470 +0000 3959 3959 I crash_dump64: performing dump of process 3953 (target tid = 3953) │
08-13 19:59:01.470 +0000 3959 3959 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** │
08-13 19:59:01.470 +0000 3959 3959 F DEBUG : Build fingerprint: 'Android/sdk_phone_x86_64/generic_x86_64:8.1.0/OSM1.180201.023/4931629:userdebug/test-keys' │
08-13 19:59:01.470 +0000 3959 3959 F DEBUG : Revision: '0' │
08-13 19:59:01.470 +0000 3959 3959 F DEBUG : ABI: 'x86_64' │
08-13 19:59:01.470 +0000 3959 3959 F DEBUG : pid: 3953, tid: 3953, name: app_process64 >>> /system/bin/app_process64 <<< │
08-13 19:59:01.470 +0000 3959 3959 F DEBUG : signal 31 (SIGSYS), code 1 (SYS_SECCOMP), fault addr -------- │
08-13 19:59:01.470 +0000 3959 3959 F DEBUG : Cause: seccomp prevented call to disallowed x86_64 system call 0
08-13 19:59:01.470 +0000 3959 3959 F DEBUG : rax 0000000000000059 rbx 00007db3c5152540 rcx ffffffffffffffff rdx 0000000000001000 │
08-13 19:59:01.470 +0000 3959 3959 F DEBUG : rsi 00007db3c5152540 rdi 00007db3c5097434 │
08-13 19:59:01.470 +0000 3959 3959 F DEBUG : r8 00007db3c25779c0 r9 0000000000000000 r10 0000000080000000 r11 0000000000000246 │
08-13 19:59:01.470 +0000 3959 3959 F DEBUG : r12 00007db3c7a41394 r13 00007db3c2537e90 r14 0000000000001000 r15 00007db3c7a44134 │
08-13 19:59:01.470 +0000 3959 3959 F DEBUG : cs 0000000000000033 ss 000000000000002b │
08-13 19:59:01.470 +0000 3959 3959 F DEBUG : rip 00007db3c4fff2ce rbp 0000000000000001 rsp 00007fffe6264ce0 eflags 0000000000000246 │
08-13 19:59:01.472 +0000 3959 3959 F DEBUG : │
08-13 19:59:01.472 +0000 3959 3959 F DEBUG : backtrace: │
08-13 19:59:01.472 +0000 3959 3959 F DEBUG : #00 pc 00000000000282ce /data/app/-YzofKukHclDljeqpZmT5sw==/lib/x86_64/libclang_rt.asan-x86_64-android.so (__sanitizer::ReadBinaryName(char*, unsigned long)+30) │
08-13 19:59:01.472 +0000 3959 3959 F DEBUG : #1 pc 000000000002045e /data/app/YzofKukHclDljeqpZmT5sw==/lib/x86_64/libclang_rt.asan-x86_64-android.so (__sanitizer::CacheBinaryName()+30) │
08-13 19:59:01.472 +0000 3959 3959 F DEBUG : #2 pc 00000000000b02d6 /data/app/com.YzofKukHclDljeqpZmT5sw==/lib/x86_64/libclang_rt.asan-x86_64-android.so (__asan::AsanInitInternal()+70) │
08-13 19:59:01.472 +0000 3959 3959 F DEBUG : #3 pc 0000000000075c9a /data/app/comYzofKukHclDljeqpZmT5sw==/lib/x86_64/libclang_rt.asan-x86_64-android.so (__interceptor_pthread_mutex_lock+42) │
08-13 19:59:01.472 +0000 3959 3959 F DEBUG : #4 pc 00000000000aaeeb /system/lib64/libc.so (jemalloc_constructor+91) │
08-13 19:59:01.472 +0000 3959 3959 F DEBUG : #5 pc 0000000000027a9f /system/bin/linker64 (_dl__ZL10call_arrayIPFviPPcS1_EEvPKcPT_mbS5+255) │
08-13 19:59:01.472 +0000 3959 3959 F DEBUG : #6 pc 0000000000027ce9 /system/bin/linker64 (__dl__ZN6soinfo17call_constructorsEv+441) │
08-13 19:59:01.472 +0000 3959 3959 F DEBUG : #7 pc 0000000000027bc8 /system/bin/linker64 (__dl__ZN6soinfo17call_constructorsEv+152) │
08-13 19:59:01.472 +0000 3959 3959 F DEBUG : #8 pc 0000000000027bc8 /system/bin/linker64 (__dl__ZN6soinfo17call_constructorsEv+152) │
08-13 19:59:01.472 +0000 3959 3959 F DEBUG : #9 pc 00000000000237e0 /system/bin/linker64 (__dl___linker_init+3712) │
08-13 19:59:01.472 +0000 3959 3959 F DEBUG : #10 pc 000000000002a5e7 /system/bin/linker64 (_start+7) │
08-13 19:59:01.472 +0000 3959 3959 F DEBUG : #11 pc 000000000000000a

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

1 participant