GNU bug report logs - #25180
grep: (standard input): Invalid argument

Previous Next

Package: grep;

Reported by: Andreas Schwab <schwab <at> suse.de>

Date: Mon, 12 Dec 2016 10:12:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25180 in the body.
You can then email your comments to 25180 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

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


Report forwarded to bug-grep <at> gnu.org:
bug#25180; Package grep. (Mon, 12 Dec 2016 10:12:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Schwab <schwab <at> suse.de>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Mon, 12 Dec 2016 10:12:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> suse.de>
To: bug-grep <at> gnu.org
Subject: grep: (standard input): Invalid argument
Date: Mon, 12 Dec 2016 11:10:48 +0100
$ grep ^Sig < /proc/self/status >/dev/null
grep: (standard input): Invalid argument
$ strace -e lseek grep ^Sig < /proc/self/status >/dev/null
lseek(0, 0, SEEK_CUR)                   = 0
lseek(0, 0, SEEK_END)                   = -1 EINVAL (Invalid argument)
grep: (standard input): Invalid argument
+++ exited with 2 +++

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Mon, 12 Dec 2016 16:41:02 GMT) Full text and rfc822 format available.

Notification sent to Andreas Schwab <schwab <at> suse.de>:
bug acknowledged by developer. (Mon, 12 Dec 2016 16:41:02 GMT) Full text and rfc822 format available.

Message #10 received at 25180-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Andreas Schwab <schwab <at> suse.de>, 25180-done <at> debbugs.gnu.org
Subject: Re: bug#25180: grep: (standard input): Invalid argument
Date: Mon, 12 Dec 2016 08:40:09 -0800
[Message part 1 (text/plain, inline)]
Thanks, I didn't know about that lseek glitch with the proc file system. 
I installed the attached patch to the grep master.

The use case seems unusual. Did a user discover this in practice?
[0001-grep-work-around-proc-lseek-glitch.patch (application/x-patch, attachment)]

Information forwarded to bug-grep <at> gnu.org:
bug#25180; Package grep. (Mon, 12 Dec 2016 16:48:02 GMT) Full text and rfc822 format available.

Message #13 received at 25180-done <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> suse.de>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 25180-done <at> debbugs.gnu.org
Subject: Re: bug#25180: grep: (standard input): Invalid argument
Date: Mon, 12 Dec 2016 17:47:36 +0100
On Dez 12 2016, Paul Eggert <eggert <at> cs.ucla.edu> wrote:

> The use case seems unusual. Did a user discover this in practice?

https://build.opensuse.org/package/live_build_log/devel:tools/strace/openSUSE_Tumbleweed/x86_64

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 10 Jan 2017 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 164 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.