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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=C21c2hM7tTvbdISY QN/f9wMxTYiAB7dsxWVZm8SzGJl59sRZeUd6YtwC3Ksnq3VPFU5Eehvg0ch75qU4 MQVyeGbYA9x8B0l+yT2xPpIwjOxRrKg8nPToaXIYSBnYmEyUWAQ+JI/B19SeucQ4 04IFy7UX+grPkaU6yzoVvkEj4fQ= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=lixyKgu1uo8MpaJmm4KA6I Vo+7M=; b=s+0bKJ9asUw25zyZ9wnNDhWn0nEn/baJ3+lqVc6QY+aLkfUAWu9/4P 1ZmJvxFijKqT8Q0T7cI2Mp4xPzRC2dMwOBZiUiiyJEtfDS9Z4JMt5oxULaIjRIVc YFawSATS1cKBV4VmQj6BNuK07VInXgje6pZ1v6wsN6Vf/8s/UxDfE= 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.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=ntfs, 0x5DC, removable, gawk X-HELO: mail-wm0-f44.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=zGKl/5/1K1YdWbu6GbtdUNNDVQI9Euw/qKZwB0hq1n0=; b=SW9GV1ZgAoLgu91EmZstNJaGkUb6P3G+Z2U3oOGJ5gkBgDZnjpn0jijIbFgOSHCvv+ BGgzkL70Gep33TijnNPDkzyckBfwBVyFh7AXkozinVZd0I9YlvgqeUdyOgTfgKewwbWG hFdTSu5y96Rr+FEeghkXdT3pzZGJZ8rKJWXsX6PEGST5p7VrwRTTU7ZbDaapX5GS89lA XglWhO1b2OabRY6F/HYYvDlOFfY1Lq4gKokfZCYf7EBq9uY8MisqLHeuYFr/xxzW6JGu i6d3/Aignlcb8qBDzp5/sfaFdXH/57eZsK2xv2Z4oZf3t6QhIVDGgOEBoG6DSgymeB80 ZygA== X-Gm-Message-State: AOPr4FVq2wirP7VOU62Wic+4VNunJlVch8qKmetUPogzvSIyRQG0cJQq8fWpsE1yaeS3aw== X-Received: by 10.194.37.106 with SMTP id x10mr17965165wjj.135.1461878595921; Thu, 28 Apr 2016 14:23:15 -0700 (PDT) Subject: Re: reading from pipes fails if working directory is on a removable drive To: cygwin AT cygwin DOT com References: <3429db07-294c-a42a-f131-45016ecf5af9 AT mihau DOT de> From: Marco Atzeri Message-ID: Date: Thu, 28 Apr 2016 23:23:10 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <3429db07-294c-a42a-f131-45016ecf5af9@mihau.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 28/04/2016 23:16, mihau wrote: > 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 > My cygwin is on a removable drive so your experience is not normal. I guess some BLODA. As suggested on https://cygwin.com/problems.html "Run cygcheck -s -v -r > cygcheck.out and include that file as an attachment in your report. Please do not compress or otherwise encode the output. Just attach it as a straight text file so that it can be easily viewed. " -- 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