Date: Fri, 29 Aug 2008 07:04:53 -0600 From: John Hein <jhein@timing.com> To: Andriy Gapon <avg@icyb.net.ua> Cc: freebsd-threads@freebsd.org Subject: Re: mysterious hang in pthread_create Message-ID: <18615.62453.623443.27126@gromit.timing.com> In-Reply-To: <48B71BA6.5040504@icyb.net.ua> References: <48B70A98.5060501@icyb.net.ua> <48B7101E.7060203@icyb.net.ua> <48B71BA6.5040504@icyb.net.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
Andriy Gapon wrote at 00:41 +0300 on Aug 29, 2008: > 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 FYI... I reproduced it on an older 7-stable (May 07), too (stuck in uwait). But it works fine on 6-stable with libthr or libpthread.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18615.62453.623443.27126>