From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#10641: [2.0.3+] start_signal_delivery_thread failure on x86_64-freebsd8.2 Date: Wed, 13 Mar 2013 11:02:41 +0100 Message-ID: <87sj3zipmm.fsf@pobox.com> References: <87r4yipex5.fsf@gnu.org> 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 1363168991 8108 80.91.229.3 (13 Mar 2013 10:03:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Mar 2013 10:03:11 +0000 (UTC) Cc: 10641-done@debbugs.gnu.org To: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Mar 13 11:03:33 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 1UFiWy-0002XZ-Ls for guile-bugs@m.gmane.org; Wed, 13 Mar 2013 11:03:32 +0100 Original-Received: from localhost ([::1]:57627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFiWc-0006kU-8k for guile-bugs@m.gmane.org; Wed, 13 Mar 2013 06:03:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFiWY-0006k6-6F for bug-guile@gnu.org; Wed, 13 Mar 2013 06:03:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFiWQ-000788-AY for bug-guile@gnu.org; Wed, 13 Mar 2013 06:03:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFiWQ-00077x-7a for bug-guile@gnu.org; Wed, 13 Mar 2013 06:02:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UFiXS-0001JZ-FZ for bug-guile@gnu.org; Wed, 13 Mar 2013 06:04:02 -0400 Resent-From: Andy Wingo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-guile@gnu.org Resent-Date: Wed, 13 Mar 2013 10:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 10641 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Mail-Followup-To: 10641@debbugs.gnu.org, wingo@pobox.com, ludo@gnu.org Original-Received: via spool by 10641-done@debbugs.gnu.org id=D10641.13631690345037 (code D ref 10641); Wed, 13 Mar 2013 10:04:02 +0000 Original-Received: (at 10641-done) by debbugs.gnu.org; 13 Mar 2013 10:03:54 +0000 Original-Received: from localhost ([127.0.0.1]:50388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UFiXI-0001JA-K8 for submit@debbugs.gnu.org; Wed, 13 Mar 2013 06:03:54 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:37591 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UFiXF-0001J1-Ln for 10641-done@debbugs.gnu.org; Wed, 13 Mar 2013 06:03:51 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 69BA9AD26; Wed, 13 Mar 2013 06:02:44 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=imbnaMNwTd9A XA7FmIUQx+BEJBQ=; b=Q9xBWCeUDIH/VlnDdl3aTfjZIrp56VdXA+tnjV0MhA8X Bws9QgEu11XoSbCAtWFjpdepdN6zrSwI2LtgaXkb8DBGrES1XSu1IXTm7+QQYMNL cDWjMmn5JxxHWx9RniZbskEmTXhlbXUcE77aHWz6Kvj7sJL1JzxFXesJasSsaxc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=Z8/HcT YqMm+X7Fg7MPU609WsD42fTHXrfS76uOXAT4ZLw+iqq1KLOJyoVTvHy6Ap1qPmA8 Unb+h/S43Rpx6QPiByaQmQenIWpmISqQkxTNJXHFFj/HD+mq2uGVofhuvqGtdEuv Y6h8/1U0aXcum9JWb3zoHwHXHyw5sGbExbNsE= Original-Received: from a-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 62C64AD25; Wed, 13 Mar 2013 06:02:44 -0400 (EDT) Original-Received: from badger (unknown [88.160.190.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id CF60CAD24; Wed, 13 Mar 2013 06:02:43 -0400 (EDT) In-Reply-To: <87r4yipex5.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sun, 29 Jan 2012 19:00:22 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-Pobox-Relay-ID: 262B6E6A-8BC5-11E2-86F3-59240E5B5709-02397024!a-pb-sasl-quonix.pobox.com 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:6942 Archived-At: Hi, 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_cond_= 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. Cheers, Andy --=20 http://wingolog.org/