From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paolo Bonzini Newsgroups: gmane.lisp.guile.bugs Subject: bug#14404: regexp_exec thread-unsafe Date: Thu, 30 May 2013 09:28:48 +0200 Message-ID: <51A6FFB0.4000004__24194.9740601287$1369899000$gmane$org@gnu.org> References: <87ehd9i7fc.fsf@gnu.org> <5199448F.9050608@cs.ucla.edu> <87d2slu413.fsf@gnu.org> <51A288AD.4070405@gnu.org> <51A6A489.2060101@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1369898995 12051 80.91.229.3 (30 May 2013 07:29:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 May 2013 07:29:55 +0000 (UTC) Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , bug-gnulib@gnu.org, 14404@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu May 30 09:29:49 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 1UhxIz-0008D9-LJ for guile-bugs@m.gmane.org; Thu, 30 May 2013 09:29:49 +0200 Original-Received: from localhost ([::1]:55997 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhxIz-0003kS-7i for guile-bugs@m.gmane.org; Thu, 30 May 2013 03:29:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53315) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhxIq-0003aT-CB for bug-guile@gnu.org; Thu, 30 May 2013 03:29:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhxIk-00019e-82 for bug-guile@gnu.org; Thu, 30 May 2013 03:29:40 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhxIk-00019a-4z for bug-guile@gnu.org; Thu, 30 May 2013 03:29:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UhxK9-0006qH-Hy for bug-guile@gnu.org; Thu, 30 May 2013 03:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paolo Bonzini Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 30 May 2013 07:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14404 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 14404-submit@debbugs.gnu.org id=B14404.136989903926256 (code B ref 14404); Thu, 30 May 2013 07:31:01 +0000 Original-Received: (at 14404) by debbugs.gnu.org; 30 May 2013 07:30:39 +0000 Original-Received: from localhost ([127.0.0.1]:41515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhxJk-0006pP-Hn for submit@debbugs.gnu.org; Thu, 30 May 2013 03:30:38 -0400 Original-Received: from mail-ea0-f181.google.com ([209.85.215.181]:63332) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhxJh-0006p2-OF for 14404@debbugs.gnu.org; Thu, 30 May 2013 03:30:34 -0400 Original-Received: by mail-ea0-f181.google.com with SMTP id a11so6226188eae.40 for <14404@debbugs.gnu.org>; Thu, 30 May 2013 00:28:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=PiBjnspKlTXw2dSwWnGaWsTfX9gXy70kTSQbraeV1/A=; b=u05mvmNEBt+gBZspjF9jBtfOXeZOa5KvsaQMWeeri0Jd04WtZKZdsQPUtft24tYeZK AfqKsxxHqP69uO3ZRM4B9TAB8UI2d8I/O9c1ThE1FP3LXINkEuwYLsA+VSkYUIquOMLL ncUZWmFUFBJmtHmWDKza31Ra01OSWVZqwyoIKtsZHG1UQiL7qODEECQRNYiA0z5sOMoe Y9cwRwRV//yh87FBdrmlxKP78mkRYhV1zf2CVInlnxIpD1m8rs6+P++UsJ3su/Rl/km7 lR4BIGf172eU9Mpd+X2xPjzS/yEWcdK82e2jTbBBT7PhVANn+wNpKCzsmnMcdXk86V5d blsw== X-Received: by 10.15.23.4 with SMTP id g4mr8741503eeu.107.1369898939882; Thu, 30 May 2013 00:28:59 -0700 (PDT) Original-Received: from yakj.usersys.redhat.com (net-37-116-217-184.cust.dsl.vodafone.it. [37.116.217.184]) by mx.google.com with ESMTPSA id bo9sm44654995eeb.9.2013.05.30.00.28.57 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 30 May 2013 00:28:58 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 In-Reply-To: <51A6A489.2060101@cs.ucla.edu> X-Enigmail-Version: 1.5.1 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:7135 Archived-At: Il 30/05/2013 02:59, Paul Eggert ha scritto: > On 05/26/2013 03:11 PM, Paolo Bonzini wrote: >> Use the lock module instead. > > Adding the lock module should work. But this will require > some reengineering of Guile, so that Guile uses the lock module > rather than its own thread packaging. Another possibility, which > might be a bit simpler, would be for Guile to pretend to > have the lock module. It could do that by creating a file > glthread/lock.h that looks something like this: > > #include "../libguile/threads.h" > #define gl_lock_define(class, name) class scm_i_pthread_mutex_t name; > #define glthread_lock_init scm_i_pthread_mutex_init > #define glthread_lock_destroy scm_i_pthread_mutex_destroy > #define glthread_lock_lock scm_i_pthread_mutex_lock > #define glthread_lock_unlock scm_i_pthread_mutex_lock_unlock > > and by putting AC_DEFINE([GNULIB_LOCK]) into configure.ac. > Whatever, all I care about is gnulib code not reinventing the wheel and observing --disable-threads/gl_THREADLIB_DEFAULT_NO. Paolo