From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) by sourceware.org (Postfix) with ESMTPS id 4E2E93858D28 for ; Wed, 15 Feb 2023 16:33:25 +0000 (GMT) Authentication-Results: sourceware.org; dmarc=permerror header.from=cygwin.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=cygwin.com Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MiJIk-1ox9AF09EE-00fQwP; Wed, 15 Feb 2023 17:33:21 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id C9571A81B74; Wed, 15 Feb 2023 17:33:19 +0100 (CET) Date: Wed, 15 Feb 2023 17:33:19 +0100 From: Corinna Vinschen To: w6b7rk5yu4mt25v3 Cc: "cygwin@cygwin.com" Subject: Re: Fw: Re: Fw: Re: Why do these mprotect always fail? Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: w6b7rk5yu4mt25v3 , "cygwin@cygwin.com" References: <0Qjpbo0t_1WTd9--kVw5gLR1PdJzG7myKYzhxdzDIqnWYwLnywFCtSbekykskWViaSJM_bcLQBEFT_wg4-IApgEYrX5bHFIZH7Ro40oDYGs=@protonmail.com> <3HScWpQC8pjnPC4OBYIhgMMGaPTBCH_T8o8mMC72UMMMgtodqjjUCRpC81hW8SF9PUk-e3rmxeI8y45aaOGTrZ1MFu7FK3tJ-3XXclG2i3I=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline 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 List-Id: 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