Date: Wed, 5 Mar 2008 03:00:05 GMT From: David Xu <davidxu@FreeBSD.org> To: freebsd-threads@FreeBSD.org Subject: Re: threads/121343: pthread_cond_wait hanging in libthr Message-ID: <200803050300.m25305kE018751@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR threads/121343; it has been noted by GNATS. From: David Xu <davidxu@FreeBSD.org> To: josh.carroll@gmail.com Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: threads/121343: pthread_cond_wait hanging in libthr Date: Wed, 05 Mar 2008 10:51:35 +0800 Josh Carroll wrote: >> Can you attach to the process and see all threads info and backtrace ? >> for example: >> gdb /usr/local/bin/ushare 13323 >> >> (gdb) info threads > > I can get a backtrace but not the thread information: > > (gdb) bt > #0 0x00000000409d08da in _umtx_op () from /lib/libc.so.7 > #1 0x0000000040ba5c9a in pthread_cleanup_push () from /lib/libthr.so.3 > #2 0x0000000040ba231b in pthread_mutex_getprioceiling () from /lib/libthr.so.3 > #3 0x0000000040774324 in WorkerThread (arg=0x40770d20) at src/ThreadPool.c:440 > #4 0x0000000040b9f459 in pthread_getprio () from /lib/libthr.so.3 > #5 0x0000000000000000 in ?? () > Error accessing memory address 0x7fffffbff000: Bad address. > (gdb) info threads > Cannot get thread info: invalid key > > Is there something I'm doing wrong here? > This should not happen, I am not sure if there is memory problem in the program. Regards, David Xu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803050300.m25305kE018751>