From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Brooksby Newsgroups: gmane.emacs.bugs Subject: bug#74805: 30.0.92; Trying to build scratch/igc on Cygwin Date: Sun, 22 Dec 2024 08:24:03 +0000 Message-ID: <805cdbf6-e8e3-475c-a94e-4d25d3f0f608@ravenbrook.com> References: <0e6c2f69-9c33-48d7-87ab-2b13de857f71@cornell.edu> <86pllx1lh8.fsf@gnu.org> <86v7vd8pnd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3873"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Gerd =?UTF-8?Q?M=C3=B6llmann?= , 74805@debbugs.gnu.org, Pip Cet To: Ken Brown , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 22 09:25:17 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tPHH2-0000s7-8V for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Dec 2024 09:25:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPHGq-00040d-7g; Sun, 22 Dec 2024 03:25:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPHGo-00040G-Tt for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2024 03:25:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tPHGo-0006ih-Jz for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2024 03:25:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=ZBKsPb3dUCuVShOFFR9lEjNXfQW5L+QwifrURqb5m+4=; b=RV0zYJRGzG5cRQ2LaxBHVIdZD4FgM8rccGBYlAsZjKh7turTuVGIcyBy4mR4E4SCe9AuzopCgMdhivvNpNIH2ZtxbRFE5PiICzm5j+qryScN1CdXBznIQhpTOFmGkD0Aqbr2fKiv6ICW01ASQPDM/wLGvS1ljE+VFPNXZXYn34icqBAfS2EdAlKp7BIpUraeVam1+84J6FHeAO5BDCfIBgEp09ka6bnhKZBbq3WG5E69iGmBQ24ODg0MirHaxtjefGOJUmr702pNrlh+FhvlIRDzv8dRtiOfabAHNQj7MXHQNxsqUwJy9NSc+5oncE2yBhoztJwELlGu8ZEmwh0agA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPHGo-0006Ja-0g for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2024 03:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Brooksby Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Dec 2024 08:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74805 X-GNU-PR-Package: emacs Original-Received: via spool by 74805-submit@debbugs.gnu.org id=B74805.173485588324239 (code B ref 74805); Sun, 22 Dec 2024 08:25:01 +0000 Original-Received: (at 74805) by debbugs.gnu.org; 22 Dec 2024 08:24:43 +0000 Original-Received: from localhost ([127.0.0.1]:48933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPHGV-0006It-4G for submit@debbugs.gnu.org; Sun, 22 Dec 2024 03:24:43 -0500 Original-Received: from petrel.ravenbrook.com ([46.235.224.209]:37874 helo=mail-gateway.ravenbrook) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPHGS-0006Ij-Ne for 74805@debbugs.gnu.org; Sun, 22 Dec 2024 03:24:41 -0500 Original-Received: from mail-gateway.ravenbrook (localhost [127.0.0.1]) by mail-gateway.ravenbrook (Proxmox) with ESMTP id 4B44B1A006; Sun, 22 Dec 2024 08:24:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravenbrook.com; h=cc:cc:content-transfer-encoding:content-type:content-type :date:from:from:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=pmg; bh=ZBKsPb3dUCuVShOFFR9lE jNXfQW5L+QwifrURqb5m+4=; b=ncgX3diqJGriwdBHM3ybNskp7Bz/pNiinp7/H PoYCmRUnXOatD8cNVNlx6fb70qA6jtkifjLjVlmA2TcVRaoZf0wPK+X3U/B2AElj IVo45zY6SdMAwmQoxSxWOq0K1a3hNnB+d8g+Vll49+F65F35GpxrfW7B5OojiSWg /vzKTmEEuTgl31ltStzDp3luVaeTTBrJnaECOhYYssPNDLuHXXn8OB3niB3lc5CO xbHlJx0c9wz/lFeF/retb6Xh/j41ryycGXtlvcQezGYo5x3qhth44rs6TMPPjEvJ TshNAgjkqObkscuXbh7Ln1HzbTGsEUUUvc44cTLHSPXXXJ9bQ== Original-Received: from mx.ravenbrook.com (mx.ravenbrook [IPv6:fd42:d923:e021:7be6:216:3eff:fe75:c2cc]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-gateway.ravenbrook (Proxmox) with ESMTPS id 213E719EFE; Sun, 22 Dec 2024 08:24:07 +0000 (UTC) Original-Received: from mx.ravenbrook ([fd42:d923:e021:7be6:216:3eff:fe75:c2cc] helo=[192.168.1.29]) by mx.ravenbrook.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tPHFu-001WGn-IH; Sun, 22 Dec 2024 08:24:06 +0000 Content-Language: en-GB, en-US In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297582 Archived-At: On 2024-12-21 16:56, Ken Brown wrote: > On 12/21/2024 2:24 AM, Eli Zaretskii wrote: >>> Date: Fri, 20 Dec 2024 18:48:37 -0500 >>> Cc: 74805@debbugs.gnu.org, Richard Brooksby >>> From: Ken Brown >>> 3. The "mmap" branch is a straightforward port, mostly imitating the >>> FreeBSD port.  It currently (with Cygwin 3.5.5) fails because of a >>> limitation of Cygwin's mmap.  But I have a simple patch to Cygwin in the >>> works that removes that limitation.  With that patch, 37 of the 38 MPS >>> tests pass.  I still need to debug the failing test.  I'm cautiously >>> optimistic that I can get this approach to work.  Either way, I expect >>> the Cygwin patch to soon be available in a test release of Cygwin 3.6.0 >>> so that other Cygwin users can try it. >> >> Thanks for the update, I think this is very good news. > > I could use some help from the MPS experts in debugging the failing > test, which is arenacv.  I ran the test under strace and didn't see any > mmap or munmap failures.  I'm attaching the test log, which doesn't mean > a thing to me.  I also built an unoptimized arenacv and can run it under > gdb if someone tells me what to look for. Hello. I can't offer much direct help just now, but here's where I'd start. The test is exiting because the MPS is returning code ResRESOURCE from these lines https://github.com/Ravenbrook/mps/blob/9fd0577cf1231e61c9801c81499e5d16d0743806/code/arenacv.c#L356-L357 while calling an allocator. ResRESOURCE only occurs in a few places, and is almost certainly to do with a lack of available address space. Given that you've had to patch mmap, that's a smoking gun, but it should be fairly easy to breakpoint all the lines that raise ResRESOURCE to figure out what's happening. Sometimes it's difficult to breakpoint the MPS because it runs in weird signal contexts. We've been known to crash debuggers. I don't know if it's tricksy in Cygwin. In that case, you can hack around with _mps_RES_ENUM in mps.h to make ResRESOURCE call a function. $ grep --color=auto -nH --null -e ResRESOURCE *.c arena.c:767: return ResRESOURCE; arena.c:1048: return ResRESOURCE; arena.c:1227: return ResRESOURCE; arenacv.c:461: die((res == ResRESOURCE) ? ResOK : res, "right error code"); arenavm.c:722: res = ResRESOURCE; fotest.c:55: return ResRESOURCE; mpm.c:254: return (res == ResMEMORY || res == ResRESOURCE || res == ResCOMMIT_LIMIT); thw3.c:101: return ResRESOURCE; vman.c:52: return ResRESOURCE; vman.c:59: return ResRESOURCE; vmix.c:107: return ResRESOURCE; vmix.c:110: return ResRESOURCE; vmix.c:122: return ResRESOURCE; vmw3.c:117: return ResRESOURCE; vmw3.c:120: return ResRESOURCE; vmw3.c:130: return ResRESOURCE; It's very unlikely that you're actually running out of address space on a 64-bit system.