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

[BUG] [NDK R25c] multi-thread with asan fatal error in some devices #1849

Closed
DaydreamCoding opened this issue Mar 9, 2023 · 2 comments
Closed
Labels

Comments

@DaydreamCoding
Copy link

DaydreamCoding commented Mar 9, 2023

Description

NDK R25c : multi-thread with asan fatal error in some devices (ARMv9)

known failure devices list :

  • xiaomi 13 T (android 13, api 33), soc : SM7450
  • xiaomi 12 (android 12, api 31), soc : SM8450
  • vivo x90 pro (android 13, api 33), soc : MT6985
  • xiaomi 13 (android 13, api 33), soc : SM8550

repo :

steps:

export ANDROID_NKD=`your r25c ndk path`
./build/android_build_Release.sh  # build
./build/run_android64.sh  # will push NDK R25 libclang_rt.asan-aarch64-android.so to device

when remove this thread error gone : https://github.com/DaydreamCoding/neon-intrinsics-test/blob/feature/ndk_r25_asan/test/image-warpTest.cpp#L15

--------- beginning of crash
10-19 03:55:10.270  5819  5820 F libc    : Fatal signal 4 (SIGILL), code 2 (ILL_ILLOPN), fault addr 0x70cecb4f50 in tid 5820 (test), pid 5819 (test)
10-19 03:55:10.292  5824  5824 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstoneProto
10-19 03:55:10.294  1209  1209 I tombstoned: received crash request for pid 5820
10-19 03:55:10.295  5824  5824 I crash_dump64: performing dump of process 5819 (target tid = 5820)
10-19 03:55:10.315  5824  5824 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-19 03:55:10.315  5824  5824 F DEBUG   : Build fingerprint: 'Xiaomi/fuxi/fuxi:13/TKQ1.220905.001/V14.0.0.22.10.17.TMCCNXM:user/release-keys'
10-19 03:55:10.277   949   949 I logd    : logdr: UID=0 GID=0 PID=5824 n tail=0 logMask=8 pid=5819 start=0ns deadline=0ns
10-19 03:55:10.278   949   949 I logd    : logdr: UID=0 GID=0 PID=5824 n tail=0 logMask=1 pid=5819 start=0ns deadline=0ns
10-19 03:55:10.315  5824  5824 F DEBUG   : Revision: '0'
10-19 03:55:10.315  5824  5824 F DEBUG   : ABI: 'arm64'
10-19 03:55:10.315  5824  5824 F DEBUG   : Timestamp: 2022-10-19 03:55:10.297651372+0800
10-19 03:55:10.315  5824  5824 F DEBUG   : Process uptime: 1s
10-19 03:55:10.315  5824  5824 F DEBUG   : Cmdline: /data/local/tmp/sample/arm64-v8a/test
10-19 03:55:10.315  5824  5824 F DEBUG   : pid: 5819, tid: 5820, name: test  >>> /data/local/tmp/sample/arm64-v8a/test <<<
10-19 03:55:10.315  5824  5824 F DEBUG   : uid: 0
10-19 03:55:10.315  5824  5824 F DEBUG   : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
10-19 03:55:10.315  5824  5824 F DEBUG   : pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY)
10-19 03:55:10.316  5824  5824 F DEBUG   : signal 4 (SIGILL), code 2 (ILL_ILLOPN), fault addr 0x00000070cecb4f50
10-19 03:55:10.316  5824  5824 F DEBUG   :     x0  0000000000000000  x1  0000000000000001  x2  0000000000000000  x3  0000000000000000
10-19 03:55:10.316  5824  5824 F DEBUG   :     x4  0000000000000000  x5  0000000000000000  x6  000000704d7a8dda  x7  7f7f7f7f7f7f7f7f
10-19 03:55:10.316  5824  5824 F DEBUG   :     x8  00000000000000a7  x9  0000000000000010  x10 0000000000000000  x11 00000070d2a43386
10-19 03:55:10.316  5824  5824 F DEBUG   :     x12 0000000000000032  x13 000000704d7a8ad4  x14 0000000000000000  x15 000000000000000a
10-19 03:55:10.316  5824  5824 F DEBUG   :     x16 00000070d2b2a930  x17 00000070cecb4e6c  x18 000000704c324000  x19 000000704d7a8d00
10-19 03:55:10.316  5824  5824 F DEBUG   :     x20 00000070d2d45000  x21 000000704d7a8d00  x22 00000000000016bb  x23 00000000000016bb
10-19 03:55:10.316  5824  5824 F DEBUG   :     x24 000000704d7a8d00  x25 000000704d7a8d00  x26 000000704d7a9008  x27 00000000000fb000
10-19 03:55:10.316  5824  5824 F DEBUG   :     x28 00000000000fd000  x29 000000704d7a8ca0
10-19 03:55:10.316  5824  5824 F DEBUG   :     lr  004d0470d2b18544  sp  000000704d7a8ca0  pc  00000070cecb4f50  pst 0000000020001000
10-19 03:55:10.316  5824  5824 F DEBUG   : backtrace:
10-19 03:55:10.316  5824  5824 F DEBUG   :       #00 pc 0000000000079f50  /data/local/tmp/sample/arm64-v8a/libclang_rt.asan-aarch64-android.so (__interceptor_prctl+228) (BuildId: d39265be9efeee419e565f66dd253078e6302c36)
10-19 03:55:10.316  5824  5824 F DEBUG   :       #01 pc 00000000000f7cfc  [anon:stack_and_tls:5820]

#1848

Affected versions

r25

Canary version

No response

Host OS

Mac

Host OS version

macOS 13.2.1

Affected ABIs

arm64-v8a

Build system

CMake

Other build system

No response

minSdkVersion

29

Device API level

33

@DanAlbert
Copy link
Member

Is this just a duplicate of #1848? I can't see how this is different.

@DanAlbert
Copy link
Member

DanAlbert commented Mar 20, 2023

Duplicate of #1848.

@DanAlbert DanAlbert closed this as not planned Won't fix, can't repro, duplicate, stale Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants