delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/12/04/16:42:11

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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-id:content-transfer-encoding
:mime-version; q=dns; s=default; b=qMVPdk8oZTfrwel65+atBQkJ2kQ4J
8Yd74jE1AAAQ7IDf8dhJ44Ue/t3oHECspD/aKqQnLrPXH/toj0K3/GYCN5FFsQnd
FLCVruD/yWmQaKnqOuWhzPpKhMtUVr3BfgIK4V/rWJk+3aeIMMkBrLp5bA3F1KKF
wPCRi8H7As7yPI=
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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-id:content-transfer-encoding
:mime-version; s=default; bh=nLOronydOIkd4zThn08kCcYdmwA=; b=dLG
rEqGCtA5+e7muIKj+MfszQKTaMT8B4r6I0t+1PzrVn6JzFg+2uD01o7oCSwuthk6
TY1jlPLQHxjsUaludplB8lW1u7P2OW90TG6XXIMDOWReZcEyPxw6qschPAUJKhso
0sSHS1XvYWqsqtSIBnBHrut3sl2azQQiKE//wH7o=
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.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=
X-HELO: NAM04-SN1-obe.outbound.protection.outlook.com
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GisiUhgCp5oRuRSTRbqblyYhD4QC2lrBTceV4ihViUANMU6oI5bSvXhv33Zi01Hpt0zPoMNKu/TiDzNl9dQZwPyMC4mNyE4zIu6jVQPo6Qof5TnxJHA4J9y1zcQ76wklOGbXPuBCuhUbf+e/XwqoaNUdBTKW4Mmh0ZfdqwOm7kfY/tnBsItrpI7IlT0+MTRUYW0EYosbfLq5/GhsphUpH00LrD5TE2iywsF7JjJ98Te7OGeOkLtm6GJz7xpx7ESU1BqOlrTbNc7Q43K5+lGChiMRVjyoMyFCyZ0SUg7oX4lejtoMYRG3cG63areG7NqC+DqYnwaVlKz8ChGPlkZeog==
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=LWVTFvdwylBtijCZ7+t5H2GuAyHaluTiKIj3R/f40Sg=; b=ig5iVh6Cmo7bSIUwnbCitPuhhEjsbV1TdWIagCxRSFrmfevnMJewf2JyDRfj1tRlgt0fBDLWrjrnqG88iQRGMKDk6+9KiWzRVA2HDUJ1OYQkO6GYuGUUg4BN2TmK67+jDLuEy9usLr9aZ6oBmEsLAbsKFCzcWHk4PALsRB8PvH11hWLhr9LBaxs3VNAQfE5Kn5Ube0jAaGpKPp2Xfl/4gL9Y73Jm6IqSQ41dLy8L8YVhr9W3B1FdyenIU7QbQzChTBRRoMu/R7Mci22s1xIUWVPDC1Z/vu/q9nC8QprpTuf4+1PbMYCrt+sEvtgjG3jsirqoYUhm0hhhh8rPm9i4KQ==
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
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LWVTFvdwylBtijCZ7+t5H2GuAyHaluTiKIj3R/f40Sg=; b=CE6laSvNiM2Rh3sIJ7s8PtqVpD8WSo+jd/QslfdBBgETWGqKuARulLCPs/Yz7IltAGC8S4z5/ypn4X1YzNUjemYklcPnv+rypUGe5ovXDQPrCZu6Xg/KNqhyfuPgRyrihNQK7YXqYZOVnBRuEZr+hd1cZpfqh51seuLnsG0xO4Y=
From: Ken Brown <kbrown AT cornell DOT edu>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: 3.0.7(0.338/5/3): Possible reference to Developer's instances of dev files in deployed build
Date: Wed, 4 Dec 2019 21:41:13 +0000
Message-ID: <754a577d-dac1-16e0-56a7-8be8ab1d424c@cornell.edu>
References: <20191204210222 DOT GA3578 AT shackleton DOT labs DOT net>
In-Reply-To: <20191204210222.GA3578@shackleton.labs.net>
user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kbrown AT cornell DOT edu;
x-ms-oob-tlc-oobclassifiers: OLM:9508;
received-spf: None (protection.outlook.com: cornell.edu does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: j1OzMzSlT4rRn9xLY82illUWJaZy9RWDUPnWXSKD4k83k+2jzG6DH8vbADNnn8itj0EWLGBklojmsLZuNp3YnQ==
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id xB4LfqDb005675

On 12/4/2019 4:02 PM, Wilfed Olaf Sulla via cygwin wrote:
>> On 12/4/2019 2:26 PM, Wilfed Olaf Sulla via cygwin wrote:
>>>     692   83364 [main] ls 15015 normalize_posix_path: src Z:\
>>>      35   83399 [main] ls 15015 normalize_win32_path: Z:\ = normalize_win32_path (Z:\)
>>>      24   83423 [main] ls 15015 mount_info::conv_to_win32_path: conv_to_win32_path (Z:)
>>>      24   83447 [main] ls 15015 mount_info::conv_to_win32_path: src_path Z:, dst Z:, flags 0x0, rc 0
>>>    6738   90185 [main] ls 15015 symlink_info::check: 0xC0000034 = NtCreateFile (\??\Z:\)
>>>     214   90399 [main] ls 15015 __assert_func: assertion "p >= path" failed:
>>
>> I don't have time to check this carefully at the moment, but it looks like
>> what's happening is the following:
>>
>> path_conv::check is called on 'Z:\'.  It strips the trailing backslash and calls
>> mount_info::conv_to_win32_path on 'Z:'.  NtCreateFile fails with
>> STATUS_OBJECT_NAME_NOT_FOUND, which triggers the code containing the assertion.
>> The assertion fails because 'Z:' doesn't contain a backslash.
>>
>> I'll have time tomorrow to think about how to best fix this, if Corinna doesn't
>> get to it first.
> Yes I noticed that, but it also strips the trailing back-slash for all
> of the other virtual drives at the same stage in the checks on them as
> well.

The difference is that NtCreateFile doesn't fail with 
STATUS_OBJECT_NAME_NOT_FOUND in the other cases, so the code containing the 
assertion doesn't get run.

BTW, I just tried the following on my system:

$ ls z:\\
ls: cannot access 'z:\': No such file or directory

strace shows that NtCreateFile fails with STATUS_OBJECT_PATH_NOT_FOUND in this 
case, so again the code containing the assertion is not run.

To be continued...

Ken

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