public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* reading from pipes fails if working directory is on a removable drive
@ 2016-04-28 21:23 mihau
  2016-04-28 22:13 ` Marco Atzeri
  0 siblings, 1 reply; 9+ messages in thread
From: mihau @ 2016-04-28 21:23 UTC (permalink / raw)
  To: cygwin

hello,

came across this today on a fresh (2 days old) installation of cygwin x86

$ cat test.txt | head
       3 [main] head (3348) C:\tools\cygwin\bin\head.exe: *** fatal error - MapViewOfFileEx '(null)'(0x5DC), Win32 error 6.  Terminating.
Segmentation fault

reading from pipes works fine if working directory is a local drive or a UNC path,
but this happens if the working directory is removable drive. I tried with/on various
devices and it happens on all removable drives, regardless of the filesystem (NTFS or FAT32)

also, 'head' is just an example; the same error comes up when trying to use grep,
sed or gawk (haven't tested with others yet).

does anybody know what could be causing this?

thank you,
Michael

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-04-29 15:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-28 21:23 reading from pipes fails if working directory is on a removable drive mihau
2016-04-28 22:13 ` Marco Atzeri
2016-04-28 23:09   ` mihau
2016-04-29  4:21     ` Marco Atzeri
2016-04-29 13:23       ` mihau
2016-04-29 14:45         ` Marco Atzeri
2016-04-29 14:51           ` mihau
2016-04-29 15:04             ` Marco Atzeri
2016-04-29 15:28               ` mihau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).