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
Description: Digital signature

