grep - Bugs: bug #17457, "grep -r foo . >...
You are not allowed to post comments on this tracker with your current authentication level.
bug #17457: "grep -r foo . > somefile" goes into an infinite loop
Submitter: | None | ||
Submitted: | Fri 18 Aug 2006 12:08:06 AM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | None | Status: | Invalid |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed |
Sat 06 Feb 2010 01:18:36 PM UTC, comment #4: |
Paolo Bonzini <bonzini> |
Fri 04 Dec 2009 08:01:19 PM UTC, comment #3: I didn't test it, but the racy scenario seems plausible. Leaving open since you agree about switching to fts. |
Paolo Bonzini <bonzini> |
Fri 04 Dec 2009 07:43:12 PM UTC, comment #2: Hi Paolo,
|
Jim Meyering <meyering> |
Fri 04 Dec 2009 07:26:55 PM UTC, comment #1: Jim, I'm thinking of switching from savedir to fts. Do you think this would fix this? If not, we should close this bug. |
Paolo Bonzini <bonzini> |
Fri 18 Aug 2006 12:08:06 AM UTC, original submission:
When using grep -r and redirecting output to a file in the traversed directory, grep sometimes enters in an infinite loop, and size of output file grows endelessly.
|
Anonymous |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 3 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2010-02-06 | bonzini | Status | None | Invalid | |
Open/Closed | Open | Closed | |||
2009-12-04 | bonzini | Carbon-Copy | - | Added meyering |
Powered by Savane 3.13-4448.
Corresponding source code
Hmm, this cannot be fixed. By definition the output file can grow indefinitely, and grep will have to read it until EOF.