From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74805: 30.0.92; Trying to build scratch/igc on Cygwin Date: Wed, 11 Dec 2024 23:47:31 +0000 Message-ID: <87cyhxkck9.fsf@protonmail.com> References: <0e6c2f69-9c33-48d7-87ab-2b13de857f71@cornell.edu> Reply-To: Pip Cet Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2686"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74805@debbugs.gnu.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 12 00:48:55 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 1tLWRo-0000SS-DW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Dec 2024 00:48:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLWRP-0007tf-Sy; Wed, 11 Dec 2024 18:48:28 -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 1tLWRC-0007k4-28 for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 18:48:23 -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 1tLWR0-0000fx-MY for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 18:48:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:From:Date:To:Subject; bh=Mkp/1Q55GuRW3UEB000BA/nOr6qnKYIeXQgSSaNLwJI=; b=REef64jk+f40eceXnf+Ptxg9ea41IdVO6co7U3AviW/y73SHkR4VbvbUDL0WDFVMbrGvZK43zIqddlDvL2cjBg3mgmn3nn/1g0w3ZCBXcf3XEmN5PnijbIV/SvDAEKgujg3o+XXPRBn0sCaugWM7qwDP71x1jAeViPm2p9o5st+mhHiJ6jI2VrlrWEsjvz9HtFuOrPAro0j/+LRW8ima7cVGJShYzaBetItOlKhJfYNxVcAxycAdPcmkulSLYnvHreP4huzTyNW2NXpapedSHzMEgn1qjJbxXAsWtjZO6iOYMkaKN9adPx/9+VuwJogc19wv56M1h2k2B3zCZ15zow==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLWR0-0002Bb-76 for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 18:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Dec 2024 23:48:02 +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.17339608668374 (code B ref 74805); Wed, 11 Dec 2024 23:48:02 +0000 Original-Received: (at 74805) by debbugs.gnu.org; 11 Dec 2024 23:47:46 +0000 Original-Received: from localhost ([127.0.0.1]:36826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLWQj-0002B0-Vz for submit@debbugs.gnu.org; Wed, 11 Dec 2024 18:47:46 -0500 Original-Received: from mail-40131.protonmail.ch ([185.70.40.131]:22941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLWQf-0002AR-TV for 74805@debbugs.gnu.org; Wed, 11 Dec 2024 18:47:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1733960855; x=1734220055; bh=Mkp/1Q55GuRW3UEB000BA/nOr6qnKYIeXQgSSaNLwJI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=wZU/GLil1cgwUP4mLpsV+o3pb8GXYQ0dbdw0Sdm3A+bLGEmjLb+xARjtZUzZYML7O 4U4n2wwe/W80+X3QYIqyA6pjrWo4NCzuugGYE/e/5SstGOf0k0thpba5QMv4/3ta9I 9PBQDFsdGZDcBsLnD0Bf1B57bErUsylBYG/nH+G/zQelMLSo12Jdsc3VaLlhYb6m7G nJwse4tc43VEIUfr4APnOT9WeM4CJ2ISMOdgwjyYRXjOUqw2TWcEdz+cAqRG5OnQAn lXLso2wvb1dr9qojTW15nzGyjGcZzUOP7NUSdy2WoE0rrBs0RpFQu+UhjroT2waNAW vURP5KS9oQXiQ== In-Reply-To: <0e6c2f69-9c33-48d7-87ab-2b13de857f71@cornell.edu> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 050ab9884ddb1954b7defc28b1ce0a05ddcd5bd0 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:296876 Archived-At: "Ken Brown" writes: > I've made a first attempt to port mps to Cygwin. If anyone else is > interested in seeing this or helping, you can find my work at > > https://github.com/kbrow1i/mps-cygwin > > This is a fork of the mps git repo with two commits on top. > > With the current attempt, I can build the scratch/igc branch, but there > are many test failures. For example, when I run the process-tests, I But the Emacs binary "works", to some extent? Is there anything in the process-tests.log file which hints at what kind of problem it might be? Does it work interactively, or crash right away? > get 19 failures and 8 skipped tests. But on the master branch I get no > failures and only 3 skipped. That sounds like a "minor" GC problem; a word size mismatch or alignment problem would probably lead to a hard crash, so it's more likely to be a problem in scanning the stack. I'm a bit confused about the role of prmccyi6.c; it's included in the cyi6gc.mk fragment, but it's not included by mps.c directly. How are you building MPS? I see that you have defined (in prmccyi6.c) Addr MutatorContextSP(MutatorContext context) { AVERT(MutatorContext, context); return (Addr)context->ucontext->uc_mcontext.rsp; /* .sp */ } using the MutatorContextStruct from prmcix.h, which uses an ucontext. However, you also include prmcw3.c, which uses a different definition of MutatorContextStruct. I don't think those two are compatible, so it's possible that's the problem, depending on how you build mps. > This probably means that my current attempt to port mps is no good, and > I have to go back to the drawing board. Before I do that, however, I'd > like to check and see if test failures on scratch/igc are to be > expected. Are people testing other platforms seeing this too? I see a few test failures on Windows, but nothing as catastrophic as what you describe. Do you have a usable debugger/gdb on your platform? That would be one approach to diagnosing crashes (if the problem is indeed that Emacs crashes). Another approach would be to run the test suite included in MPS. Pip