From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-4321.protonmail.ch (mail-4321.protonmail.ch [185.70.43.21]) by sourceware.org (Postfix) with ESMTPS id 1D740385B51E for ; Mon, 20 Feb 2023 10:32:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1D740385B51E Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=protonmail.com Date: Sun, 19 Feb 2023 16:56:15 +0000 Authentication-Results: mail-4321.protonmail.ch; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="U4KUHKOi" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1676825787; x=1677084987; bh=0mLYxNNbfQVJfi5pISyr+m4NQ6bWcBpnDT2rUJyoQM4=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=U4KUHKOiuLr4bxiOkngprabYv/38CELpR8uYJiZMB1JRxNYTx1ReD+R7RtUUGYwDH Gmvx+5OHfKiFqzY+448DsOdoyCHMI/TKpMYzSsbtAXT6z7Pr/AiSLqFjSlFsprkK7r 1qzUSnrFLO3KmSQZigpfQQfAVd1FYej8MZ8M/D9srTTYt6nvmhM8wvoUbbeIk/ynGg zhtEN6iEHnkta66Ojmq+DBoC0qEXgTrtTZxrJ0AcnKTruXBHtRcx86l/3LIxbIAeQ3 W8le6TADpHDx5E8dT6/Hmlh4BNUioLOwaszA10ivJq/AUmdVj8IejJkQ5xVOG4Owlw O7FQveliaY6DQ== To: "cygwin@cygwin.com" , "cygwin-developers@cygwin.com" From: w6b7rk5yu4mt25v3 Subject: I discovered the problems why the program I'm trying to port crashed Message-ID: Feedback-ID: 67221101:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DATE_IN_PAST_12_24,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Quoted from https://cygwin.com/pipermail/cygwin-cvs/2020q3/014516.html: "The file mapping will be only a single page, 4K, and since 64 bit systems = don't support the AT_ROUND_TO_PAGE flag, the remainder of the 64K slot will= result in a SEGV when accessed." "The justification is that there's very likely no application actually util= izing the map beyond EOF, and we know that all bytes beyond EOF are set to = 0 anyway." Unfortunately, the application I'm trying to port do exactly that. If you s= et JIT_PAGE_SIZE to 64k (same as PAGE_SIZE) to satisfy mprotect then it wil= l expect the whole 64k to be accessible. On other systems, no problems. On = Cygwin, crashed with segmentation fault. I was right. Not the application's= bug, but Cygwin's quirk (I called it as a quirk but not a bug, because it'= s a limitation of the platform). Goodbye. It's better to use WSL directly than messing with Cygwin nowadays. Sent with Proton Mail secure email.