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

A CHECK failed in libsanitizer/sanitizer_common/sanitizer_allocator_local_cache.h #1659

Open
feanis opened this issue Jun 8, 2023 · 2 comments

Comments

@feanis
Copy link

feanis commented Jun 8, 2023

Following check is getting failed on gcc-9.3.0/libasan.so.5,

==XXXXXXXX==13587==AddressSanitizer CHECK failed: ../../../../../../../../../work-shared/gcc-9.3.0-r0/gcc-9.3.0/libsanitizer/sanitizer_common/sanitizer_allocator_local_cache.h:160 "((class_id)) < ((kNumClasses))" (0x64657a696c616974, 0x36)
#0 0x7f9ba5d380 (/PPP/XXXX/YY/lib/libasan.so.5+0xf7380)
#1 0x7f9ba78af4 (/PPP/XXXX/YY/lib/libasan.so.5+0x112af4)
#2 0x7f9b99372c (/PPP/XXXX/YY/lib/libasan.so.5+0x2d72c)
#3 0x7f9b990968 (/PPP/XXXX/YY/lib/libasan.so.5+0x2a968)
#4 0x7f9ba62128 (/PPP/XXXX/YY/libasan.so.5+0xfc128)
#5 0x7f9ad7827c (/lib/libpthread.so.0+0x827c)
#6 0x7f9ad7840c (/lib/libpthread.so.0+0x840c)
#7 0x7f9aad08f8 (/lib/libc.so.6+0xcf8f8)

please help me to address the above issue.

@feanis feanis changed the title CHECK failed in libsanitizer/sanitizer_common/sanitizer_allocator_local_cache.h A CHECK failed in libsanitizer/sanitizer_common/sanitizer_allocator_local_cache.h Jun 8, 2023
@feanis
Copy link
Author

feanis commented Jun 26, 2023

Hi Folks,

This ticket is not assigned to anyone yet. Is anything pending from my side?

Thanks,
Feanis

@Enna1
Copy link

Enna1 commented Jun 26, 2023

CHECK failed indicates encountering an sanitizer internal assertion failure.
For your case, 0x64657a696c616974 looks like an ascii string "tialized", I suspect the way you use asan is not right.
Can you provide more information?
How do you enable asan?
Can you provide a minimal reproducer?
Did you try clang?

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