Hi,
Yes, I might not be following "procedure" (I do not know), but I decided
to report this failure, because I canNOT ascertain whether "the list" is
aware of this failure or not.
grep fails on Cygwin (and apparently also on MinGW), as follows:
@@ mkfifo fifo
@@ echo X > fifo & grep . < fifo #
Hi,
See top of file (strace.attach2pid.grep) to learn how I applied
strace.
Regards,
Henriterminal 1:
64-@@ grep . < fifo
terminal 2:
64-@@ strace -o bah --mask=syscall -p 5460 # Cygwin pid of the above process
terminal 3:
64-@@ echo aaa > fifo
Result: look for lseek64
--- Process 5460 created
On 2018-10-06 22:12, Paul Eggert wrote:
Houder wrote:
I applied strace to "grep . < fifo", and as far as I can tell "an
lseek
is applied to the fifo", which obviously fails.
The "lseek" occurs on Cygwin (and MinGW?), but not on Linux
That's expected,
On 2018-10-07 01:45, Paul Eggert wrote:
[snip]
Try running grep as follows
$ gdb src/grep
...
(gdb) run . < fifo
For those reading this thread:
-
https://stackoverflow.com/questions/9031554/gdb-input-redirection-using-cygwin
( gdb input redirection using cygwin )
"It seems that in
On 2018-10-06 22:12, Paul Eggert wrote:
[snip}
My guess is that you've got an old version of grep on Cygwin, and need
to upgrade to the current version. If you still have problems with the
latest version, please investigate via GDB and/or other means exactly
why grep is failing for you ...
Hi
On 2018-10-08 17:49, Paul Eggert wrote:
On 10/8/18 12:35 AM, Houder wrote:
grep terminates with an error on Cygwin because lseek() on Cygwin
fails to
ascertain that it is applied to a FIFO.
That sounds like a bug in Cygwin, then. Can you find out exactly why
it occurs, by using GDB within
On 2018-10-08 20:10, Houder wrote:
[snip]
Here NtQueryInformationFile() is called, which fails with
s/ NtQueryInformationFile / NtSetInformationFile /
Set! Not Query.
ERROR_INVALID_PARAMETER (87), which Cygwin turns into EINVAL (22).
We have to wait until Corinna Vinschen returns from
On 2020-01-02 02:09, Paul Eggert wrote:
On 10/8/18 11:10 AM, Houder wrote:
We have to wait until Corinna Vinschen returns from holidays (end of
october), because Corinna Vinschen is the only one who can deal with
the executive.
Corinna later pushed a patch for this Cygwin bug
<ht