Date: Fri, 29 Aug 2008 00:41:58 +0300 From: Andriy Gapon <avg@icyb.net.ua> To: freebsd-threads@freebsd.org Subject: Re: mysterious hang in pthread_create Message-ID: <48B71BA6.5040504@icyb.net.ua> In-Reply-To: <48B7101E.7060203@icyb.net.ua> References: <48B70A98.5060501@icyb.net.ua> <48B7101E.7060203@icyb.net.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
on 28/08/2008 23:52 Andriy Gapon said the following:
> So can all this be a result of an exception thrown before threads are
> initialized?
This seems to be it.
I can reproduce the issue with the following small C++ program:
/*********************************************/
#include <pthread.h>
static void * thrfunc(void * arg)
{
return NULL;
}
int main(void)
{
pthread_t thr;
try {
throw int(1);
}
catch (...) {}
pthread_create(&thr, NULL, thrfunc, NULL);
return 0;
}
/*********************************************/
$ uname -a
... FreeBSD 7.0-STABLE #9: Sun Jul 6 17:13:22 EEST 2008 ... i386
--
Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48B71BA6.5040504>
