From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.emacs.bugs Subject: bug#57789: Emacs 28.1 clone build with native compilation crashes on s390x Date: Sun, 05 Jan 2025 13:18:55 -0600 Message-ID: <875xmt9ihs.fsf@trouble.defaultvalue.org> References: <87h71aix5r.fsf@trouble.defaultvalue.org> <83pmftz1pn.fsf@gnu.org> <871qs0trcx.fsf@trouble.defaultvalue.org> <87y0ztc27x.fsf@trouble.defaultvalue.org> <87r05jagqq.fsf@trouble.defaultvalue.org> <877c7bk9ov.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10594"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 57789@debbugs.gnu.org, Eli Zaretskii , Andrea Corallo , Stefan Kangas To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 05 20:20:26 2025 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 1tUWAk-0002b8-89 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jan 2025 20:20:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUWAW-0003o5-Tu; Sun, 05 Jan 2025 14:20:12 -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 1tUWAO-0003mv-A3 for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 14:20:06 -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 1tUWAN-00035a-Jh for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 14:20:04 -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:Date:References:In-Reply-To:From:To:Subject; bh=ejjghsRba4aYghvQmFHyE4HQDhORxCAEKtwvWlK7Ht4=; b=p7csElSsxZh9pHVDE4zeDdYd27b+ckP0Wr8F5CfiJpH7DsuzRBcRWgqMk/ArIWHMDUeqE+PdlpZ4iiTzMMk+NUWoJ367zD7tzQSDJGMDpAlwsFjES/FTtHWb5BHHP/TlGP4RYD1S9JSpCltzfx0/450a4+YP64bOEztUOwmOsplLTWEzPk7+RJfta9lTylsIT66Szo1UCx1QdQu2nXfk0T0USaEHes5T51F5XlFXhPfTpk6IvDQaqxH8dy4UjQ3c8vsAVL4mRz0RvgvmoxuNnZZeiWJd2gQvtxRjQseEzp31E4OngckywAXXy9gGWRcu3P7Udp/6LrlHiEbxYbXNfw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUWAM-0004Qq-Ek for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 14:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Rob Browning Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jan 2025 19:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57789 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57789-submit@debbugs.gnu.org id=B57789.173610474316918 (code B ref 57789); Sun, 05 Jan 2025 19:20:02 +0000 Original-Received: (at 57789) by debbugs.gnu.org; 5 Jan 2025 19:19:03 +0000 Original-Received: from localhost ([127.0.0.1]:35273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUW9P-0004On-68 for submit@debbugs.gnu.org; Sun, 05 Jan 2025 14:19:03 -0500 Original-Received: from defaultvalue.org ([45.33.119.55]:51122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUW9M-0004OG-Jk for 57789@debbugs.gnu.org; Sun, 05 Jan 2025 14:19:01 -0500 Original-Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id 34B01204C2; Sun, 5 Jan 2025 13:18:56 -0600 (CST) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id 8BEE614E066; Sun, 5 Jan 2025 13:18:55 -0600 (CST) In-Reply-To: <877c7bk9ov.fsf@protonmail.com> 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:298597 Archived-At: Pip Cet writes: > Same compiler? Is ASLR in use? Should be roughly the same compiler, both are building a "current" unstable tree, and I build the one on zelenka a few days ago and the mmdebstrap one the day before yesterday. Not sure offhand wrt ASLR. > In any case, I'm always interested in weird machines, even if they're > virtual, so I'd appreciate such instructions. OK, so if you have access to a Debian host with recent enough versions (fwiw, I was likely using trixie (testing) versions of debvm and mmdebstrap), this should work. As root: apt install qemu-system-s390x debvm mmdebstrap As not: mkdir test-s390x && cd test-s390x # ssh key is optional (ssh logins may have a bit nicer terminal behavior) # and this uses the "unstable" release by default, could change it to # testing by adding an "-r testing". I tested with unstable. debvm-create \ -h s390x --architecture s390x -z 8G -o root.ext4 \ -k ~/.ssh/SOMETHING.pub \ -- \ --include dialog \ --include locales \ --include zstd \ --include linux-image-generic \ --include ncurses-term \ --include emacs-nox \ --include git # --sshport is of course optional too, and smp 4 allows it to use 4 # host cores (niced since this may take a while...). nice debvm-run -i root.ext4 --sshport 1234 -- -smp 4 -m 4096 Now you're in the vm in the terminal (as root): # Edit sources.list to add a deb-src line corresponding to the # existing deb line, e.g. change it to say: # deb http://deb.debian.org/debian unstable main # deb-src http://deb.debian.org/debian unstable main emacs /etc/apt/sources.list apt update apt build-dep emacs apt install libgccjit-14-dev # discovered current build-dep is stale git clone ... ... debug ... shutdown -h now > Can you disassemble the Fwhile, eval_sub, and visit_static_gc_roots > functions? I assume s390 disassembled code isn't too hard to read... I'll plan to try that later, along with retrieving the requested backtraces. > Random aside: is 0x2aa1c3705ca a likely S390 program counter? The > number looks familiar because it looks similar to a Lisp_Object > representing a symbol on x86-64 without ASLR (an example would be > 0x2aaa8dac00e8). I guess it's just a coincidence though. Hmm, I know very little about the s390x architecture. -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4