This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/67865] New: ASAN crashes on thread creation
- From: "dominik dot strasser at onespin-solutions dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 06 Oct 2015 10:56:38 +0000
- Subject: [Bug sanitizer/67865] New: ASAN crashes on thread creation
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67865
Bug ID: 67865
Summary: ASAN crashes on thread creation
Product: gcc
Version: 5.2.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: dominik.strasser@onespin-solutions.com
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org
Target Milestone: ---
In my application, ASAN crashes with the following stack backtrace:
==1926==ERROR: AddressSanitizer: SEGV on unknown address 0x7f4e24fbd010 (pc
0x7f4e40dafc0b bp 0xffffffffffffffd8 sp 0x7f4e259cf1a0 T13)
#0 0x7f4e40dafc0a in __sanitizer::DTLS_on_tls_get_addr(void*, void*)
../../../../gcc-5.2.0/libsanitizer/sanitizer_common/sanitizer_tls_get_addr.cc:85
#1 0x7f4e40d36925 in __interceptor___tls_get_addr
../../../../gcc-5.2.0/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:3873
#2 0x7f4e40db0483 in __lsan::DisabledInThisThread()
../../../../gcc-5.2.0/libsanitizer/lsan/lsan_common.cc:33
#3 0x7f4e40d23004 in Allocate
../../../../gcc-5.2.0/libsanitizer/asan/asan_allocator2.cc:382
#4 0x7f4e40d942fe in __interceptor_realloc
../../../../gcc-5.2.0/libsanitizer/asan/asan_malloc_linux.cc:60
#5 0x3dc3608b3e in pthread_getattr_np (/lib64/libpthread.so.0+0x3dc3608b3e)
#6 0x7f4e40da6fe3 in __sanitizer::GetThreadStackTopAndBottom(bool, unsigned
long*, unsigned long*)
../../../../gcc-5.2.0/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc:109
#7 0x7f4e40da750b in __sanitizer::GetThreadStackAndTls(bool, unsigned
long*, unsigned long*, unsigned long*, unsigned long*)
../../../../gcc-5.2.0/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc:303
#8 0x7f4e40d9dac4 in __asan::AsanThread::SetThreadStackAndTls()
../../../../gcc-5.2.0/libsanitizer/asan/asan_thread.cc:185
#9 0x7f4e40d9dcc1 in __asan::AsanThread::Init()
../../../../gcc-5.2.0/libsanitizer/asan/asan_thread.cc:144
#10 0x7f4e40d9de7e in __asan::AsanThread::ThreadStart(unsigned long)
../../../../gcc-5.2.0/libsanitizer/asan/asan_thread.cc:157
#11 0x3dc36079d0 in start_thread (/lib64/libpthread.so.0+0x3dc36079d0)
#12 0x3dc2ee8b6c in __clone (/lib64/libc.so.6+0x3dc2ee8b6c)
AddressSanitizer can not provide additional info.
Additional information can be provided on request
My executable has been compiled with:
-fsanitize=address -fno-omit-frame-pointer -fstack-protector-all -O3 -g
-D_REENTRANT -lpthread