From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) by sourceware.org (Postfix) with ESMTPS id DB4593858CDB for ; Wed, 15 Feb 2023 11:15:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DB4593858CDB 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: Wed, 15 Feb 2023 11:14:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1676459702; x=1676718902; bh=vfSf/V9le+LsJPw95Lt/pwfo7d8/5b6Gt6Nk+kQyoVQ=; h=Date:To:From:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=FmgAck95FGfruoSa+z/g5bHv8bnpP5wy5vtdQGIW/smpYXueYuD8vJ3dr6AMVghsM FOzbJbBSatZDCqCcVaZT1gHw5rS/H/D/l5P/F/BwmEvdYAwirMdSPoArxwVKk5y1rH xWKcDDKMTvHi2xIMccf70gb4paAG+Gg7+wb0470r0OfI06D+v1WXN+TFDaH3v9E5g8 eCZL9hUWZZYe3E7Vkw5vPTGQpm3nFFPhg1snJ23T6L5URYMt7a2kBbHElcWo8h9SBo QNOpLn1Krhhh7ZwfnakvvzoZPAUJWYqtgB7qxOq1DqJoNKJA4HyYmBNvJttKx4vRK5 cm81KCZNcGE1Q== To: "cygwin@cygwin.com" From: w6b7rk5yu4mt25v3 Subject: Fw: Re: Why do these mprotect always fail? Message-ID: In-Reply-To: References: 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: PAGE_SIZE is just a naming conflict. If you change it to something else, JI= T_PAGE_SIZE for example, it still fails. The problem is Cygwin is not fine = with the particular value 4096 but the program needs the value to be exactl= y 4096. About why I also sent to developer list, see: https://cygwin.com/pipermail/cygwin-developers/2020-July/011913.html https://cygwin.com/pipermail/cygwin/2002-January/068158.html This problem is well known at least. Sent with Proton Mail secure email. ------- Forwarded Message ------- From: Corinna Vinschen Date: On Wednesday, February 15th, 2023 at 17:32 Subject: Re: Why do these mprotect always fail? To: cygwin@cygwin.com CC: w6b7rk5yu4mt25v3 > cygwin-developers is for developers woking on Cygwin itself, not for > developers using Cygwin to develop something else. I dropped the ML > from the recipient list. >=20 > And please don't top-post. Thanks. >=20 > On Feb 15 09:43, w6b7rk5yu4mt25v3 via Cygwin wrote: >=20 > > Almost forgot, PAGE_SIZE is set to 4096. This is a Linux application, > > when I compile on Cygwin it complained that PAGE_SIZE is redefined but > > the compilation was success nevertheless. Only when I run the > > application, I always exited with "Unable to mprotect". >=20 >=20 > PAGESIZE is 64K on Cygwin. If you change that, it breaks and you can > keep the pieces. >=20 > It would be nice to send a complete, self-contained STC() in plain C, > so reproducing your issue is simple and doesn't require to rework > your code to get a running, debuggable testcase. >=20 >=20 > Corinna >=20 >=20 > () https://cygwin.com/acronyms/#STC