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

ASAN arm64 pthread_create causes Illegal instruction #1469

Open
olegkhr opened this issue Nov 20, 2021 · 5 comments
Open

ASAN arm64 pthread_create causes Illegal instruction #1469

olegkhr opened this issue Nov 20, 2021 · 5 comments

Comments

@olegkhr
Copy link

olegkhr commented Nov 20, 2021

simple app that spawns child thread using pthread_create. work properly on arm32, but crashes on arm64.

11-19 20:20:30.083 26960 26960 F DEBUG : tagged_addr_ctrl: 0000000000000001
11-19 20:20:30.083 26960 26960 F DEBUG : signal 4 (SIGILL), code 2 (ILL_ILLOPN), fault addr 0x73a9dabf50
11-19 20:20:30.083 26960 26960 F DEBUG : x0 0000000000000000 x1 0000000000000001 x2 0000000000000000 x3 0000000000000000
11-19 20:20:30.083 26960 26960 F DEBUG : x4 0000000000000000 x5 0000000000000000 x6 00000073a6efbd8a x7 7f7f7f7f7f7f7f7f
11-19 20:20:30.083 26960 26960 F DEBUG : x8 00000000000000a7 x9 0000000000000100 x10 0000000000000000 x11 0000000000000000
11-19 20:20:30.083 26960 26960 F DEBUG : x12 00000073aea90be2 x13 0000000100000000 x14 0000000000000000 x15 0000000000000030
11-19 20:20:30.083 26960 26960 F DEBUG : x16 00000073aeb34f50 x17 00000073a9dabe60 x18 00000070b59b4000 x19 00000073a6efbcb0
11-19 20:20:30.083 26960 26960 F DEBUG : x20 00000073aeb38000 x21 00000073a6efbcb0 x22 000000000000694c x23 000000000000694c
11-19 20:20:30.083 26960 26960 F DEBUG : x24 00000073a6efbcb0 x25 00000073a6efbcb0 x26 00000073a6efbff8 x27 00000000000fc000
11-19 20:20:30.083 26960 26960 F DEBUG : x28 00000073a6e03000 x29 00000073a6efbc50
11-19 20:20:30.083 26960 26960 F DEBUG : lr 00637673aeb26fcc sp 00000073a6efbc50 pc 00000073a9dabf50 pst 0000000020001000
11-19 20:20:30.083 26960 26960 F DEBUG : backtrace:
11-19 20:20:30.083 26960 26960 F DEBUG : #00 pc 0000000000076f50 /system/lib64/libclang_rt.asan-aarch64-android.so (__interceptor_prctl+240) (BuildId: 4d2e0942e11a25595288263e6ee8cb7d3e6553f6)
11-19 20:20:30.083 26960 26960 F DEBUG : #1 pc 00000000000f8cac [anon:stack_and_tls:26957]

@xcainiao
Copy link

I have the same problem

@olegkhr
Copy link
Author

olegkhr commented Jan 11, 2022

Apparently ASAN doesn't support pthread on arm64 (only arm32).

@xcainiao
Copy link

ASAN support Android R(arm64). doesn't support Android S(arm64).

@hcz017
Copy link

hcz017 commented May 6, 2022

I have the same problem, have you guys resolve this problem?

@ele7enxxh
Copy link

ASAN works good at pxiel phone with Android S, but crashes on my oppo find x5...

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

4 participants