delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/03/27/00:21:23

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=OSpBNUiXVndhLAPb
LpQCu5OZ/U9oXGAQoSn1gwBOiLDo5BUq44NQg3kFU5yKh0vYiGwbR4GDRmzkASWM
PC/ZfNDtlSwJfh/E6Kg9DS9sswJ7OBclbpSnn7KJBnq8j1G8wiaCle3yek+GGcRJ
chTW6RF1AL6MXyfJg4zp0FeNYuc=
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=C2HILiZUi7Qayqyz6QnnuC
xxJCk=; b=r0NhDxIirGbuVmQkgwj8FzoNETk+6OxJ+qUw31W5kh/lJelwBTFufG
VZXm+oA54u/JhWaBwBzl92EP+vK1I/0kua5fcZ28TiBhXMbUhc5Le/+aY3AyHWGK
N5tlGdHwSwtVKI8OX/IlTWluZx4uQv063s4L8qk0ltU+j1fjuvroI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL,BAYES_50,GIT_PATCH_2,KAM_NUMSUBJECT autolearn=ham version=3.3.1 spammy=chris, Chris, supplies, wagner
X-HELO: m0.truegem.net
Subject: Re: cat.exe failing silently with exit status 3
To: cygwin AT cygwin DOT com
References: <f1b4552855e64297f37f0c41203a8ad4 AT plebeian DOT com>
From: Mark Geisert <mark AT maxrnd DOT com>
Message-ID: <e31c8baa-43ab-e59f-91e9-86c8c66e40df@maxrnd.com>
Date: Tue, 26 Mar 2019 21:21:02 -0700
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46
MIME-Version: 1.0
In-Reply-To: <f1b4552855e64297f37f0c41203a8ad4@plebeian.com>

Chris Wagner wrote:
> Hi all.  A few days ago I noticed that cat.exe was failing without printing any
> output or errors and exiting with status 3.  I tried rebooting, updating my
> Cygwin, even a fresh install of Base only.  I removed all recently installed
> Windows software and nothing changed.  What's truly strange is that it seems to
> be only cat that is broken.  Hilariously tac works fine.  I can even emulate cat
> with "tac foo |tac".
>
> Whatever changed, Cygwin, coreutils, or Windows, I can't narrow it down.  I'm on
> Windows 7 SP1 and my Cygwin is up to date (3.0.4-1).  Coreutils is 8.26-2.
>
> I launched cat with strace and it always ends with:
> --- Process 3928, exception c0000005 at 0000000000000000
> --- Process 3928 thread 10476 exited with status 0xc0000001
> --- Process 3928 exited with status 0xc0000001
>
> The output is vastly truncated compared to what tac shows.  The thread dies
> immediately instead of loading the environment, etc.
>
> I attached the strace output of cat and tac along with the sysinfo and cygcheck
> output.  I hope this is just something simple overlooked in the latest version
> of cat.

Hi Chris,
This bit of text from your strace...

Cygwin WARNING:
   Couldn't compute FAST_CWD pointer.  This typically occurs if you're using
   an older Cygwin version on a newer Windows.  Please update to the latest
   available Cygwin version from https://cygwin.com/.  If the problem persists,
   please see https://cygwin.com/problems.html

...shows that somehow you're involving an old cygwin1.dll version.  For just 
'cat', which is indeed puzzling.  Check your PATH variable to make sure you 
don't have some other environment (containing an old Cygwin) that supplies cat 
before Cygwin's cat.  Maybe also do 'cygcheck -svr' and see whether it finds 
more than one Cygwin installation on your system.  Do you have an alias for 
'cat' that does something complicating?

..mark


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019