bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#43527: [PATCH] grep: avoid unneeded compilation of regex


From: Norihiro Tanaka
Subject: bug#43527: [PATCH] grep: avoid unneeded compilation of regex
Date: Wed, 23 Sep 2020 12:04:26 +0900

On Tue, 22 Sep 2020 16:25:06 -0700
Jim Meyering <jim@meyering.net> wrote:

> Oh! Good timing. I was about to make a new snapshot.
> Do you happen to have a test case handy that demonstrates the failure?

I added test case to previous patch.

By the way, I found the following bug in making the test case, and it's
still left.

$ env LC_ALL=tr_TR.utf8 grep -Fio i in
Aborted (core dumped)

(gdb) bt
#0  0x0000003b8d032495 in raise () from /lib64/libc.so.6
#1  0x0000003b8d033c75 in abort () from /lib64/libc.so.6
#2  0x000000000040cdde in kwsinit (mb_trans=true) at searchutils.c:64
#3  0x0000000000409624 in Fcompile (pattern=0x23c1240 "i\n", size=1, ignored=0, 
exact=true) at kwsearch.c:56
#4  0x0000000000409378 in main (argc=4, argv=0x7ffe76048388) at grep.c:2977

Attachment: 0001-grep-fix-a-bug-in-the-previous-commit.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]