delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/09/06/16:29:36

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72AC8386F40C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1599424129;
bh=ujppHL0mmzGmWncI8tDm05652UWrDb+jMO2FcOrSLfA=;
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=ilckz1+2VXaV1lpHgi5kvWJ88jIhz0tLRm6iD8M3ukstxeuDw1O2RgP0YM3k2PxqG
fKEkVdeJrd8IGtchhYvtU57h9i1arAdd848anMGUXpW84uCJ9cF7H9jSgHR55Qg4N8
KzigZIW3x1sheVUn1K+cEJuwPlK4NDBykWDUmnMY=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5689A3857039
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=k+UWUZ5+u2re+8EBKmVBunVeiS+bqhPRcsEYQCgxFBxkIAb5sL5Ru3HTgFCx8VvtG2Ih61NgMI6+QEWJbaZNaBw4ZBxP3PnqRR/LD8R9TYu+BeOcsUX7sfWZNzUvaXqdT6MkXeMqMEpcLP/Kk5UyrAUa9XD3PCUaCReowu971zASfw2kAw81HlKgUuSQvMxENMx2MsiXsar6cJyNyeDWZYPveA05zrhTso3+RcYR5wjDieOFG9Fx0PhP39CWYBhCjHJ/PPdyF/gKQkkb9yG1KUp0eyyjApvHLkBu463SLIT0/nbXSBdc6alJGL2evPaEnRHTgcnuQt1Q6yDWhljoOA==
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=1iI0uN+nwF5O5U5it3Px6HOOLeDx2TAN6ZgkOWyVtLI=;
b=SEGCzRn21eIAn+1duwtUiMFwMgLDucDxxOvDYhFCTGsaMl7la0xAHi4zCI5AUfAlZJdrhC8ZT6zaTWop2RlbIiJqH2v7T62LyDprID3oMHLfuB/PQ8A1kB802PUg4Hopi1LRc9tKhQNTwn0JOvtnZ7Ft0q78gra3o/eiXQNP5nd8JPp3XUEDjZz8MFny29+91sr64L7BHF0wCOqbekzm38GNUoD2gUBZWby8YTOFcGr+9oDfZlFqjr7IVsB5LpEhfjKx7t5GSgW5FCPqAjP0SRvLHLwCddQyVg9hGsAFJorWwyHwanwWnBBNZRKMCQpZp9S5dbGShV2cP9n10hnu2g==
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: ag 2 <(echo 2) gets assertion "p >= path" failed: ..
/cygwin-3.1.7 ... /cygwin/path.cc", line 3065, function: int
symlink_info::check
To: David Dyck <david DOT dyck AT gmail DOT com>, cygwin AT cygwin DOT com
References: <CAJtSMgtgAvB3Fin-gtmU5qr3xYnq4_53S2UD3yqAVDVMkAfMSQ AT mail DOT gmail DOT com>
<26aedc53-30f2-d1a2-f9e8-c8a5dfa548c1 AT cornell DOT edu>
Message-ID: <6c7185c9-f0a5-2b73-974f-04b55f8e6508@cornell.edu>
Date: Sun, 6 Sep 2020 16:28:40 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.12.0
In-Reply-To: <26aedc53-30f2-d1a2-f9e8-c8a5dfa548c1@cornell.edu>
X-ClientProxiedBy: CH2PR07CA0001.namprd07.prod.outlook.com
(2603:10b6:610:20::14) To MN2PR04MB6176.namprd04.prod.outlook.com
(2603:10b6:208:e3::13)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-Originating-IP: [68.175.129.7]
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: cbeda9ec-6d3a-43c6-eaed-08d852a371c5
X-MS-TrafficTypeDiagnostic: MN2PR04MB5568:
X-Microsoft-Antispam-PRVS: <MN2PR04MB5568E8912DBF3FFBD40C4414D82B0 AT MN2PR04MB5568 DOT namprd04 DOT prod DOT outlook DOT com>
X-MS-Oob-TLC-OOBClassifiers: OLM:9508;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: 14p/WZ84yKteOapamaUO0BoiXuhLfRcq9Il8KGWBDeNCLOBQ+Lbdweey3mg6a1RJuXfmZWDsAzkpGtKFu1xWSGR6ngHoxekd26kRKuV6TlrZiivQdqBXGBh1k+xJF219q/rGoxTbUaT6soLHAkM1f/dUPj32AWCYsMEDLsRTfHDEv0jPqit12Yg6bTQHgugYiTKc4iP3XA5QatvqNld4Edq2uuW9JOCm4WL99/18GQZP35WUUkEW6qkzbRW+/9lG66oRZvhaiauU0QLrLexvVLTp2zJmqArejACBo48ApnJKfsx4hXRAeqQe5Rxgh4eDAMAkEFkCyjHxsU8MdkAbwGCAKelWVzjK0VUhPgKKkpwbjSi97MWJaIB86pD2pO/F
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:MN2PR04MB6176.namprd04.prod.outlook.com; PTR:; CAT:NONE;
SFS:(4636009)(39860400002)(346002)(366004)(136003)(396003)(376002)(5660300002)(2616005)(36756003)(26005)(186003)(31686004)(8676002)(75432002)(956004)(86362001)(31696002)(52116002)(16526019)(83380400001)(2906002)(53546011)(478600001)(786003)(6486002)(16576012)(316002)(66476007)(66556008)(8936002)(66946007)(43740500002);
DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData: khzU50ZrW5idmk0QMGZM5HdYyJroryqXwbqU+lS7fQwikC+OVUFzyFmzWcFE1UA07Frfo3N6pHfUoHlS3r8x2Qhs28Akelk7WSfGKeYk7xrr2XLRos8nlToMe/Yq2Eyo2XpLg7GCboPcY3FvjHqfL3AhIiJ/fjuLGmrzHNTXtRTN8ikWfHL1qJgNB5zGET0T+5n2+DATliixCkjYGRaPksimrLgEaKVlPyX76S5ZA4ZU8dxlEAeb/wp+uQUXZF81fNe29tXBSV4V4HZ31Fnf/rXQrEmtUUEVDacKLlo6HgMsDCaxzuXaDmh+yRWsUlvIjmy1iH5PKLu5R+9LNHjYY+0+u5oPtjtD66ThPma9+V294a0KU+dhP486hvtKfd0L9O+5KPmdivtcV+BW3vQqJZGnlcCqYkoiyCCu8V2uHVj6bEUshtyARNIbA0VBGBcUPemKGE1P+4N7B6f8C2DCLwO6nUb7SdfuKJudoCkSKrNYhthPqtUaj5XXXxJhi3kBp9Dlgd5ZmNDgpBUcPqaN6Fn3H67k9p1J1ReGQj6d1R/r88AJHJA+t+VlMlkJd60z4XpSB6Hz58nwpZi90WAKrbjZltH5IfIaW1P4NMZGjpfvTr41Vo5xNsT2ZsVI3Di8AATSjoswlX2+Jh9XdldJhg==
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: cbeda9ec-6d3a-43c6-eaed-08d852a371c5
X-MS-Exchange-CrossTenant-AuthSource: MN2PR04MB6176.namprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2020 20:28:41.7136 (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: vC347XIOl1J4YhpFKWNzxveelymEi0a4DDTi37L0I1wPTRiPUqXiHptQ3A24pVzsgkBi61ThdIi1upWLSt3mbA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB5568
X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, BODY_8BITS,
DKIM_INVALID, DKIM_SIGNED, KAM_DMARC_STATUS, MSGID_FROM_MTA_HEADER,
NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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 AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 086KTFA1030511

On 9/6/2020 3:47 PM, Ken Brown via Cygwin wrote:
> On 9/6/2020 2:43 PM, David Dyck via Cygwin wrote:
>> This command triggers an assertion failure
>>    "ag" is from the_silver_searcher
>>
>> $ ag 2 <(echo 2)
>> assertion "p >= path" failed: file
>> "/home/corinna/src/cygwin/cygwin-3.1.7/cygwin-3.1.7-1.x86_64/src/newlib-cygwin/winsup/cygwin/path.cc", 
>>
>> line 3065, function: int symlink_info::check(char*, const
>> suffix_info*, fs_info&, path_conv_handle&)
>> Aborted (core dumped)
>>
>>   3473k 2020/08/22 C:\cygwin64\bin\cygwin1.dll
>>      Cygwin DLL version info:
>>          DLL version: 3.1.7
>> bash                                    4.4.12-3                        OK
>> the_silver_searcher                     2.2.0-1                         OK
> [...]
>> assertion "p >= path" failed: file
>> "/home/corinna/src/cygwin/cygwin-3.1.7/cygwin-3.1.7-1.x86_64/src/newlib-cygwin/winsup/cygwin/path.cc", 
>>
>> line 3065, function: int symlink_info::check(char*, const
>> suffix_info*, fs_info&, path_conv_handle&)
>> Aborted (core dumped)
> [...]
>> I've reported this on github as an "ag" bug, but I think it is a bug in cygwin
> 
> An assertion failure in Cygwin code is a Cygwin bug.  I'll take a look.

Running

   bash -c '/usr/bin/ag 2 <(echo 2)'

under strace yields the following:

   242  191767 [main] ag 33659 open: open(/dev/fd/63/.ignore, 0x0)
[...]
    30  192584 [main] ag 33659 mount_info::conv_to_win32_path: src_path 
/proc/self/fd/63/.ignore, dst /proc/self/fd/63/.ignore, flags 0x0, rc 0
[...]
    31  193366 [main] ag 33659 mount_info::conv_to_win32_path: 
conv_to_win32_path (pipe:[4295036184]/.ignore)
[...]
    31  193550 [main] ag 33659 mount_info::conv_to_win32_path: 
conv_to_win32_path (pipe:[4295036184])
[...]
    34  193615 [main] ag 33659 symlink_info::check: 0xC0000034 = NtCreateFile 
(\??\C:pipe:[4295036184])

The assertion fails because the path 'C:pipe:[4295036184]' doesn't contain a 
backslash.  But probably we should never have allowed ourselves to get to the 
point of considering that path.

I don't have any more time to think about this today, but I'll get back to it 
tomorrow if no one beats me to it.

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