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#14404: regexp_exec thread-unsafe Date: Mon, 20 May 2013 16:20:08 +0200 Message-ID: <87d2slu413.fsf__23035.2932158441$1369059647$gmane$org@gnu.org> References: <87ehd9i7fc.fsf@gnu.org> <5199448F.9050608@cs.ucla.edu> 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 1369059642 28186 80.91.229.3 (20 May 2013 14:20:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 May 2013 14:20:42 +0000 (UTC) Cc: 14404@debbugs.gnu.org, bug-gnulib@gnu.org To: Paul Eggert Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon May 20 16:20:40 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 1UeQx6-0002lZ-F0 for guile-bugs@m.gmane.org; Mon, 20 May 2013 16:20:40 +0200 Original-Received: from localhost ([::1]:41718 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeQx6-0007RL-17 for guile-bugs@m.gmane.org; Mon, 20 May 2013 10:20:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeQx1-0007PC-8Y for bug-guile@gnu.org; Mon, 20 May 2013 10:20:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UeQwv-0000fM-Cs for bug-guile@gnu.org; Mon, 20 May 2013 10:20:35 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeQwv-0000ev-9e for bug-guile@gnu.org; Mon, 20 May 2013 10:20:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UeQxR-0001iy-Ln for bug-guile@gnu.org; Mon, 20 May 2013 10:21: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: Mon, 20 May 2013 14:21: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.13690596486578 (code B ref 14404); Mon, 20 May 2013 14:21:01 +0000 Original-Received: (at 14404) by debbugs.gnu.org; 20 May 2013 14:20:48 +0000 Original-Received: from localhost ([127.0.0.1]:52979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UeQxD-0001hy-9q for submit@debbugs.gnu.org; Mon, 20 May 2013 10:20:47 -0400 Original-Received: from xanadu.aquilenet.fr ([88.191.123.111]:45136) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UeQxA-0001hk-4j for 14404@debbugs.gnu.org; Mon, 20 May 2013 10:20:46 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 67ACDD51C; Mon, 20 May 2013 16:20:09 +0200 (CEST) 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 GzlJr3M5nJqQ; Mon, 20 May 2013 16:20:09 +0200 (CEST) Original-Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id D14F6D514; Mon, 20 May 2013 16:20:08 +0200 (CEST) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 1 Prairial 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: <5199448F.9050608@cs.ucla.edu> (Paul Eggert's message of "Sun, 19 May 2013 14:30:55 -0700") 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:7127 Archived-At: Paul Eggert skribis: > On 05/14/2013 02:21 PM, Ludovic Court=C3=A8s wrote: > >> How should that be fixed? Shouldn=E2=80=99t __libc_lock_unlock & co. be= rebased >> on top of pthread_mutex_t? > > Yes, thanks, that sounds right. I pushed the following patch into gnulib; > could you please see whether it fixes the problem for you? It'd be > helpful to try it on non-glibc systems too, if possible. Thank you for the quick reply. I haven=E2=80=99t tested yet, but I have a = question: > --- a/modules/regex > +++ b/modules/regex > @@ -24,6 +24,7 @@ memmove [test $ac_use_included_regex =3D yes] > mbrtowc [test $ac_use_included_regex =3D yes] > mbsinit [test $ac_use_included_regex =3D yes] > nl_langinfo [test $ac_use_included_regex =3D yes] > +pthread [test $ac_use_included_regex =3D yes] > stdbool [test $ac_use_included_regex =3D yes] > stdint [test $ac_use_included_regex =3D yes] > wchar [test $ac_use_included_regex =3D yes] Seems like this is going to add -lpthread to LDFLAGS, right? That would raise two issues: first, it should add -pthread to both CFLAGS and LDFLAGS, not just -lpthread. Second, Guile can be compiled with and without thread support. In the latter case, we wouldn=E2=80=99t want Gnulib to stealthily pull in pthreads. How can this be addressed? Thanks! Ludo=E2=80=99.