From owner-freebsd-threads@FreeBSD.ORG Mon Nov 3 11:07:01 2008 Return-Path: Delivered-To: freebsd-threads@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FEA01065678 for ; Mon, 3 Nov 2008 11:07:01 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1D7538FC13 for ; Mon, 3 Nov 2008 11:07:01 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mA3B71nL011070 for ; Mon, 3 Nov 2008 11:07:01 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mA3B704q011066 for freebsd-threads@FreeBSD.org; Mon, 3 Nov 2008 11:07:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 3 Nov 2008 11:07:00 GMT Message-Id: <200811031107.mA3B704q011066@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-threads@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-threads@FreeBSD.org X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2008 11:07:01 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o threa/128180 threads pthread_cond_broadcast(3) lost wakeup o threa/127225 threads bug in lib/libthr/thread/thr_init.c o threa/126950 threads [patch] rtld(1): rtld malloc is thread-unsafe o kern/126128 threads [patch] pthread_condattr_getpshared is broken o threa/122923 threads 'nice' does not prevent background process from steali o threa/121336 threads lang/neko threading ok on UP, broken on SMP (FreeBSD 7 o threa/118715 threads kse problem o threa/116668 threads can no longer use jdk15 with libthr on -stable SMP o threa/116181 threads /dev/io-related io access permissions are not propagat o threa/115211 threads pthread_atfork misbehaves in initial thread o threa/110636 threads [request] gdb(1): using gdb with multi thread applicat o threa/110306 threads apache 2.0 segmentation violation when calling gethost o threa/103975 threads Implicit loading/unloading of libpthread.so may crash o threa/101323 threads fork(2) in threaded programs broken. s threa/100815 threads FBSD 5.5 broke nanosleep in libc_r s threa/94467 threads send(), sendto() and sendmsg() are not correct in libc s threa/84483 threads problems with devel/nspr and -lc_r on 4.x o threa/83914 threads [libc] popen() doesn't work in static threaded program o threa/80992 threads abort() sometimes not caught by gdb depending on threa o threa/80435 threads panic on high loads o threa/79887 threads [patch] freopen() isn't thread-safe o threa/79683 threads svctcp_create() fails if multiple threads call at the s threa/76694 threads fork cause hang in dup()/close() function in child (-l s threa/76690 threads fork hang in child for -lc_r o threa/75374 threads pthread_kill() ignores SA_SIGINFO flag o threa/75273 threads FBSD 5.3 libpthread (KSE) bug o threa/72953 threads fork() unblocks blocked signals w/o PTHREAD_SCOPE_SYST o threa/70975 threads [sysvipc] unexpected and unreliable behaviour when usi s threa/69020 threads pthreads library leaks _gc_mutex s threa/49087 threads Signals lost in programs linked with libc_r s threa/48856 threads Setting SIGCHLD to SIG_IGN still leaves zombies under s threa/40671 threads pthread_cancel doesn't remove thread from condition qu s threa/39922 threads [threads] [patch] Threaded applications executed with s threa/37676 threads libc_r: msgsnd(), msgrcv(), pread(), pwrite() need wra s threa/34536 threads accept() blocks other threads s kern/32295 threads [libc_r] [patch] pthread(3) dont dequeue signals s threa/30464 threads pthread mutex attributes -- pshared s threa/24632 threads libc_r delicate deviation from libc in handling SIGCHL s threa/24472 threads libc_r does not honor SO_SNDTIMEO/SO_RCVTIMEO socket o 39 problems total. From owner-freebsd-threads@FreeBSD.ORG Tue Nov 4 14:40:04 2008 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0694B1065674 for ; Tue, 4 Nov 2008 14:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E937B8FC12 for ; Tue, 4 Nov 2008 14:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mA4Ee3D7084491 for ; Tue, 4 Nov 2008 14:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mA4Ee31J084489; Tue, 4 Nov 2008 14:40:03 GMT (envelope-from gnats) Date: Tue, 4 Nov 2008 14:40:03 GMT Message-Id: <200811041440.mA4Ee31J084489@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: Ed Maste Cc: Subject: Re: threads/128180: pthread_cond_broadcast(3) lost wakeup X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ed Maste List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2008 14:40:04 -0000 The following reply was made to PR threads/128180; it has been noted by GNATS. From: Ed Maste To: bug-followup@FreeBSD.org, kurt@intricatesoftware.com Cc: Subject: Re: threads/128180: pthread_cond_broadcast(3) lost wakeup Date: Tue, 4 Nov 2008 09:09:38 -0500 > The test program doesn't look correct to me. It seems possible > for only a few of the threads (as little as 2) to do all the > work. Thread 1 can start doing work, then wait for a broadcast. > Thread 2 can start doing his work, then broadcast waking thread 1. It looks to me like the "tickets" and "finished" globals should make the test program operate correctly. If the scenario you describe happens, thread 1 will just enter pthread_cond_wait again and wait for the broadcast from the primordial thread. From owner-freebsd-threads@FreeBSD.ORG Tue Nov 4 15:41:14 2008 Return-Path: Delivered-To: freebsd-threads@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1355D1065688 for ; Tue, 4 Nov 2008 15:41:14 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id F30A18FC19 for ; Tue, 4 Nov 2008 15:41:13 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id A970A1A3C4B; Tue, 4 Nov 2008 07:41:13 -0800 (PST) Date: Tue, 4 Nov 2008 07:41:13 -0800 From: Alfred Perlstein To: Ed Maste Message-ID: <20081104154113.GP60438@elvis.mu.org> References: <200811041440.mA4Ee31J084489@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200811041440.mA4Ee31J084489@freefall.freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-threads@FreeBSD.org Subject: Re: threads/128180: pthread_cond_broadcast(3) lost wakeup X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2008 15:41:14 -0000 * Ed Maste [081104 06:40] wrote: > The following reply was made to PR threads/128180; it has been noted by GNATS. > > From: Ed Maste > To: bug-followup@FreeBSD.org, kurt@intricatesoftware.com > Cc: > Subject: Re: threads/128180: pthread_cond_broadcast(3) lost wakeup > Date: Tue, 4 Nov 2008 09:09:38 -0500 > > > The test program doesn't look correct to me. It seems possible > > for only a few of the threads (as little as 2) to do all the > > work. Thread 1 can start doing work, then wait for a broadcast. > > Thread 2 can start doing his work, then broadcast waking thread 1. > > It looks to me like the "tickets" and "finished" globals should make > the test program operate correctly. If the scenario you describe > happens, thread 1 will just enter pthread_cond_wait again and wait > for the broadcast from the primordial thread. This bug may have been fixed in 6-stable and 6.4. http://svn.freebsd.org/viewvc/base?view=revision&revision=184172 Can you try upgrading? -- - Alfred Perlstein From owner-freebsd-threads@FreeBSD.ORG Tue Nov 4 18:15:51 2008 Return-Path: Delivered-To: freebsd-threads@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F25831065673 for ; Tue, 4 Nov 2008 18:15:51 +0000 (UTC) (envelope-from emaste@freebsd.org) Received: from gw.sandvine.com (gw.sandvine.com [199.243.201.138]) by mx1.freebsd.org (Postfix) with ESMTP id 9B0288FC23 for ; Tue, 4 Nov 2008 18:15:51 +0000 (UTC) (envelope-from emaste@freebsd.org) Received: from labgw2.phaedrus.sandvine.com ([192.168.3.11]) by gw.sandvine.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 4 Nov 2008 13:03:49 -0500 Received: by labgw2.phaedrus.sandvine.com (Postfix, from userid 12627) id 4C54A11712; Tue, 4 Nov 2008 13:03:49 -0500 (EST) Date: Tue, 4 Nov 2008 13:03:49 -0500 From: Ed Maste To: Alfred Perlstein Message-ID: <20081104180349.GA9527@sandvine.com> References: <200811041440.mA4Ee31J084489@freefall.freebsd.org> <20081104154113.GP60438@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081104154113.GP60438@elvis.mu.org> User-Agent: Mutt/1.4.2.1i X-OriginalArrivalTime: 04 Nov 2008 18:03:49.0560 (UTC) FILETIME=[B0552380:01C93EA7] Cc: freebsd-threads@FreeBSD.org Subject: Re: threads/128180: pthread_cond_broadcast(3) lost wakeup X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2008 18:15:52 -0000 On Tue, Nov 04, 2008 at 07:41:13AM -0800, Alfred Perlstein wrote: > This bug may have been fixed in 6-stable and 6.4. > > http://svn.freebsd.org/viewvc/base?view=revision&revision=184172 > > Can you try upgrading? I tried with the changes from r184172, but I'm still able to reproduce the problem using the test app in the PR. With your change it does seem to run for on average about 10 times as long before it hangs though. -Ed From owner-freebsd-threads@FreeBSD.ORG Tue Nov 4 18:20:04 2008 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 256851065679 for ; Tue, 4 Nov 2008 18:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 13D418FC29 for ; Tue, 4 Nov 2008 18:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mA4IK3V4048432 for ; Tue, 4 Nov 2008 18:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mA4IK3ja048431; Tue, 4 Nov 2008 18:20:03 GMT (envelope-from gnats) Date: Tue, 4 Nov 2008 18:20:03 GMT Message-Id: <200811041820.mA4IK3ja048431@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: Ed Maste Cc: Subject: Re: threads/128180: pthread_cond_broadcast(3) lost wakeup X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ed Maste List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2008 18:20:04 -0000 The following reply was made to PR threads/128180; it has been noted by GNATS. From: Ed Maste To: Cc: bug-followup@FreeBSD.org Subject: Re: threads/128180: pthread_cond_broadcast(3) lost wakeup Date: Tue, 4 Nov 2008 13:16:52 -0500 (I posted this to freebsd-threads@; sending to bug-followup for the benefit of the PR.) On Tue, Nov 04, 2008 at 07:41:13AM -0800, Alfred Perlstein wrote: > This bug may have been fixed in 6-stable and 6.4. > > http://svn.freebsd.org/viewvc/base?view=revision&revision=184172 > > Can you try upgrading? I tested the changes in r184172, but I'm still able to reproduce the problem using the test app. With the change it does seem to run for on average about 10 times as long before it hangs though. From owner-freebsd-threads@FreeBSD.ORG Tue Nov 4 19:02:21 2008 Return-Path: Delivered-To: freebsd-threads@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AFD4106567D; Tue, 4 Nov 2008 19:02:21 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 48E178FC29; Tue, 4 Nov 2008 19:02:21 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 348D61A3C37; Tue, 4 Nov 2008 11:02:21 -0800 (PST) Date: Tue, 4 Nov 2008 11:02:21 -0800 From: Alfred Perlstein To: Ed Maste Message-ID: <20081104190221.GT60438@elvis.mu.org> References: <200811041440.mA4Ee31J084489@freefall.freebsd.org> <20081104154113.GP60438@elvis.mu.org> <20081104180349.GA9527@sandvine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081104180349.GA9527@sandvine.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-threads@FreeBSD.org Subject: Re: threads/128180: pthread_cond_broadcast(3) lost wakeup X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2008 19:02:21 -0000 * Ed Maste [081104 10:03] wrote: > On Tue, Nov 04, 2008 at 07:41:13AM -0800, Alfred Perlstein wrote: > > > This bug may have been fixed in 6-stable and 6.4. > > > > http://svn.freebsd.org/viewvc/base?view=revision&revision=184172 > > > > Can you try upgrading? > > I tried with the changes from r184172, but I'm still able to reproduce > the problem using the test app in the PR. With your change it does > seem to run for on average about 10 times as long before it hangs though. Hmm... I'll look into it. -- - Alfred Perlstein From owner-freebsd-threads@FreeBSD.ORG Wed Nov 5 05:15:26 2008 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 109AA1065670; Wed, 5 Nov 2008 05:15:26 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F11DB8FC08; Wed, 5 Nov 2008 05:15:25 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from apple.my.domain (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mA55FM8R053181; Wed, 5 Nov 2008 05:15:24 GMT (envelope-from davidxu@freebsd.org) Message-ID: <49112C5A.3060105@freebsd.org> Date: Wed, 05 Nov 2008 13:17:14 +0800 From: David Xu User-Agent: Thunderbird 2.0.0.9 (X11/20080612) MIME-Version: 1.0 To: Alfred Perlstein References: <200811041440.mA4Ee31J084489@freefall.freebsd.org> <20081104154113.GP60438@elvis.mu.org> <20081104180349.GA9527@sandvine.com> <20081104190221.GT60438@elvis.mu.org> In-Reply-To: <20081104190221.GT60438@elvis.mu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Ed Maste , freebsd-threads@freebsd.org Subject: Re: threads/128180: pthread_cond_broadcast(3) lost wakeup X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2008 05:15:26 -0000 Alfred Perlstein wrote: > * Ed Maste [081104 10:03] wrote: >> On Tue, Nov 04, 2008 at 07:41:13AM -0800, Alfred Perlstein wrote: >> >>> This bug may have been fixed in 6-stable and 6.4. >>> >>> http://svn.freebsd.org/viewvc/base?view=revision&revision=184172 >>> >>> Can you try upgrading? >> I tried with the changes from r184172, but I'm still able to reproduce >> the problem using the test app in the PR. With your change it does >> seem to run for on average about 10 times as long before it hangs though. > > Hmm... I'll look into it. > > I think you had fixed it.;-) From owner-freebsd-threads@FreeBSD.ORG Wed Nov 5 12:37:25 2008 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98B3810657D9; Wed, 5 Nov 2008 12:37:25 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6FD508FC1D; Wed, 5 Nov 2008 12:37:25 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from freefall.freebsd.org (kib@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mA5CbPp9015160; Wed, 5 Nov 2008 12:37:25 GMT (envelope-from kib@freefall.freebsd.org) Received: (from kib@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mA5CbNKa015156; Wed, 5 Nov 2008 12:37:23 GMT (envelope-from kib) Date: Wed, 5 Nov 2008 12:37:23 GMT Message-Id: <200811051237.mA5CbNKa015156@freefall.freebsd.org> To: agile@sunbay.com, kib@FreeBSD.org, freebsd-threads@FreeBSD.org From: kib@FreeBSD.org Cc: Subject: Re: threads/126950: [patch] rtld(1): rtld malloc is thread-unsafe X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2008 12:37:25 -0000 Synopsis: [patch] rtld(1): rtld malloc is thread-unsafe State-Changed-From-To: open->closed State-Changed-By: kib State-Changed-When: Wed Nov 5 12:36:48 UTC 2008 State-Changed-Why: Modified fix committed to HEAD and RELENG&. http://www.freebsd.org/cgi/query-pr.cgi?pr=126950