unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Rob Browning <rlb@defaultvalue.org>
To: Pip Cet <pipcet@protonmail.com>
Cc: gerd.moellmann@gmail.com, 57789@debbugs.gnu.org,
	Eli Zaretskii <eliz@gnu.org>, Andrea Corallo <acorallo@gnu.org>,
	Stefan Kangas <stefankangas@gmail.com>
Subject: bug#57789: Emacs 28.1 clone build with native compilation crashes on s390x
Date: Sun, 05 Jan 2025 13:18:55 -0600	[thread overview]
Message-ID: <875xmt9ihs.fsf@trouble.defaultvalue.org> (raw)
In-Reply-To: <877c7bk9ov.fsf@protonmail.com>

Pip Cet <pipcet@protonmail.com> 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





  reply	other threads:[~2025-01-05 19:18 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-14  1:04 bug#57789: Emacs 28.1 clone build with native compilation crashes on s390x Rob Browning
2022-09-14  2:42 ` Eli Zaretskii
2022-09-14  3:06   ` Rob Browning
2022-09-14  3:20     ` Rob Browning
2022-09-14 20:19   ` Rob Browning
2022-09-14 20:21     ` Rob Browning
2022-09-16  6:04       ` Gerd Möllmann
2022-09-17 21:04         ` Rob Browning
2022-09-18  5:22           ` Gerd Möllmann
2022-09-18  5:49             ` Eli Zaretskii
2022-09-18  5:55               ` Gerd Möllmann
2022-09-18  5:33           ` Eli Zaretskii
2022-09-24 21:06             ` Rob Browning
2023-06-07 21:15               ` Andrea Corallo
2023-09-11 18:08                 ` Stefan Kangas
2025-01-02  1:07                   ` Stefan Kangas
2025-01-02  3:40                     ` Rob Browning
2025-01-02  5:04                       ` Stefan Kangas
2025-01-03 18:34                         ` Rob Browning
2025-01-03 18:57                           ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2025-01-05 19:18                             ` Rob Browning [this message]
2025-01-07 13:51                               ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2025-01-03 18:59                           ` Stefan Kangas
2025-01-05 19:23                             ` Rob Browning
2022-09-15  7:10     ` Eli Zaretskii
2022-09-15 14:51       ` Paul Eggert via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-15 16:26         ` Rob Browning
2022-09-16  8:43         ` Andrea Corallo
2022-09-16  8:39       ` Andrea Corallo
2022-09-17 21:00       ` Rob Browning

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875xmt9ihs.fsf@trouble.defaultvalue.org \
    --to=rlb@defaultvalue.org \
    --cc=57789@debbugs.gnu.org \
    --cc=acorallo@gnu.org \
    --cc=eliz@gnu.org \
    --cc=gerd.moellmann@gmail.com \
    --cc=pipcet@protonmail.com \
    --cc=stefankangas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).