delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/09/06/14:41:56

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EDC7F3839406
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1630953715;
bh=vD79GzhlIPfGFY6wfMWGk51bv3U0N//YzpdyI7LF0sQ=;
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=N2XG/H/9DTJaERfruzkWbIePFndyxEMsjovtfBlTso3fmZgzKlaMcadOmSSPiPqIS
BRk6tQ7ez6+uqwZZw4N1PeaXkxJUF5CaoFO3TvJ0qmR5Cchl0QXcO8O7daslVhdL0M
+U2wbOt/hb5Ht+MxLCfPcsc+aUo5bRCU6iT9V/Eo=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D57A6385AC34
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=WRwtqEEvlqtY4jISBObH0gy7cTcFtFGG09czgCPjzdGtDpsr3+rQJ0mpovjEo18gyct0oUKbRjAAAORVH121oWa7totsPbTbImymdCASzcXu8zpwJDRaHl5FbvM9Hpzas8lwmHKqkonqefuNYsyEoPfEhcIXjHMU6mGcRWLFHl7Y33D91p5kEyITzyGS+hKEfkN3j6kWgX7P/jWg8ZcwBGC76yv0GiFtRYQMfxbhDHK8UaFhanTYBQXyD5yQyOQWamXVmUUY8gs+416FtnUbAQokQpsA2J+RVklxdIuyEWLg71okJML6m0Relqbx9y0JBqIh+mpp0+HmQncG+wahYg==
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;
bh=PVczNJR7XWHnh0NzKl4jyCyxhQoBdW5D3VJsXVOhMaw=;
b=ioLdjh+QXDpsSZsZpF5tikUWBQ9dBZTa/+SelY503WruY56WEs861LH6SemmkoaTDSrdbfgQ82VqwFCs6OCUmsokI70AzpYMdPGPsnwFJFd9By1jqSIsu5XFDWzBG9SFvvOJ2c9VVEieEr0KmSSt9PH0gecviMMBHmLVWYQLmDHlqzDDq+uF0EjO/6jnIip8pVs5fWA1J6TbK6gMS6wT0eby8ucZwiuzVhUUMK2itxobyCe7KUbOCjJ1g/rhs9A4+BcZ7RhAABJlNTSisHUGvCB156YPd8tD28T7JKywGvLQKur0bxm5Nw7FCIOVt4VO6kJ7onUIul+G5qsfbCj4Ig==
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: mmap failure [was: cygrunsrv + sshd + rsync = 20 times too slow
-- throttled?]
To: cygwin AT cygwin DOT com
References: <YTJ9wwbHqeoGxZMP AT calimero DOT vinschen DOT de>
<c54c8815-44fe-a837-211e-6497a185c2e8 AT cornell DOT edu>
<88fde5d5-4897-8792-576a-a62be0092ad8 AT cornell DOT edu>
<94b5b6cf-1670-cbdd-2f51-84dae09d27b6 AT cornell DOT edu>
<387d9062-1ff9-6eab-e268-e5070352a193 AT cornell DOT edu>
<40275f71-7c10-55a9-e6c8-a948e32c37ac AT cornell DOT edu>
<YTY0oN9x7wNtJAKx AT calimero DOT vinschen DOT de>
<d3c9bb17-b859-e7b1-d7e6-c421d0f37836 AT cornell DOT edu>
<33ae27cb-4e45-7484-40d1-6cbd88c958f1 AT cornell DOT edu>
<YTZXGlvWWUk23bJI AT calimero DOT vinschen DOT de>
<YTZY/vytb7nagC6M AT calimero DOT vinschen DOT de>
Message-ID: <3a63eb8c-3e8e-cd2c-b9de-8c34fa041a75@cornell.edu>
Date: Mon, 6 Sep 2021 14:40:40 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
In-Reply-To: <YTZY/vytb7nagC6M@calimero.vinschen.de>
X-ClientProxiedBy: CH2PR15CA0024.namprd15.prod.outlook.com
(2603:10b6:610:51::34) To SN6PR04MB4399.namprd04.prod.outlook.com
(2603:10b6:805:30::12)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 79bfc873-3f7e-4071-dae4-08d97165d49c
X-MS-TrafficTypeDiagnostic: SN4PR0401MB3600:
X-Microsoft-Antispam-PRVS: <SN4PR0401MB3600531ECD1625D07A444F61D8D29 AT SN4PR0401MB3600 DOT namprd04 DOT prod DOT outlook DOT com>
X-MS-Oob-TLC-OOBClassifiers: OLM:478;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: +hjFg2ol+f+3Vi6g2FSWds3c2SMDRSt69anlw+IOnOdMEgONVrpJl0NxLurYcOmqviKwrbu3+Q38nKmLVV7gd4wWHtxOR9brOAwN/vR5bM5YV4Xsz/NIU9dcHkaieQgEo65Mzy6O6vR5qzfgyevrGrn7+dFP+NKj32HiudfhxwabRwhw1AdYVeVcKI/XAx2VSR6tMKWr13tm4WtWIYzAhyghX2gbqP8H6eGL5SWXl1qQQnMuTEBkp30FCmdGImgZEyamfBm84kjOU4oAYervTmPQaz4rfwIMRXmAuVlU5o/h0FJun3z0zShSHLPYbhiZhhWcmEdaZuHzNyFBWy+dXFmWf+lrCBc6aSkMnWr31R97DGY6WDDpDKAUMIzXJv8lZ0dlRFex4u321AXt2LlKKs0bH2zRlalxYvGP7UoUwe0ZwWLu0O7uw09wXKyZscOC1ipFWc8M6D8XVGU3gESpfig9h05Nd5Y3TBBP0ckXkg8MWvCA4wkJuNpIc8wUS8gvgf/fcTVKDm4ZbKDMnhbAhjv6OdMnTlPlGidVNJzv6TE1W24jf/ab0rJBIEGjeUnMGl7THxrl6ljd7WLXbfbF7nI54UiKefXZkkx1e9uyEf6lBOGlDdCyra6xYWQWetdMGCIDEnup24z2njxjG/Iln9JlwWV/kQ0DkQQvuZ4JaFiGD+Mb0feS0I284n3hxoVzUCcDLkJv3h+vjqyzAelXwjmfRSvqTxCnFdv5xuFmQxE=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:SN6PR04MB4399.namprd04.prod.outlook.com; PTR:; CAT:NONE;
SFS:(4636009)(366004)(31686004)(31696002)(36756003)(66556008)(186003)(53546011)(66476007)(86362001)(508600001)(2616005)(2906002)(6486002)(38100700002)(5660300002)(316002)(66946007)(83380400001)(6916009)(8936002)(75432002)(8676002)(45980500001)(43740500002);
DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?Windows-1252?Q?Fc1ShYHncgVYltK/aHwb6UkGsChPmuZlbBzc4fJw/E7YXgiqUDFt5FaI?=
=?Windows-1252?Q?SLfn67X+8GqgUfJ+Kn7iaRmgwSaq3ycdv/84wkruPOKwE9FhFhMExwq4?=
=?Windows-1252?Q?w/FyF6sl6NOI81EC9RGahLmk+SRnMwctSSUVmabP8dY3iGQ5/aUrZGF1?=
=?Windows-1252?Q?YsW3TCAwpgzNmjoyrlSfzcJz73XmJm6dj8beFJsFCZJic//N2KYPTvBk?=
=?Windows-1252?Q?7bWJEHSMj4V6DsUk2QjMGITJ3So/cHlIMv+5lEeBsMttXcAhz7rQVtbh?=
=?Windows-1252?Q?qBNsZxoKwHcUX2XWZ4yCx42Tegn7B8pBQkzCmuCclnoqbqlA7q+HYtQi?=
=?Windows-1252?Q?sBMubMKQNTmU2BJ9VKIIjihaYEsNWrmSuhChAFAcibMszXahhwqrdSCW?=
=?Windows-1252?Q?VR2WyOuC7HkFhEGHH1TgVzIfJXD1CvlN9yh7zbzR/jpoKD+MaeexNPoE?=
=?Windows-1252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tMOwJ4?=
=?Windows-1252?Q?+9Vns52EM9Ok+1abbrELeuAjeqA1aed4xfIoQuccE30nhRkQAVVB4lhH?=
=?Windows-1252?Q?+HE3Nh9fUFRezcKoSmhDeEOMPi9KorJwd+rE43ddhberkx4clJTekzY5?=
=?Windows-1252?Q?OTwqbGxA?=
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: 79bfc873-3f7e-4071-dae4-08d97165d49c
X-MS-Exchange-CrossTenant-AuthSource: SN6PR04MB4399.namprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2021 18:40:42.3460 (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: qiZAXOeNB6bxE3dGxzgTSncbHlpdONl5oZng0gQbNx63a1oOBewaEXjkzF9H9uBs2CdBFWFU6VgboLiop6k+oQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR0401MB3600
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_INVALID,
DKIM_SIGNED, JMQ_SPF_NEUTRAL, 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=no autolearn_force=no version=3.4.4
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 186IfuJ7023976

On 9/6/2021 2:07 PM, Corinna Vinschen via Cygwin wrote:
> On Sep  6 19:59, Corinna Vinschen via Cygwin wrote:
>> On Sep  6 13:38, Ken Brown via Cygwin wrote:
>>> On 9/6/2021 1:12 PM, Ken Brown via Cygwin wrote:
>>>> On 9/6/2021 11:32 AM, Corinna Vinschen via Cygwin wrote:
>>>>> On Sep  5 09:24, Ken Brown via Cygwin wrote:
>>>>>> On 9/4/2021 8:04 PM, Ken Brown via Cygwin wrote:
>>>>>>> On 9/4/2021 6:58 PM, Ken Brown via Cygwin wrote:
>>>>>>>> Here are the correct commits:
>>>>>>>>
>>>>>>>> 8169e39ab Cygwin: C++17: register keyword is deprecated
>>>>>>>> 3ca80b360 Cygwin: dumper: fix up GCC pragma for g++ 11.2
>>>>>>>> bdb7991db Cygwin: workaround a g++ 11.2 initialization bug
>>>>>>>> 801120c1f Cygwin: loader script: add DWARF 5 sections
>>>>>>>> d5cc66426 Cygwin: testsuite: avoid "conflicting types" gcc warning
>>>>>>>> c2fe205b5 strstr: avoid warnings
>>>>>>>> 76c2c7a89 ldexp/ldexpf: avoid assembler warning
>>>>>>>> eeeb5650c Cygwin: fix declaration of RtlInitEmptyUnicodeString
>>>>>>>>
>>>>>>>>>
>>>>>>>>>> So there appears to be something wrong with cygwin1.dll
>>>>>>>>>> built with the current build tools (gcc 11.2.0, binutils
>>>>>>>>>> 2.37, not sure what else is relevant).
>>>>>>>
>>>>>>> Wait a minute...I'll bet this is related to the MEM_EXTENDED_PARAMETER
>>>>>>> initialization problem that was dealt with in commit bdb7991db.
>>>>>>
>>>>>> More data: When I run the test case under gdb, it succeeds.  When I run it
>>>>>> under strace, I see VirtualAlloc2 in fhandler_dev_zero::mmap failing with
>>>>>> windows error 87.
>>>>>
>>>>> Are the const's I added to the MEM_EXTENDED_PARAMETER data invalid,
>>>>> perhaps?
>>>>
>>>> I tried removing them, and I got the same error.  I also tried removing
>>>> static, and I tried removing both static and const.
>>>
>>> BTW, when I reported that the test case succeeds under gdb, that only
>>> happens when I build the test case without optimization.  If I build with
>>> -O2, it fails under gdb also.  [In all my tests, I built cygwin1.dll without
>>> optimization.] This makes no sense to me at all.
>>
>> Good hint.  I found the culprit.  With optimization, the code doesn't
>> set the "Reserved" bits in the first struct of MEM_EXTENDED_PARAMETER
>> to 0.
> 
> No, wait.  I get what you say.  The optimzation settings of the test
> case should have no influence on the code inside the DLL.  That doesn't
> make sense for sure.  However, I ran the testcase under GDB, I could
> reproduce the issue, and I could fix it by setting mmap_ext.Reserved = 0;
> Go figure!

I don't get it, but I can confirm that the problem is fixed.

Thanks.

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