From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) by sourceware.org (Postfix) with ESMTPS id F30413858D35 for ; Wed, 15 Feb 2023 10:32:54 +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 (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MSbp1-1ozxm21VKT-00T0XC; Wed, 15 Feb 2023 11:32:47 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 02DBEA81B72; Wed, 15 Feb 2023 11:32:46 +0100 (CET) Date: Wed, 15 Feb 2023 11:32:45 +0100 From: Corinna Vinschen To: cygwin@cygwin.com Cc: w6b7rk5yu4mt25v3 Subject: Re: Why do these mprotect always fail? Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com, w6b7rk5yu4mt25v3 References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:rLjD+xkDo7vGvJ8b1XJNizG1/yPE98HnWoY9XeCB3fpHR2UMZNC DmTIUCbxgbTmCMTO8MRUxR4oXLUnsXAnf915lLBBjjWBcRtZ5KJI8F2W6kZZmlpWQNhRzC+ bnvbwdqQZvVXZ41J6PBhPuicHMyYduEECehD4Y+Rbki6E7Ovjzqtvpn0QtqAtyqs/K9DnOG PfTUd1AbsOfiZHsXFHRkw== UI-OutboundReport: notjunk:1;M01:P0:Go2QIT1udTk=;iVwoALGa7Z0XZQJ1I+ZY6zHbsOA qkFfB8ba8/R5kDl93Ofhw0I2Y1mdOEQ7k4w9bi3Fn+oGzuwZU1QDJ+IXFUtnPy1OiYKnIu4Dl ywig6d2s3rJRIXqCPS/nao8fQThcHp1utpW8Z/ITaFPrME5k2pF7zkJcIu2YRb8yN+ycLmqN8 Rz37ZEBNnFrf0vIcFzL6bQitVKYrsEZcrNUhU72w80ezuvg6LymggFY06wHtal9LeY5wWQgne 7u9js0z6RmnyAP8q9KDEiH6b96/WogcMg64Ca+mlk4Oqqmw508Ge3bVDf1WsIok+nsIXzae3j Z930aGV0Cmy6iRENoJ4OUUACYJ+5VwfC+PlsqhlzbtPhAJCQmjrOl671VGC81fwIPAQJkX1F4 NcIEUw/xHgJxYDbrqQQ3DHVmIzlW7WK2rCx28H6hIQmxsw2IOkpOVaCsKkgN2t14BF7VgJOfX 2lm329ZzUX3Xdp9fan7QlPUem1uExkeRWqHQFsd0g4JuFbii2/Bq3HG5Lp1p1Iqm2fiPCTYBh Wu92fOwbWidg3kOmU0hOyuKwuyUJUu0GfTMOqN83jJkEG8P7H//5QDKWvLu679wfetW3NlzSh Y/knGX6CucQm2sMMpo3ru9TsAg95ITJ0EVQnFeZLf5tlExjey3WgVx5teEvt+Iy/RduruTjjP LXDPax8KU84WoTZzSfJyz8ASyS7x+ioq43YOJxjoSw== 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: 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. And please don't top-post. Thanks. On Feb 15 09:43, w6b7rk5yu4mt25v3 via Cygwin wrote: > 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". PAGESIZE is 64K on Cygwin. If you change that, it breaks and you can keep the pieces. 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. Corinna (*) https://cygwin.com/acronyms/#STC