Debian Bug report logs - #439827
grep -vw segfault on word matches in UTF-8 locales

version graph

Package: grep; Maintainer for grep is Anibal Monsalve Salazar <anibal@debian.org>; Source for grep is src:grep (PTS, buildd, popcon).

Reported by: Loïc Minier <lool@dooz.org>

Date: Mon, 27 Aug 2007 18:57:01 UTC

Severity: critical

Tags: confirmed, patch

Merged with 440195, 440342, 440409, 440520

Found in version grep/2.5.3~dfsg-1

Fixed in versions grep/2.5.3~dfsg-2, 2.5.3~dfsg-3

Done: Justin Pryzby <jpryzby+d@quoininc.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to Loïc Minier <lool@dooz.org>:
New Bug report received and forwarded. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Loïc Minier <lool@dooz.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: grep -vw segfault on word matches in UTF-8 locales
Date: Mon, 27 Aug 2007 20:51:23 +0200
Package: grep
Version: 2.5.3~dfsg-1
Severity: normal
File: /bin/grep

        Hi,

 % echo -foo | grep -vw foo
 zsh: done                echo -foo | 
 zsh: segmentation fault  grep --color=auto -vw foo

(gdb) bt
#0  0xb7ea2269 in memchr () from /lib/i686/cmov/libc.so.6
#1  0x0804ab43 in ?? ()
#2  0x00000001 in ?? ()
#3  0x0000000a in ?? ()
#4  0x08064001 in ?? ()
#5  0x08064006 in ?? ()

 Seems to happen in fr_FR.UTF-8 and en_US.UTF-8, but not in C locale.

 After I rebuilt with DEB_BUILD_OPTIONS="nostrip noopt", I got:
(gdb) bt
#0  0xb7e21269 in memchr () from /lib/i686/cmov/libc.so.6
#1  0x0804ab43 in prtext ()
#2  0x0804ae0c in grepbuf ()
#3  0x0804b79b in grepfile ()
#4  0x0804d6c7 in main ()

 I don't have any more context available, I hope you can reproduce the
 bug.

   Bye,


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-1-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grep depends on:
ii  libc6                         2.6.1-1+b1 GNU C Library: Shared libraries

grep recommends no packages.

-- no debconf information

-- 
Loïc Minier



Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to Justin Pryzby <jpryzby+dhcpsf@quoininc.com>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #10 received at 439827@bugs.debian.org (full text, mbox, reply):

From: Justin Pryzby <jpryzby+dhcpsf@quoininc.com>
To: Loïc Minier <lool@dooz.org>, 439827@bugs.debian.org, bug-grep@gnu.org
Cc: control@bugs.debian.org
Subject: Re: Bug#439827: grep -vw segfault on word matches in UTF-8 locales
Date: Mon, 27 Aug 2007 16:30:21 -0400
severity 439827 important
tag 439827 confirmed upstream
forwarded 439827 bug-grep@gnu.org
thanks

This crash was reported for the new grep upload.

On Mon, Aug 27, 2007 at 08:51:23PM +0200, Loïc Minier wrote:
> Package: grep
> Version: 2.5.3~dfsg-1
> Severity: normal
> File: /bin/grep
> 
>         Hi,
> 
>  % echo -foo | grep -vw foo
>  zsh: done                echo -foo | 
>  zsh: segmentation fault  grep --color=auto -vw foo

>  Seems to happen in fr_FR.UTF-8 and en_US.UTF-8, but not in C locale.
> 
>  After I rebuilt with DEB_BUILD_OPTIONS="nostrip noopt", I got:
> (gdb) bt
> #0  0xb7e21269 in memchr () from /lib/i686/cmov/libc.so.6
> #1  0x0804ab43 in prtext ()
> #2  0x0804ae0c in grepbuf ()
> #3  0x0804b79b in grepfile ()
> #4  0x0804d6c7 in main ()



Severity set to `important' from `normal' Request was from Justin Pryzby <jpryzby+dhcpsf@quoininc.com> to control@bugs.debian.org. (Mon, 27 Aug 2007 20:33:02 GMT) (full text, mbox, link).


Tags added: confirmed, upstream Request was from Justin Pryzby <jpryzby+dhcpsf@quoininc.com> to control@bugs.debian.org. (Mon, 27 Aug 2007 20:33:03 GMT) (full text, mbox, link).


Noted your statement that Bug has been forwarded to bug-grep@gnu.org. Request was from Justin Pryzby <jpryzby+dhcpsf@quoininc.com> to control@bugs.debian.org. (Mon, 27 Aug 2007 20:33:04 GMT) (full text, mbox, link).


Tags added: upstream Request was from Justin Pryzby <jpryzby+dhcpsf@quoininc.com> to control@bugs.debian.org. (Tue, 28 Aug 2007 15:15:03 GMT) (full text, mbox, link).


Forwarded-to-address changed from bug-grep@gnu.org to bug-grep@gnu.org. Request was from Justin Pryzby <jpryzby+dhcpsf@quoininc.com> to control@bugs.debian.org. (Tue, 28 Aug 2007 15:15:03 GMT) (full text, mbox, link).


Tags added: upstream Request was from Justin Pryzby <jpryzby+dhcpsf@quoininc.com> to control@bugs.debian.org. (Thu, 30 Aug 2007 16:09:02 GMT) (full text, mbox, link).


Forwarded-to-address changed from bug-grep@gnu.org to bug-grep@gnu.org. Request was from Justin Pryzby <jpryzby+dhcpsf@quoininc.com> to control@bugs.debian.org. (Thu, 30 Aug 2007 16:09:03 GMT) (full text, mbox, link).


Forcibly Merged 439827 439931 440195 440342 440409. Request was from Justin Pryzby <jpryzby+dhcpsf@quoininc.com> to control@bugs.debian.org. (Sat, 01 Sep 2007 11:09:04 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to jpryzby@quoininc.com (Justin Pryzby):
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #31 received at 439827@bugs.debian.org (full text, mbox, reply):

From: jpryzby@quoininc.com (Justin Pryzby)
To: control@bugs.debian.org
Cc: 439827@bugs.debian.org, 440520@bugs.debian.org
Subject: forcibly merging 439827 440520, bug 439827 is not forwarded
Date: Sun, 2 Sep 2007 10:51:42 -0400 (EDT)
# Automatically generated email from bts, devscripts version 2.10.7
forcemerge 439827 440520
# Make the high severity bug obvious
notforwarded 439827



Forcibly Merged 439827 439931 440195 440342 440409 440520. Request was from jpryzby@quoininc.com (Justin Pryzby) to control@bugs.debian.org. (Sun, 02 Sep 2007 14:54:03 GMT) (full text, mbox, link).


Removed annotation that Bug had been forwarded to bug-grep@gnu.org. Request was from jpryzby@quoininc.com (Justin Pryzby) to control@bugs.debian.org. (Sun, 02 Sep 2007 14:54:08 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to Aníbal Monsalve Salazar <anibal@debian.org>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #40 received at 439827@bugs.debian.org (full text, mbox, reply):

From: Aníbal Monsalve Salazar <anibal@debian.org>
To: Loïc Minier <lool@dooz.org>
Cc: Santiago Ruano Rincón <santiago@debian.org>, 439827@bugs.debian.org
Subject: Re: Bug#439827: grep -vw segfault on word matches in UTF-8 locales
Date: Mon, 3 Sep 2007 23:11:41 +1000
[Message part 1 (text/plain, inline)]
On Mon, Aug 27, 2007 at 08:51:23PM +0200, Loïc Minier wrote:
>Package: grep
>Version: 2.5.3~dfsg-1
>Severity: normal
>File: /bin/grep
>
>        Hi,
>
> % echo -foo | grep -vw foo
> zsh: done                echo -foo | 
> zsh: segmentation fault  grep --color=auto -vw foo
>
>(gdb) bt
>#0  0xb7ea2269 in memchr () from /lib/i686/cmov/libc.so.6
>#1  0x0804ab43 in ?? ()
>#2  0x00000001 in ?? ()
>#3  0x0000000a in ?? ()
>#4  0x08064001 in ?? ()
>#5  0x08064006 in ?? ()
>
> Seems to happen in fr_FR.UTF-8 and en_US.UTF-8, but not in C locale.
>
> After I rebuilt with DEB_BUILD_OPTIONS="nostrip noopt", I got:
>(gdb) bt
>#0  0xb7e21269 in memchr () from /lib/i686/cmov/libc.so.6
>#1  0x0804ab43 in prtext ()
>#2  0x0804ae0c in grepbuf ()
>#3  0x0804b79b in grepfile ()
>#4  0x0804d6c7 in main ()
>
> I don't have any more context available, I hope you can reproduce the
> bug.
>
>   Bye,
>
>
>-- System Information:
>Debian Release: lenny/sid
>  APT prefers unstable
>  APT policy: (500, 'unstable'), (1, 'experimental')
>Architecture: i386 (i686)
>
>Kernel: Linux 2.6.22-1-686 (SMP w/2 CPU cores)
>Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
>Shell: /bin/sh linked to /bin/dash
>
>Versions of packages grep depends on:
>ii  libc6                         2.6.1-1+b1 GNU C Library: Shared libraries
>
>grep recommends no packages.
>
>-- no debconf information
>
>-- 
>Loïc Minier

Hello Loïc,

I didn't get a segfault when I run neither 'echo -foo | grep --color=auto -vw foo'
nor 'echo -foo | grep -vw foo'.

When I run 'echo -foo bar | grep --color=auto -w foo -foo bar', I get:

-foo bar

with "foo" coloured red.

$ dpkg -l grep libc6 | grep ^ii
ii  grep           2.5.3~dfsg-1   GNU grep, egrep and fgrep
ii  libc6          2.6.1-1+b1     GNU C Library: Shared libraries

$ locale
LANG=en_AU
LC_CTYPE="en_AU"
LC_NUMERIC="en_AU"
LC_TIME="en_AU"
LC_COLLATE="en_AU"
LC_MONETARY="en_AU"
LC_MESSAGES="en_AU"
LC_PAPER="en_AU"
LC_NAME="en_AU"
LC_ADDRESS="en_AU"
LC_TELEPHONE="en_AU"
LC_MEASUREMENT="en_AU"
LC_IDENTIFICATION="en_AU"
LC_ALL=

Best Regards,

Aníbal Monsalve Salazar
-- 
http://v7w.com/anibal
[signature.asc (application/pgp-signature, inline)]

Information stored:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to Justin Pryzby <jpryzby+d@quoininc.com>:
Extra info received and filed, but not forwarded. (full text, mbox, link).


Message #45 received at 439827-quiet@bugs.debian.org (full text, mbox, reply):

From: Justin Pryzby <jpryzby+d@quoininc.com>
To: Aníbal Monsalve Salazar <anibal@debian.org>, 439827-quiet@bugs.debian.org
Cc: Loïc Minier <lool@dooz.org>, Santiago Ruano Rincón <santiago@debian.org>
Subject: Re: Bug#439827: grep -vw segfault on word matches in UTF-8 locales
Date: Mon, 3 Sep 2007 10:16:52 -0400
On Mon, Sep 03, 2007 at 11:11:41PM +1000, Aníbal Monsalve Salazar wrote:
> On Mon, Aug 27, 2007 at 08:51:23PM +0200, Loïc Minier wrote:
> >Package: grep
> >Version: 2.5.3~dfsg-1
> >Severity: normal
> >File: /bin/grep
> >
> >        Hi,
> >
> > % echo -foo | grep -vw foo
> > zsh: done                echo -foo | 
> > zsh: segmentation fault  grep --color=auto -vw foo

> > Seems to happen in fr_FR.UTF-8 and en_US.UTF-8, but not in C locale.

> I didn't get a segfault when I run neither 'echo -foo | grep --color=auto -vw foo'
The --color wasn't necessary.   Loïc apparently has grep aliased or
GREP_OPTIONS set?

> $ locale
> LANG=en_AU
What about LANG=en_AU.UTF8?

$ echo -foo |LC_ALL=en_AU ./tmp/grep.unstable -vw foo
$ echo -foo |LC_ALL=en_AU.UTF8 ./tmp/grep.unstable -vw
foo
Segmentation fault

I just re-confirmed the reported misbehavior of the rest of these grep
bugs too.

Justin



Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to Pierre Habouzit <madcoder@debian.org>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #50 received at 439827@bugs.debian.org (full text, mbox, reply):

From: Pierre Habouzit <madcoder@debian.org>
To: Aníbal Monsalve Salazar <anibal@debian.org>, 440342@bugs.debian.org, 440195@bugs.debian.org, 439827@bugs.debian.org
Cc: Norbert Kiesel <nkiesel@tbdnetworks.com>, Santiago Ruano Rincón <santiago@debian.org>, arno renevier <arenevier@fdn.fr>, Loïc Minier <lool@dooz.org>
Subject: Re: Bug#440342: "grep -w" implies "-o"
Date: Mon, 03 Sep 2007 18:04:39 +0200
[Message part 1 (text/plain, inline)]
On Mon, Sep 03, 2007 at 01:29:48PM +0000, Aníbal Monsalve Salazar wrote:
> On Fri, Aug 31, 2007 at 10:43:26AM -0700, Norbert Kiesel wrote:
> >Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> >ii  libc6                         2.6.1-1+b1 GNU C Library: Shared libraries
> I couldn't reproduce this bug.
> 
> $ dpkg -l grep libc6 | grep ^ii
> ii  grep           2.5.3~dfsg-1   GNU grep, egrep and fgrep
> ii  libc6          2.6.1-1+b1     GNU C Library: Shared libraries
> 
> $ locale
> LANG=en_AU


On Mon, Sep 03, 2007 at 01:24:09PM +0000, Aníbal Monsalve Salazar wrote:
> On Thu, Aug 30, 2007 at 05:33:21PM +0200, arno renevier wrote:
> >Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
> >ii  libc6                         2.6.1-1+b1 GNU C Library: Shared libraries
> $ dpkg -l grep libc6 | grep ^ii
> ii  grep           2.5.3~dfsg-1   GNU grep, egrep and fgrep
> ii  libc6          2.6.1-1+b1     GNU C Library: Shared libraries
> 
> $ locale
> LANG=en_AU


On Mon, Sep 03, 2007 at 01:11:41PM +0000, Aníbal Monsalve Salazar wrote:
> On Mon, Aug 27, 2007 at 08:51:23PM +0200, Loïc Minier wrote:
> >Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
> >ii  libc6                         2.6.1-1+b1 GNU C Library: Shared libraries

> I didn't get a segfault when I run neither 'echo -foo | grep --color=auto -vw foo'
> nor 'echo -foo | grep -vw foo'.
> 
> When I run 'echo -foo bar | grep --color=auto -w foo -foo bar', I get:
> 
> -foo bar
> 
> with "foo" coloured red.
> 
> $ dpkg -l grep libc6 | grep ^ii
> ii  grep           2.5.3~dfsg-1   GNU grep, egrep and fgrep
> ii  libc6          2.6.1-1+b1     GNU C Library: Shared libraries
> 
> $ locale
> LANG=en_AU

  You're playing with everyone's nerves are you ? Don't you grok that
you are not reproducing the bug in the environment reported by every
single users ? It's pretty obvious the issue is with utf-8 locales, and
you're trying in one that isn't even a multi-byte one.


  I was pretty dismayed when you sent me a similar answer, I just can't
believe that you just handwave a "I can't reproduce it" to every single
user that has issues with the last grep release. Do you believe everyone
is just making it up to annoy you ?

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to Aníbal Monsalve Salazar <anibal@debian.org>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #55 received at 439827@bugs.debian.org (full text, mbox, reply):

From: Aníbal Monsalve Salazar <anibal@debian.org>
To: Justin Pryzby <jpryzby+d@quoininc.com>
Cc: 439827@bugs.debian.org, Loïc Minier <lool@dooz.org>, arno renevier <arenevier@fdn.fr>, Norbert Kiesel <nkiesel@tbdnetworks.com>, Antti-Juhani Kaijanaho <ajk@debian.org>, Pierre Habouzit <madcoder@debian.org>, Santiago Ruano Rincón <santiago@debian.org>
Subject: Re: Bug#439827: grep -vw segfault on word matches in UTF-8 locales
Date: Tue, 4 Sep 2007 08:31:24 +1000
[Message part 1 (text/plain, inline)]
On Mon, Sep 03, 2007 at 10:16:52AM -0400, Justin Pryzby wrote:
>On Mon, Sep 03, 2007 at 11:11:41PM +1000, Aníbal Monsalve Salazar wrote:
>>On Mon, Aug 27, 2007 at 08:51:23PM +0200, Loïc Minier wrote:
>>>Package: grep
>>>Version: 2.5.3~dfsg-1
>>>Severity: normal
>>>File: /bin/grep
>>>
>>>       Hi,
>>>
>>>% echo -foo | grep -vw foo
>>>zsh: done                echo -foo | 
>>>zsh: segmentation fault  grep --color=auto -vw foo
>
>>>Seems to happen in fr_FR.UTF-8 and en_US.UTF-8, but not in C locale.
>
>>I didn't get a segfault when I run either 'echo -foo | grep --color=auto -vw foo'
>The --color wasn't necessary.   Loïc apparently has grep aliased or
>GREP_OPTIONS set?
>
>>$ locale
>>LANG=en_AU
>What about LANG=en_AU.UTF8?
>
>$ echo -foo |LC_ALL=en_AU ./tmp/grep.unstable -vw foo
>$ echo -foo |LC_ALL=en_AU.UTF8 ./tmp/grep.unstable -vw
>foo
>Segmentation fault
>
>I just re-confirmed the reported misbehavior of the rest of these grep
>bugs too.
>
>Justin

Hello Justin,

I can reproduce it here. I'll try to fix it. If someone has a patch
please let us know.

$ dpkg -l grep | grep ^ii
ii  grep           2.5.1.ds2-6    GNU grep, egrep and fgrep

anibal@kamsa:~$ echo -foo |LC_ALL=en_AU.UTF8 grep -vw foo

anibal@kamsa:~$ echo -foo |LC_ALL=en_AU.UTF8 grep -w foo
-foo

anibal@kamsa:~$ dpkg -l grep | grep ^ii
ii  grep           2.5.3~dfsg-1   GNU grep, egrep and fgrep

anibal@kamsa:~$ echo -foo |LC_ALL=en_AU.UTF8 grep -vw foo
Segmentation fault

anibal@kamsa:~$ echo -foo |LC_ALL=en_AU.UTF8 grep -w foo

anibal@kamsa:~$ echo -e '-foo\n-foo' |LC_ALL=en_AU.UTF8 grep -w foo
foofoo

Aníbal Monsalve Salazar
-- 
http://v7w.com/anibal
[signature.asc (application/pgp-signature, inline)]

Disconnected #439931 from all other report(s). Request was from Justin Pryzby <jpryzby+d@quoininc.com> to control@bugs.debian.org. (Tue, 04 Sep 2007 07:48:03 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to Santiago Ruano Rincón <santiago@debian.org>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #62 received at submit@bugs.debian.org (full text, mbox, reply):

From: Santiago Ruano Rincón <santiago@debian.org>
To: Loïc Minier <lool@dooz.org>, 439827@bugs.debian.org
Cc: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Re: Bug#439827: grep -vw segfault on word matches in UTF-8 locales
Date: Tue, 4 Sep 2007 17:22:35 -0500
[Message part 1 (text/plain, inline)]
Hi,

Please, could you help me to test if this package [1] fixes the problem

[1] http://people.debian.org/~santiago/grep_2.5.3~dfsg-1+1_i386.deb

Best regards,

Santiago
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to Santiago Ruano Rincón <santiago@debian.org>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to arno <arenevier@fdn.fr>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #72 received at submit@bugs.debian.org (full text, mbox, reply):

From: arno <arenevier@fdn.fr>
To: Santiago Ruano Rincón <santiago@debian.org>
Cc: Loïc Minier <lool@dooz.org>, 439827@bugs.debian.org, Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Re: Bug#439827: grep -vw segfault on word matches in UTF-8 locales
Date: Wed, 5 Sep 2007 00:40:13 +0200
[Message part 1 (text/plain, inline)]
Le mardi 04 septembre 2007, à 17:22:35 -0500, Santiago a écrit : 
> 
> Please, could you help me to test if this package [1] fixes the problem
> 
> [1] http://people.debian.org/~santiago/grep_2.5.3~dfsg-1+1_i386.deb

It does not seem to fix the problem:
I installed you package, and tried examples given in bugs 439827, 440195, and 
440342, and they all failed.

my locale is 
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to arno <arenevier@fdn.fr>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to Justin Pryzby <jpryzby+d@quoininc.com>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #82 received at 439827@bugs.debian.org (full text, mbox, reply):

From: Justin Pryzby <jpryzby+d@quoininc.com>
To: Santiago Ruano Rincón <santiago@debian.org>, 439827@bugs.debian.org
Subject: Re: Bug#439827: grep -vw segfault on word matches in UTF-8 locales
Date: Tue, 4 Sep 2007 18:46:09 -0400
On Tue, Sep 04, 2007 at 05:22:35PM -0500, Santiago Ruano Rincón wrote:
> Hi,
> 
> Please, could you help me to test if this package [1] fixes the problem
> 
> [1] http://people.debian.org/~santiago/grep_2.5.3~dfsg-1+1_i386.deb
Can you provide a source package/interdiff?

Thanks
Justin



Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to "Ari Pollak" <ari@debian.org>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #87 received at 439827@bugs.debian.org (full text, mbox, reply):

From: "Ari Pollak" <ari@debian.org>
To: 439827@bugs.debian.org
Subject: backtrace + patch
Date: Tue, 4 Sep 2007 23:16:45 -0400 (EDT)
Here is the full backtrace of the crash:

#0  0x00002b373087b4e0 in memchr () from /lib/libc.so.6
No symbol table info available.
#1  0x000000000040325c in prtext (beg=<value optimized out>,
    lim=0x620001 "foo\n", nlinesp=0x0) at grep.c:1022
        nl = 0x1 <Address 0x1 out of bounds>
        bp = 0x0
        p = 0x1 <Address 0x1 out of bounds>
        eol = <value optimized out>
        i = <value optimized out>
        n = <value optimized out>
        used = 0
#2  0x0000000000403565 in grepbuf (beg=<value optimized out>, lim=0x0)
    at grep.c:1077
        b = 0xa <Address 0xa out of bounds>
        endp = 0x0
        nlines = 0
        n = 0
        p = 0x0
        match_offset = <value optimized out>
        match_size = 0
#3  0x0000000000403dd2 in grepfile (file=0x0, stats=0x0) at grep.c:1174
        desc = 0
        count = 0





Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to Santiago Ruano Rincón <santiago@debian.org>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #92 received at 439827@bugs.debian.org (full text, mbox, reply):

From: Santiago Ruano Rincón <santiago@debian.org>
To: arno <arenevier@fdn.fr>
Cc: Loïc Minier <lool@dooz.org>, 439827@bugs.debian.org
Subject: Re: Bug#439827: grep -vw segfault on word matches in UTF-8 locales
Date: Tue, 4 Sep 2007 22:46:38 -0500
[Message part 1 (text/plain, inline)]
Hi,

Uploaded another version. Sorry, in my running I didn't build correctly 
the package and forgot to upload the source.

$ echo -foo | grep -vw foo
$ 

Regards,

Santiago

On Wed, Sep 05, 2007 at 12:40:13AM +0200, arno wrote:
> Le mardi 04 septembre 2007, à 17:22:35 -0500, Santiago a écrit : 
> > 
> > Please, could you help me to test if this package [1] fixes the problem
> > 
> > [1] http://people.debian.org/~santiago/grep_2.5.3~dfsg-1+1_i386.deb
> 
> It does not seem to fix the problem:
> I installed you package, and tried examples given in bugs 439827, 440195, and 
> 440342, and they all failed.
> 
> my locale is 
> Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)


[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to arno <arenevier@fdn.fr>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #97 received at 439827@bugs.debian.org (full text, mbox, reply):

From: arno <arenevier@fdn.fr>
To: Santiago Ruano Rincón <santiago@debian.org>
Cc: arno <arenevier@fdn.fr>, Loïc Minier <lool@dooz.org>, 439827@bugs.debian.org
Subject: Re: Bug#439827: grep -vw segfault on word matches in UTF-8 locales
Date: Wed, 5 Sep 2007 10:05:17 +0200
[Message part 1 (text/plain, inline)]
Le mardi 04 septembre 2007, à 22:46:38 -0500, Santiago a écrit : 
> 
> Uploaded another version. Sorry, in my running I didn't build correctly 
> the package and forgot to upload the source.
> 

With that version, problem is fixed on my machine.

arno.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to arno <arenevier@fdn.fr>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #102 received at 439827@bugs.debian.org (full text, mbox, reply):

From: arno <arenevier@fdn.fr>
To: Santiago Ruano Rincón <santiago@debian.org>
Cc: Loïc Minier <lool@dooz.org>, 439827@bugs.debian.org
Subject: Re: Bug#439827: grep -vw segfault on word matches in UTF-8 locales
Date: Wed, 5 Sep 2007 10:55:40 +0200
[Message part 1 (text/plain, inline)]
Le mercredi 05 septembre 2007, à 10:05:17 +0200, arno a écrit : 
> Le mardi 04 septembre 2007, à 22:46:38 -0500, Santiago a écrit : 
> > 
> > Uploaded another version. Sorry, in my running I didn't build correctly 
> > the package and forgot to upload the source.
> > 
> 
> With that version, problem is fixed on my machine.
> 
> arno.

Oups, looks like it does not work so well.
with your latest version, -w is fixed, but now, -i is broken:

$ echo word > file
$ echo Word >> file
$ grep -i word file
word
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to Nicolas François <nicolas.francois@centraliens.net>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #107 received at 439827@bugs.debian.org (full text, mbox, reply):

From: Nicolas François <nicolas.francois@centraliens.net>
To: Debian Bug Tracking System <439827@bugs.debian.org>
Subject: Patch 65-dfa-optional.patch causes grep regressions
Date: Wed, 5 Sep 2007 21:23:32 +0200
tags 439827 patch
tags 439827 -upstream
thanks

Hello,

The regressions in grep 2.5.3~dfsg-1 are caused by patch
65-dfa-optional.patch.

It should be removed.

As it was used in combination to 64-egf-speedup.patch (which was already
removed) to speed up grep in UTF-8 environments, the resulting grep should
be slow again (#181378 is back)

I will try to have a look at whether these two patches can be re-introduced
next week or later.

By that time, I recommend to remove patch 65-dfa-optional.patch.

Best Regards,
-- 
Nekral



Tags added: patch Request was from Nicolas François <nicolas.francois@centraliens.net> to control@bugs.debian.org. (Wed, 05 Sep 2007 19:30:04 GMT) (full text, mbox, link).


Tags removed: upstream Request was from Nicolas François <nicolas.francois@centraliens.net> to control@bugs.debian.org. (Wed, 05 Sep 2007 19:30:09 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to Justin Pryzby <jpryzby+d@quoininc.com>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #116 received at 439827@bugs.debian.org (full text, mbox, reply):

From: Justin Pryzby <jpryzby+d@quoininc.com>
To: Nicolas François <nicolas.francois@centraliens.net>, 439827@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: Bug#439827: Patch 65-dfa-optional.patch causes grep regressions
Date: Wed, 5 Sep 2007 15:45:50 -0400
tag 439931 - confirmed
thanks

Hello, did you see #439931 too?

On Wed, Sep 05, 2007 at 09:23:32PM +0200, Nicolas François wrote:
> tags 439827 patch
> tags 439827 -upstream
> thanks
> 
> Hello,
> 
> The regressions in grep 2.5.3~dfsg-1 are caused by patch
> 65-dfa-optional.patch.
> 
> It should be removed.
> 
> As it was used in combination to 64-egf-speedup.patch (which was already
> removed) to speed up grep in UTF-8 environments, the resulting grep should
> be slow again (#181378 is back)
> 
> I will try to have a look at whether these two patches can be re-introduced
> next week or later.
> 
> By that time, I recommend to remove patch 65-dfa-optional.patch.



Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to Nicolas François <nicolas.francois@centraliens.net>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #121 received at 439827@bugs.debian.org (full text, mbox, reply):

From: Nicolas François <nicolas.francois@centraliens.net>
To: Justin Pryzby <jpryzby+d@quoininc.com>, 439827@bugs.debian.org
Subject: Re: Bug#439827: Patch 65-dfa-optional.patch causes grep regressions
Date: Wed, 5 Sep 2007 23:01:08 +0200
On Wed, Sep 05, 2007 at 03:45:50PM -0400, Justin Pryzby wrote:
> tag 439931 - confirmed
> thanks

(I don't understand why you un-confirm 439931; it looks like a valid and
reproducible bug to me)

> Hello, did you see #439931 too?

I did not check, but I guess that re-adding the old 64-egf-speedup.patch
should fix it.

Also patches 66-match_icase.patch and 67-w.patch should be considered.

These patches tend to be quite long and hard to maintain. I did not check
if they apply cleanly or not, or even if they were already applied
upstream (based on the result of the test suite, I'm just guessing that
they may still be needed).

Kind Regards,
-- 
Nekral



Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#439827; Package grep. (full text, mbox, link).


Acknowledgement sent to Justin Pryzby <jpryzby+d@quoininc.com>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #126 received at 439827@bugs.debian.org (full text, mbox, reply):

From: Justin Pryzby <jpryzby+d@quoininc.com>
To: Nicolas François <nicolas.francois@centraliens.net>, 439827@bugs.debian.org, 439931@bugs.debian.org
Subject: Re: Bug#439827: Patch 65-dfa-optional.patch causes grep regressions
Date: Wed, 5 Sep 2007 17:47:09 -0400
On Wed, Sep 05, 2007 at 11:01:08PM +0200, Nicolas François wrote:
> On Wed, Sep 05, 2007 at 03:45:50PM -0400, Justin Pryzby wrote:
> > tag 439931 - confirmed
> > thanks
> 
> (I don't understand why you un-confirm 439931; it looks like a valid and
> reproducible bug to me)
I thought that it was specific to amd64, and don't have ready access
to a "pure" 64 bit system on which to check.

Justin



Reply sent to Santiago Ruano Rincón <santiago@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Loïc Minier <lool@dooz.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #131 received at 439827-close@bugs.debian.org (full text, mbox, reply):

From: Santiago Ruano Rincón <santiago@debian.org>
To: 439827-close@bugs.debian.org
Subject: Bug#439827: fixed in grep 2.5.3~dfsg-2
Date: Thu, 06 Sep 2007 12:17:08 +0000
Source: grep
Source-Version: 2.5.3~dfsg-2

We believe that the bug you reported is fixed in the latest version of
grep, which is due to be installed in the Debian FTP archive:

grep_2.5.3~dfsg-2.diff.gz
  to pool/main/g/grep/grep_2.5.3~dfsg-2.diff.gz
grep_2.5.3~dfsg-2.dsc
  to pool/main/g/grep/grep_2.5.3~dfsg-2.dsc
grep_2.5.3~dfsg-2_i386.deb
  to pool/main/g/grep/grep_2.5.3~dfsg-2_i386.deb
grep_2.5.3~dfsg-2_sparc.deb
  to pool/main/g/grep/grep_2.5.3~dfsg-2_sparc.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 439827@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Santiago Ruano Rincón <santiago@debian.org> (supplier of updated grep package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 06 Sep 2007 00:16:20 -0500
Source: grep
Binary: grep
Architecture: source i386 sparc
Version: 2.5.3~dfsg-2
Distribution: unstable
Urgency: low
Maintainer: Anibal Monsalve Salazar <anibal@debian.org>
Changed-By: Santiago Ruano Rincón <santiago@debian.org>
Description: 
 grep       - GNU grep, egrep and fgrep
Closes: 439827 440195 440342
Changes: 
 grep (2.5.3~dfsg-2) unstable; urgency=low
 .
   * Removed 65-dfa-optional.patch. (Closes: #439827, #440195, #440342)
Files: 
 10e134a513b2da9d4387b7a1615828e1 658 utils required grep_2.5.3~dfsg-2.dsc
 3d3415551658ce3a14ec5c8fbbc93099 9921 utils required grep_2.5.3~dfsg-2.diff.gz
 cd8910ae221372381ab0d049fe1392fe 273106 utils required grep_2.5.3~dfsg-2_i386.deb
 52f4af5006882f75c9f3de390050484f 276434 utils required grep_2.5.3~dfsg-2_sparc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG3+3tgY5NIXPNpFURAtK5AKCaKbCswT1zN6uZasHogD/9hivEkACfW5FW
5ZNbuhAUyGouDhnFdMQN/m4=
=MPRI
-----END PGP SIGNATURE-----




Reply sent to Santiago Ruano Rincón <santiago@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to arno renevier <arenevier@fdn.fr>:
Bug acknowledged by developer. (full text, mbox, link).


Reply sent to Santiago Ruano Rincón <santiago@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Norbert Kiesel <nkiesel@tbdnetworks.com>:
Bug acknowledged by developer. (full text, mbox, link).


Reply sent to Santiago Ruano Rincón <santiago@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Pierre Habouzit <madcoder@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Reply sent to Santiago Ruano Rincón <santiago@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Antti-Juhani Kaijanaho <ajk@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 07 Nov 2007 07:25:33 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jan 14 01:25:42 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.