[llvm-bugs] [Bug 47389] New: AddressSanitizer: Thread limit (4194304 threads) exceeded. Dying.
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Sep 1 14:23:15 PDT 2020
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: unassignedbugs at nondot.org
Reporter: mvanotti at google.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200901/c8604419/attachment.html>
More information about the llvm-bugs
mailing list