From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.bugs Subject: bug#10641: [2.0.3+] start_signal_delivery_thread failure on x86_64-freebsd8.2 Date: Fri, 29 Mar 2013 10:49:41 +0100 Message-ID: <87y5d6mt6y.fsf@gnu.org> References: <87r4yipex5.fsf@gnu.org> <87sj3zipmm.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1364550632 10354 80.91.229.3 (29 Mar 2013 09:50:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Mar 2013 09:50:32 +0000 (UTC) Cc: 10641-done@debbugs.gnu.org To: Andy Wingo Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Mar 29 10:50:59 2013 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ULVxZ-0005yQ-90 for guile-bugs@m.gmane.org; Fri, 29 Mar 2013 10:50:57 +0100 Original-Received: from localhost ([::1]:46516 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULVxB-0005GM-3q for guile-bugs@m.gmane.org; Fri, 29 Mar 2013 05:50:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULVx7-0005GH-Tk for bug-guile@gnu.org; Fri, 29 Mar 2013 05:50:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULVx5-0003Rf-Ey for bug-guile@gnu.org; Fri, 29 Mar 2013 05:50:29 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULVx5-0003Ra-Bb for bug-guile@gnu.org; Fri, 29 Mar 2013 05:50:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1ULVzZ-0005lj-UM for bug-guile@gnu.org; Fri, 29 Mar 2013 05:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 29 Mar 2013 09:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10641 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 10641-done@debbugs.gnu.org id=D10641.136455074422118 (code D ref 10641); Fri, 29 Mar 2013 09:53:01 +0000 Original-Received: (at 10641-done) by debbugs.gnu.org; 29 Mar 2013 09:52:24 +0000 Original-Received: from localhost ([127.0.0.1]:50637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ULVyy-0005kh-6T for submit@debbugs.gnu.org; Fri, 29 Mar 2013 05:52:24 -0400 Original-Received: from xanadu.aquilenet.fr ([88.191.123.111]:57238) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ULVys-0005kT-Fj for 10641-done@debbugs.gnu.org; Fri, 29 Mar 2013 05:52:22 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 292E1C9B8; Fri, 29 Mar 2013 10:49:42 +0100 (CET) Original-Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I9FMS6oe+CDw; Fri, 29 Mar 2013 10:49:42 +0100 (CET) Original-Received: from pluto (unknown [193.50.110.192]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id D7D7FC79E; Fri, 29 Mar 2013 10:49:41 +0100 (CET) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 9 Germinal an 221 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <87sj3zipmm.fsf@pobox.com> (Andy Wingo's message of "Wed, 13 Mar 2013 11:02:41 +0100") User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7026 Archived-At: Andy Wingo skribis: > On Sun 29 Jan 2012 19:00, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Adding printfs shows that the thread calling scm_spawn_thread leaves >> cond_wait before the signal thread has signaled the condition (in >> really_spawn). > > From http://pubs.opengroup.org/onlinepubs/009604599/functions/pthread_con= d_wait.html > > When using condition variables there is always a Boolean predicate > involving shared variables associated with each condition wait that is > true if the thread should proceed. Spurious wakeups from the > pthread_cond_timedwait() or pthread_cond_wait() functions may > occur. Since the return from pthread_cond_timedwait() or > pthread_cond_wait() does not imply anything about the value of this > predicate, the predicate should be re-evaluated upon such return. > > It seems this code is not robust in the face of spurious wakeups. I > pushed a patch that waits for data.thread to become non-false. That > should fix this issue. Good catch, and congratulations! I can confirm that this fixes --with-thread builds on FreeBSD 8.2: http://hydra.nixos.org/build/4519811 Thanks! Ludo=E2=80=99.