https://bugs.llvm.org/show_bug.cgi?id=47389
Bug ID: 47389
Summary: AddressSanitizer: Thread limit (4194304 threads)
exceeded. Dying.
Product: compiler-rt
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: asan
Assignee: unassignedb...@nondot.org
Reporter: mvano...@google.com
CC: llvm-bugs@lists.llvm.org
We have noticed that the following program makes asan crash after some time:
```
#include <stdlib.h>
#include <pthread.h>
void * null_func(void* args) {
return NULL;
}
int main(void) {
for (size_t i = 0; i < 20000000ULL; i++) {
pthread_t thread;
pthread_create(&thread, NULL, null_func, NULL);
pthread_join(thread, NULL);
}
}
```
Compiling it with `clang -fsanitize=address fortune.c -o fortune -lpthread`
After some time, the program crashes with the following message:
==693500==AddressSanitizer: Thread limit (4194304 threads) exceeded. Dying.
After looking at the code, it seems like ThreadJoin and ThreadDetach and never
called for ASAN, which seems to indicate that the threads might never go into
quarantine.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs