Status: Accepted
Owner:
gli...@google.com
CC:
dvyu...@google.com
Labels: Type-Defect Priority-Medium
New issue 47 by
gli...@google.com: Instrumented program hangs at exit if
one of the threads is running getline()
http://code.google.com/p/thread-sanitizer/issues/detail?id=47
$ cat t.c
#include <pthread.h>
#include <stdio.h>
void *thread(void *unused) {
char *line = NULL;
size_t size;
getline(&line, &size, stdin);
return NULL;
}
int main() {
pthread_t t;
pthread_create(&t, NULL, thread, NULL);
return 0;
}
$ clang t.c -o t -lpthread
$ ./t
(everything ok)
$ clang t.c -o t -lpthread -fsanitize=thread
% ./t
(hangs)
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings