From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Han-Wen Nienhuys Newsgroups: gmane.lisp.guile.devel Subject: Re: regexp-exec critcial section errors Date: Thu, 18 Jan 2007 14:58:04 +0100 Message-ID: <45AF7CEC.5000005@xs4all.nl> References: <87r6tyin03.fsf@zip.com.au> Reply-To: hanwen@xs4all.nl NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1169128723 15634 80.91.229.12 (18 Jan 2007 13:58:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Jan 2007 13:58:43 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Jan 18 14:58:40 2007 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 1H7Xmk-0003qy-2s for guile-devel@m.gmane.org; Thu, 18 Jan 2007 14:58:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7Xmk-0000Tx-ST for guile-devel@m.gmane.org; Thu, 18 Jan 2007 08:58:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H7Xmg-0000St-Ih for guile-devel@gnu.org; Thu, 18 Jan 2007 08:58:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H7Xme-0000Rt-KB for guile-devel@gnu.org; Thu, 18 Jan 2007 08:58:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7Xme-0000RU-03 for guile-devel@gnu.org; Thu, 18 Jan 2007 08:58:28 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H7Xmd-0004Xr-6O for guile-devel@gnu.org; Thu, 18 Jan 2007 08:58:27 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1H7XmI-0008Fv-TL for guile-devel@gnu.org; Thu, 18 Jan 2007 14:58:06 +0100 Original-Received: from muurbloem.xs4all.nl ([213.84.26.127]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Jan 2007 14:58:06 +0100 Original-Received: from hanwen by muurbloem.xs4all.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Jan 2007 14:58:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: guile-devel@gnu.org Original-Lines: 39 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: muurbloem.xs4all.nl User-Agent: Thunderbird 1.5.0.9 (X11/20061219) In-Reply-To: <87r6tyin03.fsf@zip.com.au> 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:6438 Archived-At: Kevin Ryde escreveu: > In regexp-exec in 1.8, a nul in the input string, or a bad flags arg, > results in a throw from a critical section, which calls abort(). Eg. > > (regexp-exec (make-regexp "x") "\0") > => abort > > (regexp-exec (make-regexp "x") "hello" 0 'badflags) > => abort > > What's the reason for the critical section? Do we think regexec() is > not reentrant? It looks like a conversion from SCM_DEFER_INTS in past > versions, if that suggests anything about it. > > I struck this when running a regexp search on some file data that > slightly unexpectedly had nuls in it. I think I was using 1.6 last > time I did the same thing. I guess that version silently ignores past > the nul. Maybe that should get a check, though there's probably a > zillion libc calls that would really ought to have the same. Ehm, I get ** Running reader.test Running receive.test Running regexp.test ERROR: Unbound variable: exception:string-contains-nul FAIL: check-guile ================================== ** it might be a good idea to have an autobuild daemon that compiles and checks the test-suite. -- Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel