delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/09/04/18:59:34

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 63BBE383F408
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1630796373;
bh=DcOV5fm6JjEj8Ie6NBMGNCxNGNJxPFGSN15ZtHc2dTg=;
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=U7UDk3JQZxVV7qgx0DleZvyg/8ru6ag4LB5H6EfKA9gvvIDkqIDytuipVfK+Uu+mF
9I9ngizhj7OYTb6aoUcf7zWH3CZ4IISzwiC/OvfoQIAPMCouiXTnuuoaAczBHc86GU
vzahpRNTITBI5LomrgkRyOdtfKdciAba9BGNBjpE=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 21CBE385841F
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=MjXHZhf2cVsVOq2cVztZIXfEw1DwkvMaaembqZrWSS/aRRPy8RO4Y/xaVbHQZotwkfirC2SWrGKpjAxmjQNxQk6dbhcs/VOP9x/RvqWPP3aSHuldLBaXRMKQCC5xNBcsFPy02V+x3KfO8hCKK/8FCpDhbl37fx92rA9IsLT/5a2XWrI7eseX0OmHipw7PwaDJhr7cNda2xZ5BVXA4oWGGUBTOhGFuUOU3oL7XPPxPFTT0cud7e8gYG9oo3DyAyZwqJm4LJacZNtAv7ZQOsaBMVEVm/5O4Ytpe+9APF9DkFaZKSS8kgmdPaSVcnT8yZ50Jxkvxw/tCEgTWT3VK0ApIQ==
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=AivT/E6jFW8mKpfZhX7+7i0TDxU/K6M0hBQ+3kBE8OY=;
b=W0RQWEVDCsSWOJeLV2yFUs1yNRsNiHxUBHdIgxOSIIc8902HTToRcfuOmZ8fJo0O0Fzxh4jfZDXMrHANMz/gTMhGySUTWolRnhVJPTQPB8+s96NlCAFU10XPjtfkPcWQ6RhYLwyTRY8BC6Zq7mr6dq1j5S7pnXQW2x/+bq0sREDzVzdQkqk8qpQ44z0mAvZEdZdGpS/qWKXYICdVvdvX7eS1U1KaKEylbu6CTlD0dwCQtpy5g0a9H2hPjRjTaxgAo++gz4Nkwmm2DqKwa/VU7iwmU2X6XTRHBiedcCqGZxCSB6QL98xzmUdpr2gjX2ozii7DCUreGhPqprXb8rhWRg==
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: <789f056a-f164-d71d-1dc9-230f5a41846d AT cornell DOT edu>
<46906957-5850-4D7E-8D5A-EFF3C4068C0D AT house DOT org>
<f5f70ca3-0ea2-180d-87ef-deae5929f013 AT cornell DOT edu>
<EE8CC346-CB87-459C-9CE6-5CB2EFBA63EA AT house DOT org>
<58bdc0c3-d843-343f-d88e-c8a44ec33a15 AT cornell DOT edu>
<3DB951FB-FC3F-4EE8-B5E0-6137B305B873 AT house DOT org>
<72F25EBC-6801-4C96-8F6C-48F09B25B712 AT house DOT org>
<6105153B-D145-449D-97FE-D6F17BEB2032 AT house DOT org>
<6beb1156-931e-0380-ee60-2ca519f49a2f AT cornell DOT edu>
<FFA666F7-7531-46D4-8A61-ED3D7F3FA210 AT house DOT org>
<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>
Message-ID: <94b5b6cf-1670-cbdd-2f51-84dae09d27b6@cornell.edu>
Date: Sat, 4 Sep 2021 18:58:17 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
In-Reply-To: <88fde5d5-4897-8792-576a-a62be0092ad8@cornell.edu>
X-ClientProxiedBy: CH0PR04CA0116.namprd04.prod.outlook.com
(2603:10b6:610:75::31) To BN7PR04MB4388.namprd04.prod.outlook.com
(2603:10b6:406:f8::19)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 670e895a-77f9-4b61-1841-08d96ff77ce1
X-MS-TrafficTypeDiagnostic: BN6PR04MB0243:
X-Microsoft-Antispam-PRVS: <BN6PR04MB02433DEBA65BE40985365924D8D09 AT BN6PR04MB0243 DOT namprd04 DOT prod DOT outlook DOT com>
X-MS-Oob-TLC-OOBClassifiers: OLM:75;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: WBid40u6Dp+1Ifj/sEw+SNBhS9Knw9iW/iWR5T0ru/g55MaFBOxTA8hnWaWJHhxeb4z1tEkAy5uhePC3u1RvgsM+EdcjEgxNRa2Dx3xxdTomj8eQfyhEqx4xOcLg6YaDxljacLXlyLGjxjn+fvHeJ8GQ6hZsKT4OAgdwHBinRCupLKF6hqdjC+iXEuotnOXhxwEmM+YIrIuXlhM6vUlRcyMwaBtc0rJy1VPBJQ7sjGnuaa+94jJA4an7oJFOZyaa03OeIxpWeKqUtKTA8xVdhlQ0/G2nynQq6zrh2TwMcIaMRho1B5RZjgZXP3jeL11ScVph8wBLTLOQntBtHRagjvsXluZS7JSBdQTIvEFEG3MjjWEx5NUhcA67u9Wxu+8z1Uv5T9zrtBlMxUs/3nKeg+Zm5YkId7NXNEjjHwMwj5MN+35UgmyCINXS8/5ThK01EbVr2doCbLTQ+6D90OTDY7ezRbi0SMJKqapig0dqB6Omoj6OmAtwzeldaIaIgcnFy0BW6k2coWAL7ruvAt+D/4wvtkutQrjiyU1OmE0K6cdUZpiCggG8MN9TPnU1LRB0cLikZHcgqsqSawFLDEU4fimEKIAi/zV00oMxb94a3JBd9pKqsqvKUl5e+a6riKObpNTgrOY/mPq8geQFafqH34rcqWodJ+7OVjWxApjGAIAl/IXYMARD8sV9GTVx7h3vpStx3R1JjpqQAmSJBNKHzXwzsVaWA16hxbRS8o5QV/E=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:BN7PR04MB4388.namprd04.prod.outlook.com; PTR:; CAT:NONE;
SFS:(4636009)(366004)(136003)(396003)(39860400002)(346002)(376002)(316002)(66946007)(66476007)(186003)(86362001)(38100700002)(53546011)(2906002)(66556008)(6486002)(478600001)(2616005)(31696002)(8676002)(83380400001)(36756003)(75432002)(5660300002)(31686004)(8936002)(6916009)(45980500001)(43740500002);
DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?Windows-1252?Q?z8BkOx+9hzcBqFBnKk/RiA5F4Ik0rpETnO2gOY3l/eSxhf4eIX5rfH8Q?=
=?Windows-1252?Q?a+qdAbCb6Z2SXjWYvcHXDuidfeuqdBUzL+egvU7IBvrO7Wk2too1ZWQ5?=
=?Windows-1252?Q?o+Jtnq2zLEjJstKME0yDqHXPrlFjqC6Z4MxmXWETjDi4fVE729KEMOB5?=
=?Windows-1252?Q?MX+uooEXwjy2K5kxIx7KLqKAWWUM6pBpkY+XWpyVb3w9PFQVzHAUM44v?=
=?Windows-1252?Q?eHDzIABhD8xv862jproDHTnaOcxWqmKcbQCdWf62lUxeFDpGb1aU/e5L?=
=?Windows-1252?Q?B0e91l7abN1KQwMna6KjUi9OpagKGCmH5TEpxZMJZ9/uKvlXkCbbZv3B?=
=?Windows-1252?Q?tz6R+11G8zMrrzCe2NfEQ8Ivt6ShvjDhCJVeAuMX+ibd6vOJ/HEjR3hp?=
=?Windows-1252?Q?7xQqHNhQDGmdY1iftC4SFTkqIKpVPMfwlDRyd1bIfpIVQNDMmg09CIUW?=
=?Windows-1252?Q?fv22vcp2eByXrGRz2qOlY+/dVWfs8dCpoXeYEvx+BMI1BSMS46nesfdZ?=
=?Windows-1252?Q?yQvQUadxmHAT9tZm3O4p5CSEhg6pvkpv18Kj45T/TBsVh/XTTesIT7gr?=
=?Windows-1252?Q?pz9JuzSdAtDZJ6F0BUkiAc6cXNzxe745f96hvnZuxe9mrNc4rw6zHS9f?=
=?Windows-1252?Q?s1azx22vQzsoTGHPicC7oQEdMFARr3k4cxYavI13M7r+MIMU05aybL1O?=
=?Windows-1252?Q?7CHmkfbXcIFtemfqS2hVw+7ZUBse07RkpEJFaZh+uJQKybOqr/wAMPv+?=
=?Windows-1252?Q?Fqed36nnI3ovwL9Jn1Oy6FhyobSyx+p68S02NEfo0MEbSbw24qfiFQ5R?=
=?Windows-1252?Q?9PRCjRv/JoujcFnT2czMrMXEubfdVIt5M6F09siTUHZZZGrXMR68Fxw4?=
=?Windows-1252?Q?nzlZEHa+/t/yyv9aKY8Lq85w5YYfWiLVQUNnu+FO656rllHAY4NCzKVN?=
=?Windows-1252?Q?BNNhEd1+h3ICjDRgyL0D4bF1llGNdzhfLpx9HIOU/HLe/D32FT1tBUu+?=
=?Windows-1252?Q?6p7JSJaCCKQv/nJJsvRkY/a3noOFbQaH7Ko7qyGdplXt5Kq7a/ly6a9F?=
=?Windows-1252?Q?qdr1cS5G9H4kzWBOZzud+MXBc7nlCKxt3oNWcaUCa18v69LdexWCA7hX?=
=?Windows-1252?Q?gE4lTomn4HlnqbYZoO4u5Wg7JyyxvI1grmFYhGB3v3utSGufASPP47lL?=
=?Windows-1252?Q?V4PDq/ZzAPBshONwg9XfsHvA3EgO22o/BLSunwVmscjfS0eEJ6ovRx8N?=
=?Windows-1252?Q?0dN1gCCVVT/vCd8aHWqdplzF5bhkiexgo7kPGjFgca+zolwRPzz0bI3I?=
=?Windows-1252?Q?nAeudgdJWa7YLlYv/02PjQfiu9hY7WNB34KBlrPgT/gBP7lv1Ohedi2y?=
=?Windows-1252?Q?kvNZT0FHmYoPyZFWks20Fs72Ssugi9d0GPaScPsUEG30dQ/KG3mbJBcA?=
=?Windows-1252?Q?Nv6fluBEwaY7qLh/LIDAZWOfoqWBDmWofEdRoDxTXsv/MF+g4AXzrNqr?=
=?Windows-1252?Q?dOkL+SSA?=
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: 670e895a-77f9-4b61-1841-08d96ff77ce1
X-MS-Exchange-CrossTenant-AuthSource: BN7PR04MB4388.namprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Sep 2021 22:58:19.4226 (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: uGiBNYTdFDi+S0kFa/XxmpsI5mHMCzjrjTZ9X6Cv3Ty0zL/E7yySw4aCb8MIKr2XgOdwh4WDs9ES+OzCPoDtnw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR04MB0243
X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, BODY_8BITS,
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=ham 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 184MxYch011601

On 9/4/2021 6:54 PM, Ken Brown via Cygwin wrote:
> On 9/4/2021 6:37 PM, Ken Brown via Cygwin wrote:
>> I've reduced the procps failure to the following test case:
>>
>> $ cat mmap_test.c
>> #include <unistd.h>
>> #include <stdio.h>
>> #include <sys/mman.h>
>>
>> int
>> main ()
>> {
>>    void *addr;
>>    int page_size = getpagesize ();
>>
>>    addr = mmap (0, page_size, PROT_READ | PROT_WRITE,
>>                 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
>>    if (addr == MAP_FAILED)
>>      perror ("mmap");
>> }
>>
>> $ gcc mmap_test.c
>>
>> $ ./a
>> mmap: Invalid argument
>>
>> This happens if I use cygwin1.dll built from the current git master.  But it 
>> also happens if I build from cygwin-3_2_0-release with the recent patches 
>> applied that make Cygwin build without error:
>>
>> 0e12b4939 Cygwin: C++17: register keyword is deprecated
>> a7340e0c0 Cygwin: dumper: fix up GCC pragma for g++ 11.2
>> 2a212c086 Cygwin: workaround a g++ 11.2 initialization bug
>> 9e3f1737e Cygwin: loader script: add DWARF 5 sections
>> bdfd2b004 Cygwin: testsuite: avoid "conflicting types" gcc warning
>> 6fc498e2e strstr: avoid warnings
>> 26da270b2 ldexp/ldexpf: avoid assembler warning
>> edce2a557 Cygwin: fix declaration of RtlInitEmptyUnicodeString
> 
> Sorry, those commit ids are wrong.  They're what I got after rebasing the master 
> branch so that those commits come first.

[Pressed Send too soon.]

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