X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=Bqg ypFr0rmbzfivb1XsyBXPI95fDKCUNSx7v2ElUyaDa8D8GIJJeNcYPCnT1oH6MAuV 77fPNBxxKfjt7gZbtDD1U0nU2J49pDKdagZ+V8tv/IlnrZWRdoLaM8czA5PNN9bI LGQ2IMHnVR+1C7h2zRRVhe9fuoMiGQQ9f6lz+58E= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; s=default; bh=QDztFpur0 js+Pm6VH2woCZ2OlXo=; b=WDVy2+RYkDyp3S/AhkbJqGGJ3f9oYFzxXDVHjh6E+ AaERMFRiUn3WV9CsOv1+kogaH0UM6JsXQxWzXnTIOd1iw54Zru8HeWx30Bw62WTf NCt9S+4MnC4QaeEJ5wYTOjkoSKGsYEY3Zas0wmR9gpUEndbxjpqEPOK84bAzQJTA Rs= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*r:TLS1.0, H*u:5.1 X-HELO: ms-10.1blu.de To: cygwin AT cygwin DOT com From: mihau Subject: reading from pipes fails if working directory is on a removable drive Message-ID: <3429db07-294c-a42a-f131-45016ecf5af9@mihau.de> Date: Thu, 28 Apr 2016 23:16:59 +0200 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Con-Id: 210367 X-Con-U: 0-mh X-IsSubscribed: yes 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