From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: Locks and threads Date: Thu, 12 Mar 2009 00:53:30 +0000 Message-ID: <87iqmfwohh.fsf@arudy.ossau.uklinux.net> References: <87mycsd2rj.fsf@arudy.ossau.uklinux.net> <87vdqovofz.fsf@arudy.ossau.uklinux.net> <87vdqhc4oi.fsf@arudy.ossau.uklinux.net> <87mybrwqmj.fsf@arudy.ossau.uklinux.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1236819238 5345 80.91.229.12 (12 Mar 2009 00:53:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Mar 2009 00:53:58 +0000 (UTC) Cc: Linas Vepstas To: Guile Development Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Mar 12 01:55:14 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LhZCV-0006ly-Hm for guile-devel@m.gmane.org; Thu, 12 Mar 2009 01:55:07 +0100 Original-Received: from localhost ([127.0.0.1]:36148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhZB9-0006YG-Qf for guile-devel@m.gmane.org; Wed, 11 Mar 2009 20:53:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LhZB4-0006XJ-9l for guile-devel@gnu.org; Wed, 11 Mar 2009 20:53:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LhZB2-0006X7-QC for guile-devel@gnu.org; Wed, 11 Mar 2009 20:53:37 -0400 Original-Received: from [199.232.76.173] (port=51016 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhZB2-0006X4-Mo for guile-devel@gnu.org; Wed, 11 Mar 2009 20:53:36 -0400 Original-Received: from mail3.uklinux.net ([80.84.72.33]:59962) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LhZB2-0002Go-8t for guile-devel@gnu.org; Wed, 11 Mar 2009 20:53:36 -0400 Original-Received: from arudy (host86-157-180-39.range86-157.btcentralplus.com [86.157.180.39]) by mail3.uklinux.net (Postfix) with ESMTP id 8AFC51F680E; Thu, 12 Mar 2009 00:53:33 +0000 (GMT) Original-Received: from arudy.ossau.uklinux.net (arudy [127.0.0.1]) by arudy (Postfix) with ESMTP id 775AF38013; Thu, 12 Mar 2009 00:53:30 +0000 (GMT) In-Reply-To: <87mybrwqmj.fsf@arudy.ossau.uklinux.net> (Neil Jerram's message of "Thu\, 12 Mar 2009 00\:07\:16 +0000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:8262 Archived-At: Neil Jerram writes: > # > # > ERROR: ERROR: Unbound variable: x1-100499 > Unbound variable: define > ERROR: Unbound variable: x4-100596 > ERROR: Unbound variable: define > ERROR: Unbound variable: define > ERROR: Unbound variable: define > guile-define test case: good-bye! > test-define-race: 2 error(s) > FAIL: test-define-race > > I'm off to sleep now, so I thought I'd post what I've done in case > others have thoughts on it or can see something wrong. Thanks to a hint from helgrind, I think the problem might be that the symbols obarray is not thread-safe. But surely using a mutex for every symbol that Guile reads would be terrible for performance... so I hope there is an alternative. Neil