delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/07/01/12:23:14

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B81A396EC7E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1625156592;
bh=vGehnUTwm0CP0U60poiFeXah8K2o2rRnButAGipPTPY=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=ctY3bjfIfIRvHnnQfYLrbscGBJwKOWwuSPO97Fi6zWASouVIkc/AAqz8r2JzzaQxI
MMVlKIFcP97STM6sQjsW4GIodh6ZnVGV13DrXJsF+HozEYQMk0UYY4zYlSR7PjFgXJ
akvMo9H2lX6SG1Xxp+Y4pIRL1WYaDoqmoSU+bemg=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EAA783857419
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=GZ2az1Sz/udtRBS1hC3wgiVt6QF8oITVYILRH1Qzf4t/Dxhwq59puhuneOXE/CBfKXHhhA/MEQVw/3V7dDe07sxNoWsJG4fiVTtQAD7Qu7N+JrfQVnTEO6Siqv3sa1JP577oaiKBmgHTEmhDjOdVtAceUk3BKHamBQTPYUd2rYk37n3HkiTrec7pxu5RiBgrSva6QXtDr8eNIpJzB3imw1KtGLguIlyTw/EHCevqikHNwodwUjnxIxl1zblqL47zQ3iXuLOUklaa2Rl8SwCG5R6ADlt2hzLOtvgFBHJcGI9uLJME/gCBTQ+25Rf5q7kYYlqPuAzYnpnNtSoxlqFvkw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=Thrq9kZM4gLskMew8wZnrqfp4Y5nyOH+07xnWBKGUU0=;
b=HZZ4S1gXO58x5+ajZe59Wi3ppzyN/Jsv8r64g1QIFvpBpEQcQB6aO+9WjHkN5xxl7klw5D8/TX+MQXtjsajC5FcpYDMwapwiIk9ZZFgeBBbRud67/IUuhyKdCZD/JVDXH5+ETgp5ARPcfjKDm9Ivcer1BDsnt4sg3b4/pNpp/QmaTVyvJGGh2Pkn8C5O3AHEnEmT8HC7zJfDMcvkeGjZoJPZGmQUCOeglMdogOHbxLrPTcVRI30NdkgJsRrb8ZuMvx8QbBef1eH8wFe4vEWZY1GaFvuyROg+ftWReT041Ku2WZY3T1bAjpAI7/lwkhHfWqpKLezTwE5tMvus8+VnpA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu;
dkim=pass header.d=cornell.edu; arc=none
Subject: Re: Inode number and file size problems in version 3.2.1
To: cygwin AT cygwin DOT com
References: <0cbd1744-ada6-d7b8-dbf5-5617a41470fb AT wxs DOT nl>
Message-ID: <8206027a-a5b5-298f-85bc-01a4a7c02b58@cornell.edu>
Date: Thu, 1 Jul 2021 12:21:48 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
In-Reply-To: <0cbd1744-ada6-d7b8-dbf5-5617a41470fb@wxs.nl>
X-Originating-IP: [2603:7081:7e41:6a00:888c:54bd:df7d:8103]
X-ClientProxiedBy: CH2PR07CA0055.namprd07.prod.outlook.com
(2603:10b6:610:5b::29) To BN7PR04MB4388.namprd04.prod.outlook.com
(2603:10b6:406:f8::19)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: e017f480-1dbf-480c-6ed0-08d93cac5473
X-MS-TrafficTypeDiagnostic: BN8PR04MB6369:
X-Microsoft-Antispam-PRVS: <BN8PR04MB6369680936884DF0A393C9F1D8009 AT BN8PR04MB6369 DOT namprd04 DOT prod DOT outlook DOT com>
X-MS-Oob-TLC-OOBClassifiers: OLM:1468;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: =?Windows-1252?Q?4TPwCTQUiHHOwOo4nILrGlaYOOLnEjlzCfzI2IWJk2bGPPp4+i+UdxEp?=
=?Windows-1252?Q?9iytqOzPvCSdhEsnlvvhTeKfhz0a4Ekva67E5aCGVkxD5tcQgv/ExphF?=
=?Windows-1252?Q?iZpjrpsJY67SeggHJ2WtYP7pOMENgnK7H4+1HNlGp2UqqqOw5HKgaBpp?=
=?Windows-1252?Q?jLTAuGJ55vNlwJgYvXymvFJNcPcMCtsOFD8NzD53G25WPpfBDer8BDV7?=
=?Windows-1252?Q?2ezbvCjEdcZWREjgoFhlT/6eJvIy8tp+Ml4YzZmrh8jJI0ZNdNnTSzqD?=
=?Windows-1252?Q?uwMs4nn+oQ0FpolF1jTOH4OS3bc+I9AJmZNsTNFwSNrUWLPwGl7yUOni?=
=?Windows-1252?Q?AyUi7vPR7qW3h43oBVmmqyjHzzdUGEPXTHdkbnQATDdWfGMiIowO/1SJ?=
=?Windows-1252?Q?wPwBFiYaJXXqfbRDjSJh5sBjnMyP0kP0ahi1bxIJFDupmI1fBI6bXn08?=
=?Windows-1252?Q?+CFiTcZsfIgMn0sAyU4Wg54hDxMURtAwf2Hf277fjYrTgGLFIBkPt1j0?=
=?Windows-1252?Q?t+jeQmaUWBIfPAXivaYewjK7QNkSJ4pDm4GH/F4MAjvsmVyCXW7pAiR4?=
=?Windows-1252?Q?3uyi+v5LyUcFDy+VCFW9XuGL4E24uBzWUEJNY8tbOSWCcPsfYFu4Op69?=
=?Windows-1252?Q?GUpMnvAVitZjbO441XuC8Q7ZpY30fpbCZmKeFl03GV0Wbt1fMKjRGCe1?=
=?Windows-1252?Q?mQ9051c6epFHEJcgAq2dMribM4WJWmcoSOPkTMhRWdJU9EeTz/lF1I/M?=
=?Windows-1252?Q?dWSdQIuT11K3/9VsW6Kgid5X/YYg6oethtkoNk8jYjjxNGurTqKYisZW?=
=?Windows-1252?Q?1+IhZsVQq3O7QMtaQgcAapr5N1kJBiblMgcIRVM2yHSI7mUNtJdaOFNk?=
=?Windows-1252?Q?WIBMlu6Ce6kzif56vRL7vu31wcG8rRQ9KjIin75NfRnmgoR6voh6QVRM?=
=?Windows-1252?Q?AijbBwJ4fPy4EJhnm3ozQEraOfYC4o9xE6bQQfyKe68exfYCZ8mrqjhE?=
=?Windows-1252?Q?09rmcU5F9hTeajcL2Rzzi8pw0mJJQL2RGqvEl6N4n/QMk1nX7w+QIjLI?=
=?Windows-1252?Q?vg4x6Zm6B30Ql0zguFlrB4t08nxCqsOc5FaiMCEj27xIrcCsLt6Lg+3Q?=
=?Windows-1252?Q?bc0H7sedd0cz/O90CNe+Dh1ZcA7AEWSBGd5h3f9ZQfUAbq8HwT3HZpVi?=
=?Windows-1252?Q?lE/5VRqIIg8=3D?=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:5; SRV:;
IPV:NLI; SFV:SPM; H:BN7PR04MB4388.namprd04.prod.outlook.com; PTR:; CAT:OSPM;
SFS:(4636009)(136003)(346002)(366004)(376002)(39860400002)(396003)(186003)(66476007)(786003)(66946007)(2906002)(66556008)(6916009)(31686004)(16526019)(53546011)(316002)(75432002)(36756003)(8676002)(6486002)(478600001)(38100700002)(5660300002)(83380400001)(2616005)(86362001)(8936002)(31696002)(4290200001)(43740500002)(45980500001)(460985005);
DIR:OUT; SFP:1501;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?Windows-1252?Q?fNiLbyNDwgSh4ty47Wo0q0oLrUxqPu+/rVz8uosu7AYinx3axl9wJbsW?=
=?Windows-1252?Q?zyHhpGOrwh6ZN2n4C7qxkBawXJK223q83hUHKOiiHfr+bRZc4S/QNJyH?=
=?Windows-1252?Q?Nxtuu79fmRdI/2bK5uqWsrO6g7kVbDfn/KRckjNjdBXJ7ndh6TNVRu5U?=
=?Windows-1252?Q?K826BTCYSebSIQ1F5X16vFqIiZ0HNyLebNI03P3J6kFhXR4/HbkS7t/R?=
=?Windows-1252?Q?8KAJK7yD2qAJh9LTWJhb+gdhCyoWj3opgMzJok2Mps6qwSCKuyZzjDFl?=
=?Windows-1252?Q?37KKQW51tcAqN2ZUXVjuvJYnhMLqmUGlPdlG8n59aT97do0fdfLfajTe?=
=?Windows-1252?Q?Jf/2zVEXqVqxricvY0Q20k3tss7WVdEjo3usrZl1gsuQSRtB1svAZbW4?=
=?Windows-1252?Q?DKQy6n/eVgD6r1OsffrcfIw4qBMna7vppQld6z91sXVdEparjaOynlUc?=
=?Windows-1252?Q?pircRcoxy0VNE0rGSGcGMyEEUx9MtoUq3Cimdu6bg7bEjHDjCLI/0p4E?=
=?Windows-1252?Q?KDurDuQquVRICm5u664WVLD0ylMfXHzvB3C/mSxsvad2yeakzLVXDJQc?=
=?Windows-1252?Q?kgVYxSVoJppYfHQWfNpStrwguGLDuaClIgt0HJbNhoROqNK7D/vTPHta?=
=?Windows-1252?Q?gvxHert3KFQ8zSF/hsfmOIVumN43wxHV3pnsooYuM6+v0BvcvUGSlLxq?=
=?Windows-1252?Q?SnbO3MOZw4bUx+n7bC4QlYs7p0KQJk00AnpQ8krIPllA2RfrBObewHTf?=
=?Windows-1252?Q?RZSm4fwD45IAbETf5YT+6skcK473z2Pizzo+0xNx6n/qRJLm8P5k+c13?=
=?Windows-1252?Q?/RZE46vxzG0wOXWUuKWEN0xUFqyjqyFo20ta+Xc70oJmuscRCj/2qK7y?=
=?Windows-1252?Q?KX431KnzT3/QFA3WB54cRkGHUA0N6wED/z0IesO8YbVCXapE6riX9j++?=
=?Windows-1252?Q?tTPACfAMAPLCgWttbGdWE0oD7lWPThkuqfNu/3XKEtgY5h5RuADafo+J?=
=?Windows-1252?Q?dJJg14XGmeR/8P/WWVQ3MW/Emp/9GhAUEJmisSIugVYA92SIABVseJNt?=
=?Windows-1252?Q?HX1uGekH+vnGqVl2KMTqviY/wsaYptNnKY/nXDFOaHJemMBrCeopFb7L?=
=?Windows-1252?Q?/oN8RFw1YfSKxm7cB+3MvWbeP0Y0a5w9Uq9J4dc/f1TEl9SMlbXoD58E?=
=?Windows-1252?Q?h/GDpIk/CxwHbmVkwkKANuzg2DdNT4umKYpO7JW3XvddrTAGdtUCxjW/?=
=?Windows-1252?Q?U+8pyH5gqOF6hfI7nSEifwSKkpptpEv+DrlrwSMOtit27rT6M3M2g4hL?=
=?Windows-1252?Q?5iBPCsoYR6knp7XwrWgW4eP+vRz+vm+VOLuV7KRj5wYQ6V8yyXmW1zwM?=
=?Windows-1252?Q?RKjOjkTsA8hv0JmCK/TT4bbZyPteEiu/a/S101Drf2Bp/7wBNmkWbBF+?=
=?Windows-1252?Q?BkW2yFAFN3xkz8v/krucqWqgSRvBqeGcNtfHPkaSbtBISrfE9UFGVWdU?=
=?Windows-1252?Q?wfbV97Bd?=
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: e017f480-1dbf-480c-6ed0-08d93cac5473
X-MS-Exchange-CrossTenant-AuthSource: BN7PR04MB4388.namprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2021 16:21:50.1116 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: BZnNubzB1/2XpAetD1tSM/MmRog7N/hQ2lNqJMRkOZUEbv9VG4ArLapneN5MAfwiSd1mBhWysei6w34E2JGtJQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR04MB6369
X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00, BODY_8BITS,
DKIM_INVALID, DKIM_SIGNED, KAM_DMARC_STATUS, KAM_NUMSUBJECT,
MSGID_FROM_MTA_HEADER, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,
SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4
X-Spam-Level: *
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Ken Brown via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Ken Brown <kbrown AT cornell DOT edu>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 161GNExD004750

On 7/1/2021 8:15 AM, Ruurd Beerstra via Cygwin wrote:
> Hi,
> 
> I am a long-time user and fan of Cygwin.
> I use it in a complex build environment of my IVT SSH terminal emulator, some 
> 300.000 lines of C-code with lots of little shell-scripts to build and check.
> I use flex/bison, ctags, make, gawk, grep and a bunch of other Cygwin utilities.
> 
> I bought a new PC and decided to to a clean-install of Cygwin to make sure I had 
> the latest version of everything.
> I ran into various problems, which after checking I found to be bugs in Cygwin 
> (a first for me). So I'm reporting them here.
> 
> The first problem I ran into was that multiple-pipe commands would hang. A 
> command like this in a CMD file:
> 
> grep -E "^RUNCMD=|^MAKE=" makefile | sed -e "s/RUNCMD=//" -e "s/^MAKE=/set &/" > 
> %TEMP%\extra.bat
> 
> would hang. So would stuff like "cat ... | sort | uniq" style commands that I 
> use a lot.
> I found a patch (cygwin1-20210426.dll) with an updated cygwin1.dll. That fixed 
> the hangs.
> 
> My 'uname -r' now reports 3.2.1s(0.340/5/3)
> 
> But then one of my scripts ran into a weird problem:
> 
> mv: 'allfcn.f.tmp' and 'allfcn.f' are the same file
> gmake: *** [../make.w32:438: allfcn.f] Error 1
> 
> This is produced by this bit of code:
> 
> gawk -F~ -v outfile=$2 -f ../tools/format.awk
> tr -d '\r' < $2 > $2.tmp
> mv $2.tmp $2
> 
> Where $2 is "alfcn.f". The GAWK produces a nicely formatted file "allfcn.f", 
> which contains unwanted \r characters which are removed by the 'tr' command.
> This has worked for 20+ years this way. The 'mv' complains that the source and 
> target are the same. Using ls -i  I see this weirdness:
> 
> i:\ivt\work>ls -li allfcn*
> 281474977027142 -rw-r--r--+ 1 ruurd ruurd 8192 Jul  1 12:30 allfcn.f
> 281474977027142 -rw-r--r--+ 1 ruurd ruurd 8192 Jul  1 12:30 allfcn.f.tmp
> 
> The inode numbers are the same!  Which is why it thinks the files are the same. 
> Using 'cmp' on them tells me they differ, though.
> So I insert an 'rm' command of the TMP file and that problem goes away (though 
> it didn't sit well with me that the file size is exactly 8KB for both files, as 
> reported by ls).
> 
> But then the build complained again:
> 
> The following keywords are NOT documented in doc/all*.e:
> See file undoc.keywords
> gmake: *** [../make.w32:272: ivt.exe] Error 1
> 
> That is produced by this bit of code which warns me if I introduce a new feature 
> in IVT without documenting it:
> 
> if [[ -s undoc.keywords ]]
> then
>     echo "The following keywords are NOT documented in doc/all*.e:"
>     cat undoc.keywords
>     echo "See file undoc.keywords"
>     Failure
> fi
> 
> So I look at the file:
> 
> i:\ivt>ls -l undoc.keywords
> -rw-r--r--+ 1 ruurd ruurd 8192 Jul  1 13:05 undoc.keywords
> 
> Hmm: Same 8KB again? That file is supposed to be 0 bytes! Check with DIR:
> 
> i:\ivt>dir undoc.keywords
>   Volume in drive I is Windows
>   Volume Serial Number is 2237-3266
> 
>   Directory of i:\ivt
> 
> 01/07/2021  13:11                 0 undoc.keywords
>                 1 File(s)              0 bytes
>                 0 Dir(s)  383.936.823.296 bytes free
> 
> It IS zero bytes!  But Cygwin shows it as 8KB, which is why the "-s" operator 
> says the file is not empty.
> 
> i:\ivt>stat undoc.sh
>    File: undoc.sh
>    Size: 8192            Blocks: 8          IO Block: 65536 regular file
> Device: 22373266h/574042726d    Inode: 281474977027142  Links: 1
> Access: (0700/-rwx------)  Uid: (197609/   ruurd)   Gid: (197609/   ruurd)
> Access: 2021-07-01 13:12:46.247988400 +0200
> Modify: 2021-07-01 13:05:55.035592600 +0200
> Change: 2021-07-01 13:05:55.035592600 +0200
>   Birth: 2021-06-30 13:59:31.554377500 +0200
> 
> Hmm. Again, the EXACT same inode number as with the earlier problem, the same 
> 8KB size.
> I restored my original Cygwin setup from the old laptop (as c:\Cygwin64.old) and 
> use the commands from there on the same file:
> 
> i:\ivt>stat undoc.keywords
> 
>    File: undoc.keywords
>    Size: 8192            Blocks: 8          IO Block: 65536 regular file
> Device: 22373266h/574042726d    Inode: 281474977027142  Links: 1
> Access: (0644/-rw-r--r--)  Uid: (197609/   ruurd)   Gid: (197609/   ruurd)
> Access: 2021-07-01 13:58:23.261901700 +0200
> Modify: 2021-07-01 13:43:34.833286000 +0200
> Change: 2021-07-01 13:43:34.833286000 +0200
>   Birth: 2021-06-30 13:59:31.554377500 +0200
> 
> i:\ivt>c:\cygwin64.old\bin\stat undoc.keywords
>    File: undoc.keywords
>    Size: 0               Blocks: 0          IO Block: 65536 regular empty file
> Device: 22373266h/574042726d    Inode: 1970324837303561  Links: 1
> Access: (0644/-rw-r--r--)  Uid: (197609/   ruurd)   Gid: (197609/   ruurd)
> Access: 2021-07-01 13:11:03.478267900 +0200
> Modify: 2021-07-01 13:11:03.478267900 +0200
> Change: 2021-07-01 13:11:03.478267900 +0200
>   Birth: 2021-07-01 13:06:51.255125100 +0200
> 
> Note the wrong (changing) times when I use the current 'stat' (the first output 
> is not the same as the 2nd one), while the old version consistently reports 
> correct times, size and inode number. A quick test shows that the 'ls' command 
> (I assume caused by the underlying stat(2) call) reports the same inode number 
> for ALL files.
> It also reports either a size of "0" or 8192 for ALL files.

Can you tell us something about i:\ivt so that someone could try to reproduce 
the problem?  What kind of drive is i:?  Does the path "i:\ivt" by any chance 
involve native symlinks or junctions?

Ken

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

- Raw text -


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