You are not logged in.

#1 2010-03-29 05:40:27

roy_hu
Member
Registered: 2009-10-29
Posts: 85

Weird grep segfault?

Could anyone confirm if the following steps result in a segfault?

wget http://www.cs.cornell.edu/Courses/cs3110/2009fa/lectures/src/Infer.zip
unzip Infer.zip
cd Infer
GREP_OPTIONS= grep -R --exclude-dir=foo bar *

In the last line, we reset the GREP_OPTIONS environment variable to remove any predefined options. If you remove either "-R" or "--exclude-dir=", grep runs just fine. But with both options, grep segfaults.

Offline

#2 2010-03-29 05:46:01

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,491
Website

Re: Weird grep segfault?

It is a known issue.  grep-2.6.2 looks like it will be released upstream tomorrow with a fix.

Offline

#3 2010-03-29 05:53:13

roy_hu
Member
Registered: 2009-10-29
Posts: 85

Re: Weird grep segfault?

I see. Found the bug here: http://bugs.archlinux.org/task/18863

Offline

Board footer

Powered by FluxBB