delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/02/15/11:34:44

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A95D33858281
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1676478843;
bh=XkncZ7j/bZtLmw1DrZkBpxH29yblfXl+KGKkjTAng/c=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=Z2JjaM2PjjytHNMdD9JlSsLyhP/MLDSWTX6G1oqj4IW7DSDrR00lMrkPCCMCr7O9O
tghtwR/h3yS49Nk8kCOGJn/TyCKgsWfRvoqhg36eDK6iYddL88jYKtYmbOaZ38nlfP
1yAHyNdJr55Q66/ApFES4DWO6x8g0ZN5T7yyJVic=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
Date: Wed, 15 Feb 2023 17:33:19 +0100
To: w6b7rk5yu4mt25v3 <w6b7rk5yu4mt25v3 AT protonmail DOT com>
Subject: Re: Fw: Re: Fw: Re: Why do these mprotect always fail?
Message-ID: <Y+0JTyNpVqvpZvW0@calimero.vinschen.de>
Mail-Followup-To: w6b7rk5yu4mt25v3 <w6b7rk5yu4mt25v3 AT protonmail DOT com>,
"cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
References: <yxifinJpR7DQ4XDFwpYMrUknNpsg8wu5T1KYPeNIwjf3FL_lYou0whmzg-XCoFgYlcz96k0yEjkrxCOQOOTztnk_tvW7ZNi8_riHbsOn-ZU=@protonmail.com>
<ruVqVpKyYTyh3m-4mzaAg2pyhJAqlamcbUYKB8ghh_LwAKIqpabv0LNqlt8_Owfzx0Hc6c1C6nJE4Czf4hod2ukAWe3b6p_WAaaGLPk7CI8=@protonmail.com>
<Y+y0zRQWVRWBkhCX AT calimero DOT vinschen DOT de>
<TlepM9ESIu1ZpPCpz1vzmSoBKsKnuUABID2BREun8gb9tEPApKByf5s-_DHR9C6h48OdPFnU5uZ0Xc4JTTd-gtPH2RqhOHgOiSh-spI9K88=@protonmail.com>
<Y+zMcAP/eIZ1DTi8 AT calimero DOT vinschen DOT de>
<0Qjpbo0t_1WTd9--kVw5gLR1PdJzG7myKYzhxdzDIqnWYwLnywFCtSbekykskWViaSJM_bcLQBEFT_wg4-IApgEYrX5bHFIZH7Ro40oDYGs=@protonmail.com>
<d594b5d0-8810-c752-97ff-a28b2524552f AT oskog97 DOT com>
<3HScWpQC8pjnPC4OBYIhgMMGaPTBCH_T8o8mMC72UMMMgtodqjjUCRpC81hW8SF9PUk-e3rmxeI8y45aaOGTrZ1MFu7FK3tJ-3XXclG2i3I=@protonmail.com>
MIME-Version: 1.0
In-Reply-To: <3HScWpQC8pjnPC4OBYIhgMMGaPTBCH_T8o8mMC72UMMMgtodqjjUCRpC81hW8SF9PUk-e3rmxeI8y45aaOGTrZ1MFu7FK3tJ-3XXclG2i3I=@protonmail.com>
X-Provags-ID: V03:K1:heYUqrxUQ6JWn6XP15MKazlT01kSj5JnTy90Nggxuztj+duUGwv
lWqwVItnLS7uX8WPCpVCMzlrD932vwwLUoddK+t61kqqQGEG4ji5gloStQfM0/dQMkyHn30
DTwqqVcwHD9+mtfyAnYtSYF4jyAB0svcRVKKclU2R2x7Ob/aaBSPJVSdm5Cu1Dy8KeJcVt9
pK/TsLvgMSn8RpitFVPMg==
UI-OutboundReport: notjunk:1;M01:P0:AstqGQUQsPQ=;sy+o01+YQqMdZWcZ0o0vU8hKRIf
p3/apGi1H/mtwBFYsanjdaqgB8GGCW4ZFiyaUq3CmYKtPPU6XtPKFsGFbbESxlc9HBntxJKHI
rQzdPqt2og4yZMubuf3Vep6iTxsNfcH7085ESQKXM7KksqUHeNMD5XcpiV6vz0vCQOyhtmXEt
pdlQa4WIgSM78ttbWIlB6M4hDrdD57oi6usOdxYvWUoqB4Tj8YEP+qU22pk9tsoSieEW9mnPB
fhKfLHFDd2fZYGAwmItqo68Bd2lPc/e22ROqi17qjJYDCSMVm8yUQ/hxv9kFkdRy7ogsLdZzQ
7OCJxJ2ytZhRCi+cG0ejgxI3u5whCTryyyNrKAKKCCIZcK97IO2C+f9gRnrnCXkdGZcBQB3mT
uRHq3YaldnlbbRv8WiHxwxz3IelaOfXPzLOTtGJtVrDnPDeGp+CDbPaMZvSSqvChtioxijIDI
zliK1VfIJmiskv7dSJ21uVkyVj7VwJVauno6DUHENiFzj/KkgHbm4y+kjRqX0yozAutxp7WQI
aMHCmMrRhZ69HCbLHkl1zUmeovr1mhLlBX4vuO0o6a86mIx8oo6EsoyAFIy5fziJOC0h/JO4t
uqk580KnB9FPQ60S/QDUZGz2yViGVABCXL/OG0zijWKm3hPcJoxwfTOxxcD4y4ltdRIlXQ8dq
F29XabR6VlPEp/0d6KZpqj637OtGJlCLM2CJj7ZGEA==
X-Spam-Status: No, score=-97.4 required=5.0 tests=BAYES_00,
GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H2, SPF_FAIL, SPF_HELO_NONE,
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
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: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>,
"cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
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>

On Feb 15 15:31, w6b7rk5yu4mt25v3 via Cygwin wrote:
> I asked the developer of the interpreter. He said it's OK to use the PAGE_SIZE value different than 4096. So I used this dirty hack:
> 
> #ifndef __CYGWIN__
> #define PAGE_SIZE 4096
> #endif
> 
> This means on Cygwin it will use the default PAGE_SIZE defined on limits.h (I'm taking advantage of the naming conflict here so I don't have to rename PAGE_SIZE to JIT_PAGE_SIZE as suggested by the developer of the interpreter).
> 
> The result is it's no longer error with "Unable to mprotect" but will
> silently crashed without any error messages printed on the screen. So
> after all, it's Cygwin's quirks here.

I still think it's a bug in the code which requires some debugging effort
on your side.

Having said that, if it's actually a Cygwin bug and you want it fixed,
please provide a *simple*, self-contained testcase in plain C, with a
minimum of code to reproduce the issue, and which compiles OOTB.


Corinna

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