canistation / address-sanitizer

Automatically exported from code.google.com/p/address-sanitizer
0 stars 0 forks source link

segfault when creating more than 256 threads #312

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using clang 3.4 and asan, it systematically crashes after creating slightly 
more than 256 threads.

Attached program compiled with:
clang -O1 -g -fsanitize=address -fno-omit-frame-pointer test.c

(gdb) bt
#0  0x000000000000256f in ?? ()
#1  0x000000000047fc9c in SetStarted () at 
/srv/tools-src/llvm_3.4/projects/compiler-rt/lib/sanitizer_common/sanitizer_thre
ad_registry.cc:64
#2  StartThread () at 
/srv/tools-src/llvm_3.4/projects/compiler-rt/lib/sanitizer_common/sanitizer_thre
ad_registry.cc:269
#3  0x0000000000470f43 in ThreadStart () at 
/srv/tools-src/llvm_3.4/projects/compiler-rt/lib/asan/asan_thread.cc:184
#4  0x00007ffff7bc8062 in start_thread (arg=0x7fffef7fc700) at 
pthread_create.c:312
#5  0x00007ffff6fd6bfd in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Original issue reported on code.google.com by xavier.c...@intersec.com on 21 May 2014 at 4:49

Attachments:

GoogleCodeExporter commented 9 years ago
does this happen with trunk? 

Original comment by konstant...@gmail.com on 21 May 2014 at 5:13

GoogleCodeExporter commented 9 years ago
Sorry you can close the ticket, it only happens with a buggy custom patch.

Original comment by xavier.c...@intersec.com on 21 May 2014 at 7:16

GoogleCodeExporter commented 9 years ago

Original comment by konstant...@gmail.com on 21 May 2014 at 7:24

GoogleCodeExporter commented 9 years ago
Adding Project:AddressSanitizer as part of GitHub migration.

Original comment by ramosian.glider@gmail.com on 30 Jul 2015 at 9:14