https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253318

--- Comment #8 from Xin LI <[email protected]> ---
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to