Date: Fri, 12 Feb 2021 20:11:21 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 253318] lldb: aborted when debugging named Message-ID: <bug-253318-227-bSpXCk65wC@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-253318-227@https.bugs.freebsd.org/bugzilla/> References: <bug-253318-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253318 --- Comment #8 from Xin LI <delphij@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=3D0; i<WORKERS; i++) { pthread_create(&thr[i], NULL, worker, NULL); } for (i=3D0; 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253318-227-bSpXCk65wC>