[Bug 253318] lldb: aborted when debugging named
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Feb 12 20:11:21 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253318
--- Comment #8 from Xin LI <delphij at FreeBSD.org> ---
I was able to reliably reproduce the issue with the following test program:
<--<--<--<--<--<--<--<--<--<--<--<--<--<--
#include <sys/cdefs.h>
#include <string.h>
#include <pthread.h>
#include <unistd.h>
#define WORKERS 9
void *
worker(void *p)
{
for (;;)
sleep(10);
}
int
main(int argc, char **argv)
{
int i;
pthread_t thr[WORKERS];
memset(&thr, 0, sizeof(thr));
for (i=0; i<WORKERS; i++) {
pthread_create(&thr[i], NULL, worker, NULL);
}
for (i=0; i<WORKERS; i++) {
pthread_join(thr[i], NULL);
}
/* NOTREACHED */
return (0);
}
-->-->-->-->-->-->-->-->-->-->-->-->-->-->
Run the test program, then lldb attach to it, and type "thread<tab>" would
crash lldb with the same crash.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list