From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 08 12:03:25 2014 Received: (at submit) by debbugs.gnu.org; 8 Sep 2014 16:03:25 +0000 Received: from localhost ([127.0.0.1]:34008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XR1PY-0001IC-8P for submit@debbugs.gnu.org; Mon, 08 Sep 2014 12:03:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49433) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XR1PV-0001Hx-MM for submit@debbugs.gnu.org; Mon, 08 Sep 2014 12:03:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XR1PK-0007C3-NF for submit@debbugs.gnu.org; Mon, 08 Sep 2014 12:03:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:46747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XR1PK-0007By-Kx for submit@debbugs.gnu.org; Mon, 08 Sep 2014 12:03:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XR1PG-0008LD-1F for bug-grep@gnu.org; Mon, 08 Sep 2014 12:03:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XR1PE-00076B-NB for bug-grep@gnu.org; Mon, 08 Sep 2014 12:03:05 -0400 Received: from mail-wg0-x22f.google.com ([2a00:1450:400c:c00::22f]:59224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XR1PE-00075k-Gv for bug-grep@gnu.org; Mon, 08 Sep 2014 12:03:04 -0400 Received: by mail-wg0-f47.google.com with SMTP id y10so1367604wgg.18 for ; Mon, 08 Sep 2014 09:03:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=CCQwduiuTSsbmfGA0xjjy3k2eSH9ZAGBkrE8NKcscMs=; b=ERTcZg97rie3bvty/9LVf3uFQazP5FHv4ITFhTscqDthuLGDVK1F6Fh/Vf7Rfyv4Cd LxjNK29OcgUQ3iMhIFi+ODDQbwF0q7bnDUqHu7uDh/zhTZejKIRjDgc7E2zQjZPja1+A lBF0xLkwca1uQr7dZO4hRIN5PtN+9N6QHe+RHoELkm2g6dUxOivpI131xDYMc6w5UEz3 5tSk8f46UpKh7mwkkU664ucc/5O1td8vdp8JVOwinQnW7N/bvGuGqMqE0wjfRLgjhwwl XvqszSI3aca/vgmI45n+TmKncCZE6xTuDBivA7VOMJksGmvIZxkq0/b92R6IdGg3zk/T 5rwg== X-Received: by 10.180.78.226 with SMTP id e2mr4547441wix.68.1410192183132; Mon, 08 Sep 2014 09:03:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.41.202 with HTTP; Mon, 8 Sep 2014 09:02:42 -0700 (PDT) From: Jim Meyering Date: Mon, 8 Sep 2014 09:02:42 -0700 X-Google-Sender-Auth: bbUYhy16IDejV3FDwTE2Gha72Ds Message-ID: Subject: test for new glibc regex bug To: bug-grep@gnu.org Content-Type: multipart/mixed; boundary=f46d043c08ca249d9d05028ff420 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --f46d043c08ca249d9d05028ff420 Content-Type: text/plain; charset=ISO-8859-1 Paul found an ugly bug in glibc's regex. Here's a test to trigger that from grep: --f46d043c08ca249d9d05028ff420 Content-Type: application/octet-stream; name="0001-tests-add-expect-to-fail-test-for-a-glibc-regexp-bug.patch" Content-Disposition: attachment; filename="0001-tests-add-expect-to-fail-test-for-a-glibc-regexp-bug.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hztzzjuy0 RnJvbSA5MmJiZDhjYTIxMjIyZGE2NWVhNjJkNjk3OTVhYTgyZDg5NzRiNTM4IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBKaW0gTWV5ZXJpbmcgPG1leWVyaW5nQGZiLmNvbT4KRGF0ZTog TW9uLCA4IFNlcCAyMDE0IDA3OjUyOjE5IC0wNzAwClN1YmplY3Q6IFtQQVRDSCAxLzJdIHRlc3Rz OiBhZGQgZXhwZWN0LXRvLWZhaWwgdGVzdCBmb3IgYSBnbGliYyByZWdleHAgYnVnCgoqIHRlc3Rz L3RyaXBsZS1iYWNrcmVmOiBOZXcgZmlsZS4KKiB0ZXN0cy9NYWtlZmlsZS5hbSAoVEVTVFMpOiBB ZGQgaXQuCihYRkFJTF9URVNUUyk6IExpc3QgaXQgYXMgYSBrbm93biwgYWx3YXlzLWZhaWxpbmcg dGVzdC4KQmFzZWQgb24gdGhlIGJ1ZyByZXBvcnQgZnJvbSBQYXVsIEVnZ2VydDoKICAgICAgICBo dHRwczovL3NvdXJjZXdhcmUub3JnL2J1Z3ppbGxhL3Nob3dfYnVnLmNnaT9pZD0xNzM1NgotLS0K IHRlc3RzL01ha2VmaWxlLmFtICAgIHwgIDMgKystCiB0ZXN0cy90cmlwbGUtYmFja3JlZiB8IDM1 ICsrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrCiAyIGZpbGVzIGNoYW5nZWQsIDM3 IGluc2VydGlvbnMoKyksIDEgZGVsZXRpb24oLSkKIGNyZWF0ZSB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HRoaXMgdGVzdCBvbmx5IHdpdGggZ2xpYmMiCisjZW5k aWYKK0VPRgorJENDIC1jIGdsaWJjLmMgXAorICB8fCBza2lwXyAndGhpcyB0ZXN0IHJ1bnMgb25s eSBvbiBzeXN0ZW1zIHdpdGggZ2xpYmMnCisKK2VjaG8gYSA+IGluIHx8IGZyYW1ld29ya19mYWls dXJlXworCitmYWlsPTAKK2dyZXAgLUUgJyguPykoLj8pKC4/KVwzXDJcMScgaW4gPiBvdXQgfHwg ZmFpbD0xCitjb21wYXJlIG91dCBpbiB8fCBmYWlsPTEKKworRXhpdCAkZmFpbAotLSAKMi4wLjAu NDIxLmc3ODZhODlkCgo= --f46d043c08ca249d9d05028ff420-- From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 08 12:51:47 2014 Received: (at 18425) by debbugs.gnu.org; 8 Sep 2014 16:51:47 +0000 Received: from localhost ([127.0.0.1]:34030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XR2AM-0002Us-31 for submit@debbugs.gnu.org; Mon, 08 Sep 2014 12:51:46 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:43680) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XR2AI-0002Ud-Kp for 18425@debbugs.gnu.org; Mon, 08 Sep 2014 12:51:43 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 21098A60005; Mon, 8 Sep 2014 09:51:36 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LgoF7XlvLRqW; Mon, 8 Sep 2014 09:51:32 -0700 (PDT) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id E77F3A6001E; Mon, 8 Sep 2014 09:51:31 -0700 (PDT) Message-ID: <540DDE93.4070905@cs.ucla.edu> Date: Mon, 08 Sep 2014 09:51:31 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: Jim Meyering , 18425@debbugs.gnu.org Subject: Re: bug#18425: test for new glibc regex bug References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------090508060707070702010302" X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: 18425 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.8 (----) This is a multi-part message in MIME format. --------------090508060707070702010302 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Thanks. How about the attached simpler patch instead? Since grep always uses glibc-compatible regex (and supplies its own substitute when the system lacks one), and since all known glibc-compatible implementations fail, it should be safe to assume that grep will fail on the new test. We can worry about dealing with test successes later, when the bug gets fixed (and presumably grep's substitute regex implementation will get fixed too). --------------090508060707070702010302 Content-Type: text/x-patch; name="0001-tests-add-expect-to-fail-test-for-a-glibc-regexp-bug.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-tests-add-expect-to-fail-test-for-a-glibc-regexp-bug.pa"; filename*1="tch" >From c0fa2415dab47d336d93bcd65dc5b7c61dbe0593 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 8 Sep 2014 07:52:19 -0700 Subject: [PATCH] tests: add expect-to-fail test for a glibc regexp bug * tests/triple-backref: New file. * tests/Makefile.am (TESTS): Add it. (XFAIL_TESTS): List it as a known, always-failing test. Based on the bug report from Paul Eggert: https://sourceware.org/bugzilla/show_bug.cgi?id=17356 --- tests/Makefile.am | 3 ++- tests/triple-backref | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100755 tests/triple-backref diff --git a/tests/Makefile.am b/tests/Makefile.am index 31e2a81..d47978f 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -22,7 +22,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) AM_LDFLAGS = $(IGNORE_UNUSED_LIBRARIES_CFLAGS) LDADD = ../lib/libgreputils.a $(LIBINTL) ../lib/libgreputils.a -XFAIL_TESTS = +XFAIL_TESTS = triple-backref # Equivalence classes are only supported when using the system # matcher (which means only with glibc). @@ -104,6 +104,7 @@ TESTS = \ status \ surrogate-pair \ symlink \ + triple-backref \ turkish-eyes \ turkish-I \ turkish-I-without-dot \ diff --git a/tests/triple-backref b/tests/triple-backref new file mode 100755 index 0000000..38550d0 --- /dev/null +++ b/tests/triple-backref @@ -0,0 +1,18 @@ +#! /bin/sh +# Test for a bug in glibc's regex code as of September 7, 2014. +# +# Copyright (C) 2014 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. + +. "${srcdir=.}/init.sh"; path_prepend_ ../src + +echo a > in || framework_failure_ + +fail=0 +grep -E '(.?)(.?)(.?)\3\2\1' in > out || fail=1 +compare out in || fail=1 + +Exit $fail -- 1.9.3 --------------090508060707070702010302-- From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 10 23:10:59 2014 Received: (at 18425) by debbugs.gnu.org; 11 Sep 2014 03:10:59 +0000 Received: from localhost ([127.0.0.1]:37182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XRumh-00031J-77 for submit@debbugs.gnu.org; Wed, 10 Sep 2014 23:10:59 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:64149) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XRume-00031A-9Z for 18425@debbugs.gnu.org; Wed, 10 Sep 2014 23:10:56 -0400 Received: by mail-wi0-f177.google.com with SMTP id em10so3143301wid.16 for <18425@debbugs.gnu.org>; Wed, 10 Sep 2014 20:10:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=mdvOYqI2mWUoYpYDLCTxlpeMsqrsrA5U5ue0g11rIZ4=; b=yic8zP2NVFi8jBIAINsIC14kixTNbmuhm7lAgY2KkZuT0mMKn24zVr7PffRbjhn+8+ WM9XRPX/tcvzx13CMDW+B48uZcAUEwc9FwVVjlMhkY3UzdupmJcSLmbrJyr3Wv1cW1mx jaWgCPbTIDl1UWyXOC3CM03D4nduujDIO5lyb4GNmnUPJEbOzjfMUsP12hkjY/cxFQ2C YSULu7DQ43PR2x1o4mlfFUdYCtHH2sMXRGGzGnP8iauJI8KbVJyFLYxl6kUIq1s/N/Qg zIctQe0j7uxfN2VLHrtpYWu4MWs/v82uiUxqKOlbU0lQzNr+Y/ARbLTMBUzyhGhfvUo3 yNAQ== X-Received: by 10.194.61.65 with SMTP id n1mr51372479wjr.19.1410405055619; Wed, 10 Sep 2014 20:10:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.41.202 with HTTP; Wed, 10 Sep 2014 20:10:35 -0700 (PDT) In-Reply-To: <540DDE93.4070905@cs.ucla.edu> References: <540DDE93.4070905@cs.ucla.edu> From: Jim Meyering Date: Wed, 10 Sep 2014 20:10:35 -0700 X-Google-Sender-Auth: 9qOCG5sDFiyk1WH-m_NFXDGVN7k Message-ID: Subject: Re: bug#18425: test for new glibc regex bug To: Paul Eggert Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18425 Cc: 18425@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Mon, Sep 8, 2014 at 9:51 AM, Paul Eggert wrote: > Thanks. How about the attached simpler patch instead? Since grep always > uses glibc-compatible regex (and supplies its own substitute when the system > lacks one), and since all known glibc-compatible implementations fail, it > should be safe to assume that grep will fail on the new test. We can worry > about dealing with test successes later, when the bug gets fixed (and > presumably grep's substitute regex implementation will get fixed too). Hi Paul, Thanks for the review and suggestion. But what about configure's --without-included-regex option? With it, the test may well pass (counted as a failure, here) on systems without glibc. From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 10 23:40:32 2014 Received: (at 18425) by debbugs.gnu.org; 11 Sep 2014 03:40:32 +0000 Received: from localhost ([127.0.0.1]:37193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XRvFG-0003kZ-GT for submit@debbugs.gnu.org; Wed, 10 Sep 2014 23:40:31 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:46301) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XRvFD-0003kP-3Q for 18425@debbugs.gnu.org; Wed, 10 Sep 2014 23:40:28 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id B0CDA39E801B; Wed, 10 Sep 2014 20:40:25 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bhVj+iTxwcQO; Wed, 10 Sep 2014 20:40:17 -0700 (PDT) Received: from [192.168.1.9] (pool-71-177-17-123.lsanca.dsl-w.verizon.net [71.177.17.123]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 0366739E8011; Wed, 10 Sep 2014 20:40:17 -0700 (PDT) Message-ID: <541119A0.1040108@cs.ucla.edu> Date: Wed, 10 Sep 2014 20:40:16 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Jim Meyering Subject: Re: bug#18425: test for new glibc regex bug References: <540DDE93.4070905@cs.ucla.edu> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: 18425 Cc: 18425@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.8 (----) Jim Meyering wrote: > what about configure's --without-included-regex option? > With it, the test may well pass (counted as a failure, here) on > systems without glibc. Grep uses the glibc interface for regular expressions, and I expect that every current implementation of that interface has the bug, so this shouldn't be an issue now (though it would be an issue if the bug is ever fixed). Or were you thinking of glibc 2.2.6 and earlier? That might not have the bug, as it predates the circa-2002 regex rewrite that introduced the bug. I suspect, though, that 2.2.6 regex would fail several other tests. Are glibc versions this old still being used? (Do users really complain when XFAIL tests succeed instead of failing as predicted? Dumb question, I know; they'll complain about anything....) From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 11 11:00:48 2014 Received: (at 18425) by debbugs.gnu.org; 11 Sep 2014 15:00:48 +0000 Received: from localhost ([127.0.0.1]:38218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XS5rb-00085W-82 for submit@debbugs.gnu.org; Thu, 11 Sep 2014 11:00:48 -0400 Received: from mail-wg0-f46.google.com ([74.125.82.46]:55072) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XS5rY-00085N-VI for 18425@debbugs.gnu.org; Thu, 11 Sep 2014 11:00:45 -0400 Received: by mail-wg0-f46.google.com with SMTP id n12so8309120wgh.17 for <18425@debbugs.gnu.org>; Thu, 11 Sep 2014 08:00:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=bqETjfxjZvAwJrw7DadmfQSOuf1EBHKEk0pdM2RmT28=; b=RC971+s3dUcZ29057tMsZ7brJ52Xp5Lpy2BtQrdpmgiOCWDsFarVMp4J5KkVR7m3qB 97AGSSU16DonesEuosXqmczpuws2EtkROl8cXpnqbm5GcByorTkn2+nJNiEd6yYmG4LM l5YRRdSdscPp/bT6DL5zqPsdWLqCKC1lIBlSeq34L7NBhTGv1/IFgvX47c/FONslwBKy g8uHSSNJ0D4mGs7fJlIJJSPcCP/TyV6/TaWWGi2jxn6ji40+qsyLadEtMs61kOkDQubU OAxPVl6taHuRt17bVP7ylO5oKWe8u4+Nt2nmD/pH8iacS2yHSeGeD25u2GB//in4wegJ BhiQ== X-Received: by 10.180.11.234 with SMTP id t10mr2927216wib.49.1410447637059; Thu, 11 Sep 2014 08:00:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.41.202 with HTTP; Thu, 11 Sep 2014 08:00:16 -0700 (PDT) In-Reply-To: <541119A0.1040108@cs.ucla.edu> References: <540DDE93.4070905@cs.ucla.edu> <541119A0.1040108@cs.ucla.edu> From: Jim Meyering Date: Thu, 11 Sep 2014 08:00:16 -0700 X-Google-Sender-Auth: LBfZ17lp2gwhqICoUA-M00AtqJc Message-ID: Subject: Re: bug#18425: test for new glibc regex bug To: Paul Eggert Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18425 Cc: 18425 <18425@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Wed, Sep 10, 2014 at 8:40 PM, Paul Eggert wrote: > Jim Meyering wrote: >> >> what about configure's --without-included-regex option? >> With it, the test may well pass (counted as a failure, here) on >> systems without glibc. > > > Grep uses the glibc interface for regular expressions, and I expect that > every current implementation of that interface has the bug, so this > shouldn't be an issue now (though it would be an issue if the bug is ever > fixed). > > Or were you thinking of glibc 2.2.6 and earlier? That might not have the > bug, as it predates the circa-2002 regex rewrite that introduced the bug. I > suspect, though, that 2.2.6 regex would fail several other tests. Are glibc > versions this old still being used? > > (Do users really complain when XFAIL tests succeed instead of failing as > predicted? Dumb question, I know; they'll complain about anything....) That's it. When an XFAIL test passes, the framework counts it as a failure and requests that a report including test-suite.log be sent to the bug-reporting address. I have found that it is almost always worthwhile to invest in avoiding those :-) From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 11 16:00:23 2014 Received: (at control) by debbugs.gnu.org; 11 Sep 2014 20:00:23 +0000 Received: from localhost ([127.0.0.1]:38492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XSAXW-0000j0-E3 for submit@debbugs.gnu.org; Thu, 11 Sep 2014 16:00:22 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:56230) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XSAXT-0000io-6x for control@debbugs.gnu.org; Thu, 11 Sep 2014 16:00:20 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 0CD9DA60001 for ; Thu, 11 Sep 2014 13:00:18 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r+mfoRD8mXKY for ; Thu, 11 Sep 2014 13:00:09 -0700 (PDT) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 7CB2DA6001E for ; Thu, 11 Sep 2014 13:00:09 -0700 (PDT) Message-ID: <5411FF49.1090207@cs.ucla.edu> Date: Thu, 11 Sep 2014 13:00:09 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: grep bug maintenance Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.8 (----) close 18425 severity 18406 wishlist tags 18406 patch thanks From unknown Sat Jun 21 03:23:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 10 Oct 2014 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator