After upgrading system to Nothing OS 3.0, if any program use /system/lib64/libclang_rt.asan-aarch64-android.so, it might crash.
Here’s a simple example:
Program received signal SIGILL, Illegal instruction.
0x0000007ff2f17dd4 in memset ()
from /system/lib64/libclang_rt.asan-aarch64-android.so
(gdb) up
#1 0x0000007ff2cb0bf4 in WriteProtected<libc_globals>::initialize() ()
from /apex/com.android.runtime/lib64/bionic/libc.so
(gdb) where
#0 0x0000007ff2f17dd4 in memset ()
from /system/lib64/libclang_rt.asan-aarch64-android.so
#1 0x0000007ff2cb0bf4 in WriteProtected<libc_globals>::initialize() ()
from /apex/com.android.runtime/lib64/bionic/libc.so
#2 0x0000007ff2cb0b38 [PAC] in __libc_init_globals() ()
from /apex/com.android.runtime/lib64/bionic/libc.so
#3 0x0000007ff2c9e15c [PAC] in __libc_preinit_impl() ()
from /apex/com.android.runtime/lib64/bionic/libc.so
#4 0x0000007ff7f695ec [PAC] in __dl__ZN6soinfo17call_constructorsEv () from /system/bin/linker64
#5 0x0000007ff7f69418 [PAC] in __dl__ZN6soinfo17call_constructorsEv () from /system/bin/linker64
#6 0x0000007ff7f69418 [PAC] in __dl__ZN6soinfo17call_constructorsEv () from /system/bin/linker64
#7 0x0000007ff7fd8030 [PAC] in __dl__ZL29__linker_init_post_relocationR19KernelArgumentBlockR6soinfo ()
from /system/bin/linker64
#8 0x0000007ff7fd6e3c [PAC] in __dl___linker_init
() from /system/bin/linker64
#9 0x0000007ff7ecf00c [PAC] in __dl__start ()
from /system/bin/linker64
(gdb)