NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/56414: cmake hang on kqueue (condvar waiter list issue) ?
The following reply was made to PR kern/56414; it has been noted by GNATS.
From: Taylor R Campbell <riastradh%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/56414: cmake hang on kqueue (condvar waiter list issue) ?
Date: Thu, 14 Apr 2022 14:40:00 +0000
This is a multi-part message in MIME format.
--=_fvz4bw6Sgb7EvIjKFB6Nr1oMeWUc8Daj
I reduced the guile/boehm-gc hang, at least, to the following
reproducer -- it reliably hangs for me after a few hundred runs, with
libpthread from netbsd-9 or HEAD and a netbsd-9 kernel, but others
have reported hangs on recent all-HEAD components. Condvars are not
involved; unclear if it's the same issue as cmake.
--=_fvz4bw6Sgb7EvIjKFB6Nr1oMeWUc8Daj
Content-Type: text/plain; charset="ISO-8859-1"; name="malloctest1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="malloctest1.c"
#include <err.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static void *
start(void *cookie)
{
return malloc(12);
}
int
main(void)
{
pthread_t t[24];
unsigned i;
int error;
for (i =3D 0; i < __arraycount(t); i++) {
error =3D pthread_create(&t[i], NULL, &start, NULL);
if (error)
errc(1, error, "pthread_create");
}
for (i =3D 0; i < __arraycount(t); i++) {
error =3D pthread_join(t[i], NULL);
if (error)
errc(1, error, "pthread_join");
}
return 0;
}
--=_fvz4bw6Sgb7EvIjKFB6Nr1oMeWUc8Daj--
Home |
Main Index |
Thread Index |
Old Index