GNU bug report logs - #57789
Emacs 28.1 clone build with native compilation crashes on s390x

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Rob Browning <rlb@HIDDEN>; Keywords: moreinfo; dated Wed, 14 Sep 2022 01:05:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 8 Jan 2025 10:37:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 08 05:37:48 2025
Received: from localhost ([127.0.0.1]:46094 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tVTRb-0003Ta-NN
	for submit <at> debbugs.gnu.org; Wed, 08 Jan 2025 05:37:48 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:49830)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <acorallo@HIDDEN>) id 1tVTRZ-0003TL-O5
 for 57789 <at> debbugs.gnu.org; Wed, 08 Jan 2025 05:37:46 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <acorallo@HIDDEN>)
 id 1tVTRU-0002la-9m; Wed, 08 Jan 2025 05:37:40 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=E+xVjLXZfMwUmeMJ7Yg17fmr/Mt/GRgYAByDpliXcGM=; b=WXp2iqiPtwF187R+1nT7
 /xcWDSqoYqeTB+/SeNgDIVKxqBHU1I7BfcmnjWyC5habICefu3/v1hSH1MmUIT9j698UNEjtSxIZG
 NfnNrkvp2NjbDdl2haw8JPrd5Iqaa967qiTZ9N28O2p0K2k1G4akRcCn8Gzk9AP1iOQZiHTHnJ9e4
 SvppuVqhCp24X3wLUw49w6d/ZUXs0jkFhb/nmtTziHW/PzUvruIBlPGmFaJn2PBU6id8fB4RTe0ix
 khM5W9EsV7kAqJWWxEHSgcxFVbPfMZ5oF3Umd2nXq38ipVsJd2G7tZLNAE3PIJbQtR3D7/hQgtEmh
 pWBqn/nnc/CNvw==;
Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <acorallo@HIDDEN>)
 id 1tVTRQ-0004Uj-KQ; Wed, 08 Jan 2025 05:37:38 -0500
From: Andrea Corallo <acorallo@HIDDEN>
To: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
In-Reply-To: <871pxehguf.fsf@HIDDEN> (Pip Cet's message of "Tue, 07
 Jan 2025 13:51:56 +0000")
References: <87h71aix5r.fsf@HIDDEN>
 <yp1pm679dol.fsf@HIDDEN>
 <CADwFkmkfHjoZUReHNqx6s6xq0ORy8q6wqJQdVWydD=shBWRNuQ@HIDDEN>
 <CADwFkmk7S-oatmbj=N2O5feHMc3oU0-kmwLvjnxc3Cje6upRwg@HIDDEN>
 <87y0ztc27x.fsf@HIDDEN>
 <CADwFkmkSGG-eG+XfK1hVmnN6SF3RJ76n4hAPG5zb7ezycgSXLA@HIDDEN>
 <87r05jagqq.fsf@HIDDEN>
 <877c7bk9ov.fsf@HIDDEN>
 <875xmt9ihs.fsf@HIDDEN>
 <871pxehguf.fsf@HIDDEN>
Date: Wed, 08 Jan 2025 05:37:24 -0500
Message-ID: <yp1ed1d4mmz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57789
Cc: gerd.moellmann@HIDDEN, 57789 <at> debbugs.gnu.org,
 Eli Zaretskii <eliz@HIDDEN>, Stefan Kangas <stefankangas@HIDDEN>,
 Rob Browning <rlb@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Pip Cet <pipcet@HIDDEN> writes:

> "Rob Browning" <rlb@HIDDEN> writes:
>
>> Pip Cet <pipcet@HIDDEN> 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.
>
> Hmm.  Is there any way for you to share the binaries that don't work?
> It would be interesting to see whether the binary that crashes on
> silicon works in the emulator.
>
>>> 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.
>
> Thank you very much!  The instructions worked for me!
>
> I could build Emacs, but, as expected, there was no crash.
>
> It's still possible that __builtin_unwind_init was buggy in one GCC
> version but not the other

Yep that's possible, but I had the impression that GCC middle-end was
(probably still is) buggy since forever on that =F0=9F=A4=B7




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 7 Jan 2025 13:52:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 07 08:52:13 2025
Received: from localhost ([127.0.0.1]:42140 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tVA0C-0000BC-JH
	for submit <at> debbugs.gnu.org; Tue, 07 Jan 2025 08:52:12 -0500
Received: from mail-10628.protonmail.ch ([79.135.106.28]:37707)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <pipcet@HIDDEN>)
 id 1tVA0A-0000Av-Ht
 for 57789 <at> debbugs.gnu.org; Tue, 07 Jan 2025 08:52:11 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail3; t=1736257920; x=1736517120;
 bh=LWDwfZDLbI6YfcSOXOA1hU1qhAUQrYv9iaEppsJjFhg=;
 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=vQDwfyVOEhbYTbG8gqcVUKNwxWE0ax0Dq2OXpkcTRrYE6icFVF5wk5SDUL23Xywmj
 6hhf9/kAXzH5VbPIvmjOJdcgWYhFg+0YrEXJuS0bEydvoZhniPcg7motB1NmzZOCKw
 mgFr3FlQXw1PGZV1zgeLd9FNo3eGkoUxkcY2kF0Ewf/FQzLTqiLGbG/FwyRww3TAUB
 Vjo8hkfovUXsJSWA9XS0nsR4GNHjhYx9hAKm6tTb7VhbvoMvw/aFgCDmClAHQsfGg8
 rCZiYkxkxtgk3tFluaWdR6BdnMAm6l2ca0rO1BlDZhw7P1+2Am1ybtCw7uIMhs22X8
 7exCL4KAt8jew==
Date: Tue, 07 Jan 2025 13:51:56 +0000
To: Rob Browning <rlb@HIDDEN>
From: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation crashes
 on s390x
Message-ID: <871pxehguf.fsf@HIDDEN>
In-Reply-To: <875xmt9ihs.fsf@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN>
 <yp1pm679dol.fsf@HIDDEN>
 <CADwFkmkfHjoZUReHNqx6s6xq0ORy8q6wqJQdVWydD=shBWRNuQ@HIDDEN>
 <CADwFkmk7S-oatmbj=N2O5feHMc3oU0-kmwLvjnxc3Cje6upRwg@HIDDEN>
 <87y0ztc27x.fsf@HIDDEN>
 <CADwFkmkSGG-eG+XfK1hVmnN6SF3RJ76n4hAPG5zb7ezycgSXLA@HIDDEN>
 <87r05jagqq.fsf@HIDDEN> <877c7bk9ov.fsf@HIDDEN>
 <875xmt9ihs.fsf@HIDDEN>
Feedback-ID: 112775352:user:proton
X-Pm-Message-ID: dc56540300af1342e8144e9bb32f953ebb746cf8
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: gerd.moellmann@HIDDEN, 57789 <at> debbugs.gnu.org,
 Eli Zaretskii <eliz@HIDDEN>, Andrea Corallo <acorallo@HIDDEN>,
 Stefan Kangas <stefankangas@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

"Rob Browning" <rlb@HIDDEN> writes:

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

Hmm.  Is there any way for you to share the binaries that don't work?
It would be interesting to see whether the binary that crashes on
silicon works in the emulator.

>> 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.

Thank you very much!  The instructions worked for me!

I could build Emacs, but, as expected, there was no crash.

It's still possible that __builtin_unwind_init was buggy in one GCC
version but not the other, but it does generate what looks like the
right code here, which makes that possibility less likely.

>> 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.

If you can do so on a binary that doesn't work, mark_threads would also
be an interesting function, since that's where __builtin_unwind is
inlined.

Pip





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 5 Jan 2025 19:23:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 05 14:23:20 2025
Received: from localhost ([127.0.0.1]:35281 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tUWDY-0004dn-0k
	for submit <at> debbugs.gnu.org; Sun, 05 Jan 2025 14:23:20 -0500
Received: from defaultvalue.org ([45.33.119.55]:52406)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rlb@HIDDEN>) id 1tUWDW-0004dd-7O
 for 57789 <at> debbugs.gnu.org; Sun, 05 Jan 2025 14:23:18 -0500
Received: from trouble.defaultvalue.org (localhost [127.0.0.1])
 (Authenticated sender: rlb@HIDDEN)
 by defaultvalue.org (Postfix) with ESMTPSA id DFFDF204C2;
 Sun,  5 Jan 2025 13:23:17 -0600 (CST)
Received: by trouble.defaultvalue.org (Postfix, from userid 1000)
 id 7782414E066; Sun,  5 Jan 2025 13:23:17 -0600 (CST)
From: Rob Browning <rlb@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>, Andrea Corallo <acorallo@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
In-Reply-To: <CADwFkm=MOLq4Zm0geAmWJPJh5Jokqzcwn-FagkYQU0hamhOw=Q@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN>
 <83tu5a3cdw.fsf@HIDDEN> <87pmfxhfoz.fsf@HIDDEN>
 <87mtb1hfl6.fsf@HIDDEN> <m2y1ujlusp.fsf@HIDDEN>
 <87tu55k90g.fsf@HIDDEN> <83pmftz1pn.fsf@HIDDEN>
 <871qs0trcx.fsf@HIDDEN>
 <yp1pm679dol.fsf@HIDDEN>
 <CADwFkmkfHjoZUReHNqx6s6xq0ORy8q6wqJQdVWydD=shBWRNuQ@HIDDEN>
 <CADwFkmk7S-oatmbj=N2O5feHMc3oU0-kmwLvjnxc3Cje6upRwg@HIDDEN>
 <87y0ztc27x.fsf@HIDDEN>
 <CADwFkmkSGG-eG+XfK1hVmnN6SF3RJ76n4hAPG5zb7ezycgSXLA@HIDDEN>
 <87r05jagqq.fsf@HIDDEN>
 <CADwFkm=MOLq4Zm0geAmWJPJh5Jokqzcwn-FagkYQU0hamhOw=Q@HIDDEN>
Date: Sun, 05 Jan 2025 13:23:17 -0600
Message-ID: <871pxh9iai.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: gerd.moellmann@HIDDEN, 57789 <at> debbugs.gnu.org,
 Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Stefan Kangas <stefankangas@HIDDEN> writes:

> Could you run the crashing command under GDB, and when it segfaults,
> produce the C-level and Lisp-level backtrace, and post them here?
> There are instructions in DEBUG for how to do it.

I haven't gotten to that yet, but when starting to look in to it I
wondered about the optimization level, and after some testing found that
-O2 crashes while -O1 and -O0 do not.

-- 
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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 5 Jan 2025 19:19:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 05 14:19:03 2025
Received: from localhost ([127.0.0.1]:35273 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tUW9P-0004On-68
	for submit <at> debbugs.gnu.org; Sun, 05 Jan 2025 14:19:03 -0500
Received: from defaultvalue.org ([45.33.119.55]:51122)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rlb@HIDDEN>) id 1tUW9M-0004OG-Jk
 for 57789 <at> debbugs.gnu.org; Sun, 05 Jan 2025 14:19:01 -0500
Received: from trouble.defaultvalue.org (localhost [127.0.0.1])
 (Authenticated sender: rlb@HIDDEN)
 by defaultvalue.org (Postfix) with ESMTPSA id 34B01204C2;
 Sun,  5 Jan 2025 13:18:56 -0600 (CST)
Received: by trouble.defaultvalue.org (Postfix, from userid 1000)
 id 8BEE614E066; Sun,  5 Jan 2025 13:18:55 -0600 (CST)
From: Rob Browning <rlb@HIDDEN>
To: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
In-Reply-To: <877c7bk9ov.fsf@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN>
 <83pmftz1pn.fsf@HIDDEN> <871qs0trcx.fsf@HIDDEN>
 <yp1pm679dol.fsf@HIDDEN>
 <CADwFkmkfHjoZUReHNqx6s6xq0ORy8q6wqJQdVWydD=shBWRNuQ@HIDDEN>
 <CADwFkmk7S-oatmbj=N2O5feHMc3oU0-kmwLvjnxc3Cje6upRwg@HIDDEN>
 <87y0ztc27x.fsf@HIDDEN>
 <CADwFkmkSGG-eG+XfK1hVmnN6SF3RJ76n4hAPG5zb7ezycgSXLA@HIDDEN>
 <87r05jagqq.fsf@HIDDEN> <877c7bk9ov.fsf@HIDDEN>
Date: Sun, 05 Jan 2025 13:18:55 -0600
Message-ID: <875xmt9ihs.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: gerd.moellmann@HIDDEN, 57789 <at> debbugs.gnu.org,
 Eli Zaretskii <eliz@HIDDEN>, Andrea Corallo <acorallo@HIDDEN>,
 Stefan Kangas <stefankangas@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Pip Cet <pipcet@HIDDEN> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 3 Jan 2025 18:59:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 03 13:59:35 2025
Received: from localhost ([127.0.0.1]:52077 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tTmtR-0001kn-US
	for submit <at> debbugs.gnu.org; Fri, 03 Jan 2025 13:59:34 -0500
Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]:43067)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1tTmtP-0001kA-O5
 for 57789 <at> debbugs.gnu.org; Fri, 03 Jan 2025 13:59:32 -0500
Received: by mail-ed1-x536.google.com with SMTP id
 4fb4d7f45d1cf-5d3e829ff44so25047982a12.0
 for <57789 <at> debbugs.gnu.org>; Fri, 03 Jan 2025 10:59:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1735930765; x=1736535565; darn=debbugs.gnu.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=kwBPQCCwx8ktvKr9V4gELaE4Eei/D/4DNCA27vkqvKU=;
 b=K7qkDUN1hI2hxaWQXB4JIcIGQ9UZkaVKOUBPMptYIt25h5ZVt5D9BxgoMVIM/y3S6P
 2btoQ7jf1dup0uijvglDaJ87IFlbHNJ7Uagx67ixJVlcCmZQ/xHsLv++aU1TOP/Z5WMy
 7UCOgwEiY3wU7WFzpVixnucR+8T3H1LMwWwXm5v1qyQ63iEyRe8UtTjNAOQe2bZST4/K
 wgTFOHx7kJNuvqPJvBkGwLGkF37R4O+0+K/UQ0/3zvpDgoVbBXjE7KbKBJ50JdFb335y
 5qrs7yL4rDWfpv+xKFmPgVZ2uXTqgKnLwsZLoCwKjIinrwnJoJdaTmZHpvwXJN0E4p8k
 TA2w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1735930765; x=1736535565;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=kwBPQCCwx8ktvKr9V4gELaE4Eei/D/4DNCA27vkqvKU=;
 b=sb8iIKF/svCLt+gykY2Cmw9zjZ36JUx3AOQTWbOrMyPdT+fHWP63LVDMd0Yrkx3ifl
 qC5bvgPgfusqX1V5AS9G5FraZgkkNyryPEEsH/M+FM9uKrIt7scS58xh3VgjYoSUrjCX
 hGgrazAUnEzVwLeRvIL2UAGLLVrHEAa+Z/TZb41uefzqvzSJqZ4K/5tYOZizVN2dqxaF
 4mbkO2GAwAsUJB6oO8g3XfwVOy3Ca2aBJ/1U1zFu3zMCEVeBr9xsjPmu54dIz05KaxQz
 lp4yNO+Zb2gvchnmP40rraQLFdPYNkq4TQYbe+snjBGuT2XdZHesOO2ID75hZIMCrGs1
 qKOg==
X-Forwarded-Encrypted: i=1;
 AJvYcCXcKNlFG1yQEcBBbJB8ZRUn071ff0v/k/gXjbv3wKsf0EpTuINnkhFlvjvu9DoxsHC6jV9sZA==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yxa0vJ4fZZVUBKGOutoXwUbYg8zquMpNKKFOJVHrSjK/sxp68n6
 ktNO9odG9Ku654vSQesQUfOk2Fut/jLK0Xo3xp2cBerzctQY5bx/QQidjjd6RvIwrKejGmwGsW4
 173RjqfcrcjKaZYTUeQetB403Tqs=
X-Gm-Gg: ASbGncs3ymcr5zC6sCRtc7XGbjzbzeqk8EZcVjMgYGWgWGn6U+nRHvpWTx+OmeJjuFS
 lBBy49Oy+vQoPqtjHXxH7WydMcg+X7QADXq+Cf8k=
X-Google-Smtp-Source: AGHT+IEFIL2qXN9Yx6h91zEwkJaAXxja/CXGybekXpPoCnD7Cy3SjGYmXSJqroYceNAYB+uiFwCS7dhOdAI/S3Yo8Ug=
X-Received: by 2002:a05:6402:3513:b0:5d3:e9fd:9a16 with SMTP id
 4fb4d7f45d1cf-5d80245b6e8mr47363642a12.12.1735930765177; Fri, 03 Jan 2025
 10:59:25 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Fri, 3 Jan 2025 12:59:24 -0600
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <87r05jagqq.fsf@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN> <83tu5a3cdw.fsf@HIDDEN>
 <87pmfxhfoz.fsf@HIDDEN>
 <87mtb1hfl6.fsf@HIDDEN>
 <m2y1ujlusp.fsf@HIDDEN> <87tu55k90g.fsf@HIDDEN>
 <83pmftz1pn.fsf@HIDDEN> <871qs0trcx.fsf@HIDDEN>
 <yp1pm679dol.fsf@HIDDEN>
 <CADwFkmkfHjoZUReHNqx6s6xq0ORy8q6wqJQdVWydD=shBWRNuQ@HIDDEN>
 <CADwFkmk7S-oatmbj=N2O5feHMc3oU0-kmwLvjnxc3Cje6upRwg@HIDDEN>
 <87y0ztc27x.fsf@HIDDEN>
 <CADwFkmkSGG-eG+XfK1hVmnN6SF3RJ76n4hAPG5zb7ezycgSXLA@HIDDEN>
 <87r05jagqq.fsf@HIDDEN>
MIME-Version: 1.0
Date: Fri, 3 Jan 2025 12:59:24 -0600
Message-ID: <CADwFkm=MOLq4Zm0geAmWJPJh5Jokqzcwn-FagkYQU0hamhOw=Q@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation crashes
 on s390x
To: Rob Browning <rlb@HIDDEN>, Andrea Corallo <acorallo@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.8 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Rob Browning writes: > In any case, I just tried both the
 current Debian package and an > upstream emcs-29.4 checkout on
 zelenka.debian.org, 
 and both fail. > > The emacs-29.4 tree fails like this: > > make[3]: Entering
 di [...] 
 Content analysis details:   (1.8 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (stefankangas[at]gmail.com)
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2a00:1450:4864:20:0:0:0:536 listed in]
 [list.dnswl.org]
 0.0 UNPARSEABLE_RELAY      Informational: message has unparseable relay
 lines 1.8 LONGWORDS              Long string of long words
X-Debbugs-Envelope-To: 57789
Cc: gerd.moellmann@HIDDEN, 57789 <at> debbugs.gnu.org,
 Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.8 (/)

Rob Browning <rlb@HIDDEN> writes:

> In any case, I just tried both the current Debian package and an
> upstream emcs-29.4 checkout on zelenka.debian.org, and both fail.
>
> The emacs-29.4 tree fails like this:
>
> make[3]: Entering directory '/home/rlb/emacs/admin/unidata'
> make[3]: Nothing to be done for 'charscript.el'.
> make[3]: Leaving directory '/home/rlb/emacs/admin/unidata'
> make -C ../admin/unidata emoji-zwj.el
> make[3]: Entering directory '/home/rlb/emacs/admin/unidata'
> make[3]: Nothing to be done for 'emoji-zwj.el'.
> make[3]: Leaving directory '/home/rlb/emacs/admin/unidata'
>   ELC+ELN  ../lisp/emacs-lisp/eldoc.elc
>
> Error: wrong-type-argument ("../lisp/emacs-lisp/eldoc.el" hash-table-p [u=
nbound unbound unbound unbound unbound unbound unbound unbound unbound unbo=
und unbound unbound unbound unbound unbound unbound unbound unbound unbound=
 unbound unbound unbound unbound unbound unbound unbound unbound unbound un=
bound unbound unbound unbound unbound unbound unbound unbound unbound unbou=
nd unbound unbound unbound unbound unbound unbound unbound unbound unbound =
unbound unbound unbound unbound unbound unbound unbound unbound unbound unb=
ound unbound unbound unbound unbound unbound unbound unbound unbound unboun=
d unbound unbound unbound unbound unbound unbound unbound unbound unbound u=
nbound unbound unbound unbound unbound unbound unbound unbound unbound unbo=
und unbound unbound unbound unbound unbound unbound unbound unbound unbound=
 unbound unbound unbound unbound unbound unbound unbound unbound unbound un=
bound unbound unbound unbound unbound unbound unbound unbound unbound unbou=
nd unbound unbound unbound unbound unbound unbound unbound unbound unbound =
unbound unbound unbound unbound unbound unbound unbound unbound])
> Fatal error 11: Segmentation fault
> Backtrace:
> ../src/bootstrap-emacs(emacs_backtrace+0x46) [0x2aa1c2f12f6]
> ../src/bootstrap-emacs(terminate_due_to_signal+0x9e) [0x2aa1c18fb76]
> ../src/bootstrap-emacs(+0x8fdde) [0x2aa1c18fdde]
> ../src/bootstrap-emacs(+0x1ef45a) [0x2aa1c2ef45a]
> ../src/bootstrap-emacs(+0x1ef4a2) [0x2aa1c2ef4a2]
> linux-vdso64.so.1(__kernel_rt_sigreturn+0x0) [0x3ffdc0e5480]
> ../src/bootstrap-emacs(+0x2433a4) [0x2aa1c3433a4]
> ../src/bootstrap-emacs(visit_static_gc_roots+0x196) [0x2aa1c342dae]
> ../src/bootstrap-emacs(garbage_collect+0x1e6) [0x2aa1c3445d6]
> ../src/bootstrap-emacs(eval_sub+0x54c) [0x2aa1c370244]
> ../src/bootstrap-emacs(eval_sub+0x4ac) [0x2aa1c3701a4]
> ../src/bootstrap-emacs(Fcond+0x84) [0x2aa1c3711f4]
> ../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
> ../src/bootstrap-emacs(Fwhile+0x6e) [0x2aa1c370fb6]
> ../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
> ../src/bootstrap-emacs(Flet+0x2e2) [0x2aa1c374012]
> ../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
> ../src/bootstrap-emacs(Fcond+0x84) [0x2aa1c3711f4]
> ../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
> ../src/bootstrap-emacs(+0x271716) [0x2aa1c371716]
> ../src/bootstrap-emacs(+0x27362c) [0x2aa1c37362c]
> ../src/bootstrap-emacs(eval_sub+0x290) [0x2aa1c36ff88]
> ../src/bootstrap-emacs(Fsetq+0xa8) [0x2aa1c370ab0]
> ../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
> ../src/bootstrap-emacs(Fwhile+0x6e) [0x2aa1c370fb6]
> ../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
> ../src/bootstrap-emacs(Flet+0x2e2) [0x2aa1c374012]
> ../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
> ../src/bootstrap-emacs(Fcond+0x84) [0x2aa1c3711f4]
> ../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
> ../src/bootstrap-emacs(+0x271716) [0x2aa1c371716]
> ../src/bootstrap-emacs(+0x27362c) [0x2aa1c37362c]
> ../src/bootstrap-emacs(eval_sub+0x290) [0x2aa1c36ff88]
> ../src/bootstrap-emacs(Fsetq+0xa8) [0x2aa1c370ab0]
> ../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
> ../src/bootstrap-emacs(Fwhile+0x6e) [0x2aa1c370fb6]
> ../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
> ../src/bootstrap-emacs(Flet+0x2e2) [0x2aa1c374012]
> ../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
> ../src/bootstrap-emacs(Fcond+0x84) [0x2aa1c3711f4]
> ../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
> ...
> make[3]: *** [Makefile:282: ../lisp/emacs-lisp/eldoc.elc] Segmentation fa=
ult
> make[2]: *** [Makefile:841: ../lisp/emacs-lisp/eldoc.elc] Error 2
> make[2]: Leaving directory '/home/rlb/emacs/src'
> make[1]: *** [Makefile:544: src] Error 2
> make[1]: Leaving directory '/home/rlb/emacs'
> make[1]: Entering directory '/home/rlb/emacs'
> ***
> *** "make all" failed with exit status 2.
> ***
> *** You could try to:
> *** - run "make bootstrap", which might fix the problem
> *** - run "make V=3D1", which displays the full commands invoked by make,
> ***   to further investigate the problem
> ***
> make[1]: *** [Makefile:414: advice-on-failure] Error 2
> make[1]: Leaving directory '/home/rlb/emacs'
> make: *** [Makefile:370: all] Error 2
>
> Hope this helps

Thanks.

Could you run the crashing command under GDB, and when it segfaults,
produce the C-level and Lisp-level backtrace, and post them here?
There are instructions in DEBUG for how to do it.

Make sure to configure the build according to DEBUG, i.e. something like

  ./configure --enable-checking=3D'yes,glyphs' --enable-check-lisp-object-t=
ype \
    CFLAGS=3D'-O0 -g3'




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 3 Jan 2025 18:58:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 03 13:58:09 2025
Received: from localhost ([127.0.0.1]:52073 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tTms5-0001g5-77
	for submit <at> debbugs.gnu.org; Fri, 03 Jan 2025 13:58:09 -0500
Received: from mail-40131.protonmail.ch ([185.70.40.131]:49819)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <pipcet@HIDDEN>)
 id 1tTms2-0001f5-Q6
 for 57789 <at> debbugs.gnu.org; Fri, 03 Jan 2025 13:58:08 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail3; t=1735930679; x=1736189879;
 bh=L305j8yomBjDPb3pHW/5qRFU0jDS0DpC4iE+S7GpLqg=;
 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=o/6his/He06zpNl9Rk5gXj0hdFQM3t0MDe/Fk7djFy4TF1whwG9UUsG//G0onzoh6
 ReNBPi9didDMeX8Ue4rkmka93rP0NGgTrpBcfFZHHB1u/gA7G20s98vB11XMjkR/AK
 bCCJWAAX1SCathPVClSq7uxyZ/OgJr/5SFCxuyPniq4rtyGvJ9DN0uuPmj92GnnKmA
 +xrY46aNJcSvzU8vBSZNhXI6WgrRYcsP2ORak6aji+Trpo1rN1PQa36hqexY3cH9UM
 nXhK9lXNOUNIbj8vGZpx0GOuR/WQhdLzMu3fdI0tbv1lbGI4RxCE79RN9FkRD37lCQ
 lkwiz8AHFRUJw==
Date: Fri, 03 Jan 2025 18:57:55 +0000
To: Rob Browning <rlb@HIDDEN>
From: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation crashes
 on s390x
Message-ID: <877c7bk9ov.fsf@HIDDEN>
In-Reply-To: <87r05jagqq.fsf@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN> <83pmftz1pn.fsf@HIDDEN>
 <871qs0trcx.fsf@HIDDEN> <yp1pm679dol.fsf@HIDDEN>
 <CADwFkmkfHjoZUReHNqx6s6xq0ORy8q6wqJQdVWydD=shBWRNuQ@HIDDEN>
 <CADwFkmk7S-oatmbj=N2O5feHMc3oU0-kmwLvjnxc3Cje6upRwg@HIDDEN>
 <87y0ztc27x.fsf@HIDDEN>
 <CADwFkmkSGG-eG+XfK1hVmnN6SF3RJ76n4hAPG5zb7ezycgSXLA@HIDDEN>
 <87r05jagqq.fsf@HIDDEN>
Feedback-ID: 112775352:user:proton
X-Pm-Message-ID: fa18211069dcca2a8a972dab14c0eeaf06f9bd95
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: gerd.moellmann@HIDDEN, 57789 <at> debbugs.gnu.org,
 Eli Zaretskii <eliz@HIDDEN>, Andrea Corallo <acorallo@HIDDEN>,
 Stefan Kangas <stefankangas@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

"Rob Browning" <rlb@HIDDEN> writes:

> Stefan Kangas <stefankangas@HIDDEN> writes:
>
>> Thanks.  I guess not a lot of us have access to an s390x machine, so I
>> don't think anyone has been able to test it.
>
> Hmm, I think I've heard there may be (or were?) some public instances
> that provide short-term dev access, but have never looked in to it.

I have cfarm access, but cfarm doesn't have an s390 machine :-(

> I was also going to outline an easy way to test in a vm at least on a
> Debian system via debvm/mmdebstrap, but after doing that, I wasn't able
> to reproduce the problem there.  (Happy to provide instructions for
> anyone interested, otherwise.)

Same compiler?  Is ASLR in use? In any case, I'm always interested in
weird machines, even if they're virtual, so I'd appreciate such
instructions.

> In any case, I just tried both the current Debian package and an
> upstream emcs-29.4 checkout on zelenka.debian.org, and both fail.
>
> The emacs-29.4 tree fails like this:
>
> make[3]: Entering directory '/home/rlb/emacs/admin/unidata'
> make[3]: Nothing to be done for 'charscript.el'.
> make[3]: Leaving directory '/home/rlb/emacs/admin/unidata'
> make -C ../admin/unidata emoji-zwj.el
> make[3]: Entering directory '/home/rlb/emacs/admin/unidata'
> make[3]: Nothing to be done for 'emoji-zwj.el'.
> make[3]: Leaving directory '/home/rlb/emacs/admin/unidata'
>   ELC+ELN  ../lisp/emacs-lisp/eldoc.elc
>
> Error: wrong-type-argument ("../lisp/emacs-lisp/eldoc.el" hash-table-p
> [unbound unbound unbound unbound unbound unbound unbound unbound
> unbound unbound unbound unbound unbound unbound unbound unbound
> unbound unbound unbound unbound unbound unbound unbound unbound
> unbound unbound unbound unbound unbound unbound unbound unbound
> unbound unbound unbound unbound unbound unbound unbound unbound
> unbound unbound unbound unbound unbound unbound unbound unbound
> unbound unbound unbound unbound unbound unbound unbound unbound
> unbound unbound unbound unbound unbound unbound unbound unbound
> unbound unbound unbound unbound unbound unbound unbound unbound
> unbound unbound unbound unbound unbound unbound unbound unbound
> unbound unbound unbound unbound unbound unbound unbound unbound
> unbound unbound unbound unbound unbound unbound unbound unbound
> unbound unbound unbound unbound unbound unbound unbound unbound
> unbound unbound unbound unbound unbound unbound unbound unbound
> unbound unbound unbound unbound unbound unbound unbound unbound
> unbound unbound unbound unbound unbound unbound unbound unbound
> unbound unbound])
> Fatal error 11: Segmentation fault

Two random guesses:

1. purespace overflow.  This causes erratic behavior of pretty much
every description.  The tell-tale sign would be a "Pure Lisp storage
overflowed" message at some point in the "make bootstrap" log, maybe a
very long time before we crash.

2. GC problem.  One possible problem is that Emacs currently relies on
__builtin_unwind_init to do the right thing.  If __builtin_unwind_init
isn't implemented on s390, but is necessary (the second part is very
likely), we'll fail to mark some objects on the stack.

(2) seems more likely.

> Backtrace:
> ../src/bootstrap-emacs(emacs_backtrace+0x46) [0x2aa1c2f12f6]
> ../src/bootstrap-emacs(terminate_due_to_signal+0x9e) [0x2aa1c18fb76]
> ../src/bootstrap-emacs(+0x8fdde) [0x2aa1c18fdde]
> ../src/bootstrap-emacs(+0x1ef45a) [0x2aa1c2ef45a]
> ../src/bootstrap-emacs(+0x1ef4a2) [0x2aa1c2ef4a2]
> linux-vdso64.so.1(__kernel_rt_sigreturn+0x0) [0x3ffdc0e5480]
> ../src/bootstrap-emacs(+0x2433a4) [0x2aa1c3433a4]
> ../src/bootstrap-emacs(visit_static_gc_roots+0x196) [0x2aa1c342dae]
> ../src/bootstrap-emacs(garbage_collect+0x1e6) [0x2aa1c3445d6]
> ../src/bootstrap-emacs(eval_sub+0x54c) [0x2aa1c370244]
> ../src/bootstrap-emacs(eval_sub+0x4ac) [0x2aa1c3701a4]
> ../src/bootstrap-emacs(Fcond+0x84) [0x2aa1c3711f4]
> ../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
> ../src/bootstrap-emacs(Fwhile+0x6e) [0x2aa1c370fb6]

Can you disassemble the Fwhile, eval_sub, and visit_static_gc_roots
functions?  I assume s390 disassembled code isn't too hard to read...

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.

Thanks!

Pip





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 3 Jan 2025 18:34:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 03 13:34:41 2025
Received: from localhost ([127.0.0.1]:52040 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tTmVN-0008Ra-6A
	for submit <at> debbugs.gnu.org; Fri, 03 Jan 2025 13:34:41 -0500
Received: from defaultvalue.org ([45.33.119.55]:60102)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rlb@HIDDEN>) id 1tTmVK-0008RK-SB
 for 57789 <at> debbugs.gnu.org; Fri, 03 Jan 2025 13:34:40 -0500
Received: from trouble.defaultvalue.org (localhost [127.0.0.1])
 (Authenticated sender: rlb@HIDDEN)
 by defaultvalue.org (Postfix) with ESMTPSA id A7F1920195;
 Fri,  3 Jan 2025 12:34:37 -0600 (CST)
Received: by trouble.defaultvalue.org (Postfix, from userid 1000)
 id 484FA14E066; Fri,  3 Jan 2025 12:34:37 -0600 (CST)
From: Rob Browning <rlb@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>, Andrea Corallo <acorallo@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
In-Reply-To: <CADwFkmkSGG-eG+XfK1hVmnN6SF3RJ76n4hAPG5zb7ezycgSXLA@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN>
 <83tu5a3cdw.fsf@HIDDEN> <87pmfxhfoz.fsf@HIDDEN>
 <87mtb1hfl6.fsf@HIDDEN> <m2y1ujlusp.fsf@HIDDEN>
 <87tu55k90g.fsf@HIDDEN> <83pmftz1pn.fsf@HIDDEN>
 <871qs0trcx.fsf@HIDDEN>
 <yp1pm679dol.fsf@HIDDEN>
 <CADwFkmkfHjoZUReHNqx6s6xq0ORy8q6wqJQdVWydD=shBWRNuQ@HIDDEN>
 <CADwFkmk7S-oatmbj=N2O5feHMc3oU0-kmwLvjnxc3Cje6upRwg@HIDDEN>
 <87y0ztc27x.fsf@HIDDEN>
 <CADwFkmkSGG-eG+XfK1hVmnN6SF3RJ76n4hAPG5zb7ezycgSXLA@HIDDEN>
Date: Fri, 03 Jan 2025 12:34:37 -0600
Message-ID: <87r05jagqq.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.8 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Stefan Kangas <stefankangas@HIDDEN> writes: > Thanks. I
 guess not a lot of us have access to an s390x machine, so I > don't think
 anyone has been able to test it. Hmm, I think I've heard there may be (or
 were?) some public instances that provide short-term dev access, but have
 never looked in to it. 
 Content analysis details:   (1.8 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
 The query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [45.33.119.55 listed in sa-trusted.bondedsender.org]
 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [45.33.119.55 listed in bl.score.senderscore.com]
 1.8 LONGWORDS              Long string of long words
X-Debbugs-Envelope-To: 57789
Cc: gerd.moellmann@HIDDEN, 57789 <at> debbugs.gnu.org,
 Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.8 (/)

Stefan Kangas <stefankangas@HIDDEN> writes:

> Thanks.  I guess not a lot of us have access to an s390x machine, so I
> don't think anyone has been able to test it.

Hmm, I think I've heard there may be (or were?) some public instances
that provide short-term dev access, but have never looked in to it.

I was also going to outline an easy way to test in a vm at least on a
Debian system via debvm/mmdebstrap, but after doing that, I wasn't able
to reproduce the problem there.  (Happy to provide instructions for
anyone interested, otherwise.)

In any case, I just tried both the current Debian package and an
upstream emcs-29.4 checkout on zelenka.debian.org, and both fail.

The emacs-29.4 tree fails like this:

make[3]: Entering directory '/home/rlb/emacs/admin/unidata'
make[3]: Nothing to be done for 'charscript.el'.
make[3]: Leaving directory '/home/rlb/emacs/admin/unidata'
make -C ../admin/unidata emoji-zwj.el
make[3]: Entering directory '/home/rlb/emacs/admin/unidata'
make[3]: Nothing to be done for 'emoji-zwj.el'.
make[3]: Leaving directory '/home/rlb/emacs/admin/unidata'
  ELC+ELN  ../lisp/emacs-lisp/eldoc.elc

Error: wrong-type-argument ("../lisp/emacs-lisp/eldoc.el" hash-table-p [unb=
ound unbound unbound unbound unbound unbound unbound unbound unbound unboun=
d unbound unbound unbound unbound unbound unbound unbound unbound unbound u=
nbound unbound unbound unbound unbound unbound unbound unbound unbound unbo=
und unbound unbound unbound unbound unbound unbound unbound unbound unbound=
 unbound unbound unbound unbound unbound unbound unbound unbound unbound un=
bound unbound unbound unbound unbound unbound unbound unbound unbound unbou=
nd unbound unbound unbound unbound unbound unbound unbound unbound unbound =
unbound unbound unbound unbound unbound unbound unbound unbound unbound unb=
ound unbound unbound unbound unbound unbound unbound unbound unbound unboun=
d unbound unbound unbound unbound unbound unbound unbound unbound unbound u=
nbound unbound unbound unbound unbound unbound unbound unbound unbound unbo=
und unbound unbound unbound unbound unbound unbound unbound unbound unbound=
 unbound unbound unbound unbound unbound unbound unbound unbound unbound un=
bound unbound unbound unbound unbound unbound unbound unbound])
Fatal error 11: Segmentation fault
Backtrace:
../src/bootstrap-emacs(emacs_backtrace+0x46) [0x2aa1c2f12f6]
../src/bootstrap-emacs(terminate_due_to_signal+0x9e) [0x2aa1c18fb76]
../src/bootstrap-emacs(+0x8fdde) [0x2aa1c18fdde]
../src/bootstrap-emacs(+0x1ef45a) [0x2aa1c2ef45a]
../src/bootstrap-emacs(+0x1ef4a2) [0x2aa1c2ef4a2]
linux-vdso64.so.1(__kernel_rt_sigreturn+0x0) [0x3ffdc0e5480]
../src/bootstrap-emacs(+0x2433a4) [0x2aa1c3433a4]
../src/bootstrap-emacs(visit_static_gc_roots+0x196) [0x2aa1c342dae]
../src/bootstrap-emacs(garbage_collect+0x1e6) [0x2aa1c3445d6]
../src/bootstrap-emacs(eval_sub+0x54c) [0x2aa1c370244]
../src/bootstrap-emacs(eval_sub+0x4ac) [0x2aa1c3701a4]
../src/bootstrap-emacs(Fcond+0x84) [0x2aa1c3711f4]
../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
../src/bootstrap-emacs(Fwhile+0x6e) [0x2aa1c370fb6]
../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
../src/bootstrap-emacs(Flet+0x2e2) [0x2aa1c374012]
../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
../src/bootstrap-emacs(Fcond+0x84) [0x2aa1c3711f4]
../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
../src/bootstrap-emacs(+0x271716) [0x2aa1c371716]
../src/bootstrap-emacs(+0x27362c) [0x2aa1c37362c]
../src/bootstrap-emacs(eval_sub+0x290) [0x2aa1c36ff88]
../src/bootstrap-emacs(Fsetq+0xa8) [0x2aa1c370ab0]
../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
../src/bootstrap-emacs(Fwhile+0x6e) [0x2aa1c370fb6]
../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
../src/bootstrap-emacs(Flet+0x2e2) [0x2aa1c374012]
../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
../src/bootstrap-emacs(Fcond+0x84) [0x2aa1c3711f4]
../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
../src/bootstrap-emacs(+0x271716) [0x2aa1c371716]
../src/bootstrap-emacs(+0x27362c) [0x2aa1c37362c]
../src/bootstrap-emacs(eval_sub+0x290) [0x2aa1c36ff88]
../src/bootstrap-emacs(Fsetq+0xa8) [0x2aa1c370ab0]
../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
../src/bootstrap-emacs(Fwhile+0x6e) [0x2aa1c370fb6]
../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
../src/bootstrap-emacs(Flet+0x2e2) [0x2aa1c374012]
../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
../src/bootstrap-emacs(Fcond+0x84) [0x2aa1c3711f4]
../src/bootstrap-emacs(eval_sub+0x8d2) [0x2aa1c3705ca]
...
make[3]: *** [Makefile:282: ../lisp/emacs-lisp/eldoc.elc] Segmentation fault
make[2]: *** [Makefile:841: ../lisp/emacs-lisp/eldoc.elc] Error 2
make[2]: Leaving directory '/home/rlb/emacs/src'
make[1]: *** [Makefile:544: src] Error 2
make[1]: Leaving directory '/home/rlb/emacs'
make[1]: Entering directory '/home/rlb/emacs'
***
*** "make all" failed with exit status 2.
***
*** You could try to:
*** - run "make bootstrap", which might fix the problem
*** - run "make V=3D1", which displays the full commands invoked by make,
***   to further investigate the problem
***
make[1]: *** [Makefile:414: advice-on-failure] Error 2
make[1]: Leaving directory '/home/rlb/emacs'
make: *** [Makefile:370: all] Error 2

Hope this helps
--=20
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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 2 Jan 2025 05:04:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 02 00:04:08 2025
Received: from localhost ([127.0.0.1]:42259 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tTDNQ-0002t6-4M
	for submit <at> debbugs.gnu.org; Thu, 02 Jan 2025 00:04:08 -0500
Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:58459)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1tTDNO-0002sy-2U
 for 57789 <at> debbugs.gnu.org; Thu, 02 Jan 2025 00:04:07 -0500
Received: by mail-ed1-x52a.google.com with SMTP id
 4fb4d7f45d1cf-5d414b8af7bso21497573a12.0
 for <57789 <at> debbugs.gnu.org>; Wed, 01 Jan 2025 21:04:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1735794245; x=1736399045; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=v0ltKW6E5+RTz36CHmBTcqgn5vVNIO1ycPoRwD2Sz88=;
 b=NGgnJIEoTiyWooaFSLwn1kW47eegxb/4fzMzyY52ftShpQrZOcLU8XTjvJ9YhnF0OH
 VFIy/+9O0EaGfuqRPSz9K+duJtK2xpnDxzqiVzBXFvfT+N5BYEm2FQgywd9vuhGXdXpY
 pPR9j5YUaJguqNvphTrPH0/H+Im80Oqa22hsyFlT/zirNtEOArnyg/ZuCU/PomIdIykD
 iRvgIMOj9JClmYvNV5HxbQaX2QRgvKzEvJ88xGFfEmS0mNSv3+wBeiM+pRy8Ou/eVu/E
 ka9z/HWyna4/m+kP99BXtfliNAP4BXXK+ajKpqNBPky7hcCwFMKeK7Ai6Jjcu0XxvZGl
 FS6A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1735794245; x=1736399045;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=v0ltKW6E5+RTz36CHmBTcqgn5vVNIO1ycPoRwD2Sz88=;
 b=qLGRmWMsBIv1meHusB+CtzriVEijTUCAEajzFHrsLxmmRyM4/P/8L5lHkgbTSZa2Y5
 DhOAk8GGi0rAliiq4+Xj6L/dB0hWO6LReriBSBDiWfZy1XNHgjgQ62TTXIIIx0AMPmsM
 C3cViszkYAdF4CBQSfB9RV3fl5PwLBf5Oc5Zd6EzskAXqGAiQF/fVOSuXwes/4HFOTfM
 8/v48WqQqz7EfcRhPf7UrkQVzLaxhBiMNSB65OLzRZIrHsb7We8hSApZlLh7o/DDy4x2
 Jn6qByV6801rquMqnFUavpxnM2kCi50kykxSXMABCVKGbqmF5PpKe0iGwOcTe24Mrm+l
 FsfA==
X-Forwarded-Encrypted: i=1;
 AJvYcCWjGQAOyOpY3bIDYu70kHetCp32KLakCToU1KbBYhVzM12fcsRRMKoymQKHcwiC2mhlcsop5Q==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwGvt/Ovd8lU3tc+A90bpAYH6HjUvpDHURErFAgCSKXWR50T+M+
 bfh1WH33m3/zZIxe22D2FNhG5WgDMrH0p/qRiXC/AZx9qAkShcm828td4tXg8y/Axf1ayGsBoes
 XPdCTJCz3FpGMuYsQ3yeSy4GEUvAstXX2jy8=
X-Gm-Gg: ASbGncvbtmH2vSBI3l9XcEzCu6Iiys0u2y816jjxFDgT572TcrPeYGgHGK6DnH7dVxR
 ipB1gmJZwzxLxFQ12xe/MYgXqv2WDC0YwRkvDVF+e
X-Google-Smtp-Source: AGHT+IFxORyIDTdEqnc4pbZKvl6swMbZGhQa3FpDFuv3h6XRtiv9JZfC4EkvUcGD/1CMypaNKt8lKWmVYPxl6/lAbFw=
X-Received: by 2002:a05:6402:321b:b0:5d3:bc56:3b24 with SMTP id
 4fb4d7f45d1cf-5d81ddd6558mr45219786a12.4.1735794244725; Wed, 01 Jan 2025
 21:04:04 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Wed, 1 Jan 2025 23:04:04 -0600
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <87y0ztc27x.fsf@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN> <83tu5a3cdw.fsf@HIDDEN>
 <87pmfxhfoz.fsf@HIDDEN>
 <87mtb1hfl6.fsf@HIDDEN>
 <m2y1ujlusp.fsf@HIDDEN> <87tu55k90g.fsf@HIDDEN>
 <83pmftz1pn.fsf@HIDDEN> <871qs0trcx.fsf@HIDDEN>
 <yp1pm679dol.fsf@HIDDEN>
 <CADwFkmkfHjoZUReHNqx6s6xq0ORy8q6wqJQdVWydD=shBWRNuQ@HIDDEN>
 <CADwFkmk7S-oatmbj=N2O5feHMc3oU0-kmwLvjnxc3Cje6upRwg@HIDDEN>
 <87y0ztc27x.fsf@HIDDEN>
MIME-Version: 1.0
Date: Wed, 1 Jan 2025 23:04:04 -0600
Message-ID: <CADwFkmkSGG-eG+XfK1hVmnN6SF3RJ76n4hAPG5zb7ezycgSXLA@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation crashes
 on s390x
To: Rob Browning <rlb@HIDDEN>, Andrea Corallo <acorallo@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: gerd.moellmann@HIDDEN, 57789 <at> debbugs.gnu.org,
 Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Rob Browning <rlb@HIDDEN> writes:

> Stefan Kangas <stefankangas@HIDDEN> writes:
>
>> Friendly ping.  Were you able to reproduce this with a recent Emacs?
>
> I believe we just ended up disabling native compilation on relevant
> architectures, if I'm correlating the right things:
>
>   https://salsa.debian.org/rlb/deb-emacs/-/blob/deb/emacs/d/sid/master/debian/rules?ref_type=heads#L289
>
> I'd guess no one's tested since then, but I can try it with a newer tree
> when I get time if it's not reproducible upstream.

Thanks.  I guess not a lot of us have access to an s390x machine, so I
don't think anyone has been able to test it.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 2 Jan 2025 03:40:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 01 22:40:57 2025
Received: from localhost ([127.0.0.1]:41708 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tTC4v-0007Bk-Ft
	for submit <at> debbugs.gnu.org; Wed, 01 Jan 2025 22:40:57 -0500
Received: from defaultvalue.org ([45.33.119.55]:52554)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rlb@HIDDEN>) id 1tTC4s-0007BZ-GU
 for 57789 <at> debbugs.gnu.org; Wed, 01 Jan 2025 22:40:56 -0500
Received: from trouble.defaultvalue.org (localhost [127.0.0.1])
 (Authenticated sender: rlb@HIDDEN)
 by defaultvalue.org (Postfix) with ESMTPSA id 9D6892037C;
 Wed,  1 Jan 2025 21:40:51 -0600 (CST)
Received: by trouble.defaultvalue.org (Postfix, from userid 1000)
 id DD80514E066; Wed,  1 Jan 2025 21:40:50 -0600 (CST)
From: Rob Browning <rlb@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>, Andrea Corallo <acorallo@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
In-Reply-To: <CADwFkmk7S-oatmbj=N2O5feHMc3oU0-kmwLvjnxc3Cje6upRwg@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN>
 <83tu5a3cdw.fsf@HIDDEN> <87pmfxhfoz.fsf@HIDDEN>
 <87mtb1hfl6.fsf@HIDDEN> <m2y1ujlusp.fsf@HIDDEN>
 <87tu55k90g.fsf@HIDDEN> <83pmftz1pn.fsf@HIDDEN>
 <871qs0trcx.fsf@HIDDEN>
 <yp1pm679dol.fsf@HIDDEN>
 <CADwFkmkfHjoZUReHNqx6s6xq0ORy8q6wqJQdVWydD=shBWRNuQ@HIDDEN>
 <CADwFkmk7S-oatmbj=N2O5feHMc3oU0-kmwLvjnxc3Cje6upRwg@HIDDEN>
Date: Wed, 01 Jan 2025 21:40:50 -0600
Message-ID: <87y0ztc27x.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: gerd.moellmann@HIDDEN, 57789 <at> debbugs.gnu.org,
 Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Stefan Kangas <stefankangas@HIDDEN> writes:

> Friendly ping.  Were you able to reproduce this with a recent Emacs?

I believe we just ended up disabling native compilation on relevant
architectures, if I'm correlating the right things:

  https://salsa.debian.org/rlb/deb-emacs/-/blob/deb/emacs/d/sid/master/debian/rules?ref_type=heads#L289

I'd guess no one's tested since then, but I can try it with a newer tree
when I get time if it's not reproducible upstream.

-- 
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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 2 Jan 2025 01:08:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 01 20:08:00 2025
Received: from localhost ([127.0.0.1]:40988 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tT9gt-0007qX-L8
	for submit <at> debbugs.gnu.org; Wed, 01 Jan 2025 20:07:59 -0500
Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:51665)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1tT9gr-0007qP-AY
 for 57789 <at> debbugs.gnu.org; Wed, 01 Jan 2025 20:07:58 -0500
Received: by mail-ed1-x530.google.com with SMTP id
 4fb4d7f45d1cf-5d84179ef26so15643379a12.3
 for <57789 <at> debbugs.gnu.org>; Wed, 01 Jan 2025 17:07:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1735780076; x=1736384876; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=/acQV2DuZvw1Mhm9uduovXhVasNJJyjF3ybbwIhodUQ=;
 b=ZO7MPVqY4ZATkgOlU/MJvd0UbVMF2FiRVlMeEK0Ng6B2dpGF/1zye9JMwGJNKEfeVI
 741kujF/pL6RXEA2lfNTpb32ov3qBUwbH/yWtH7S3XAeV5+D28Z2mdkuYctYJJzeciSV
 xFZlsJUgN9DLTGGONDgeBh09wtjdcX/ENP+ES5oviVYh8TCjJAZUO9KRBrX08fuU6iAr
 oenUl1Z7EVKB8WdkLfQaM6QT16AY01bf2PNvHybaN4rABqg/6I2nxk0APCu42/2SG5K+
 QZCvTdgp4bGlU38IEGErIKPEBy89+sD41z8kd58rAP82NulbYB1LOTIgpDFZLNd+Ey9a
 15aQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1735780076; x=1736384876;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=/acQV2DuZvw1Mhm9uduovXhVasNJJyjF3ybbwIhodUQ=;
 b=l5U8HqoyTTY1K6KqDzHo5C95Vk11oAnydNXjqceiMxUT9O4DN5EKTmn8c9sriTt9mf
 GigHiYGwQzIKebfKPe3Co8UG6YgGYLfx/CFDAvKpna5rRbE1tvHiNVHfRKsDMfLOzVrX
 da4GDMksBaFSUuvfDx7Go7sOtLZ0Tg8Y8DZOso4csu7rjLSyYzgJGa1z4V+OSjyRoZiW
 4GkyekkRPPDdCU8pO507S3fcP/ohWQHlwpBx6BZYevYd9/jk78PO3AdTbj23Vks1n6Zb
 A7qrg49NRE1K0oEMXgbt0ltBiuVOO1O9E0MbXRa4hwHODIrg2XwnAJEpbQ/K/ycZPTnU
 hJmg==
X-Forwarded-Encrypted: i=1;
 AJvYcCU+vntB2FguhAs1EXYvZlnC9AE8lpiA03e75aqU1hyKvowXkkwvPs1V2Z8/2vk3bBAPqh6Jsw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YzjSjCyE0YDjpoIx0i0EH/vbYFiu7NZ5rU0YY8RiAJbkCTYVq2K
 PGbk6ClcCKFlTWHM1ek+yma+PLPMTCoRo7AeY0wc+RMoqKXdpiBKICoUzC8LIXDLxxsUgi92SWu
 J5stxw7h0HJ09fsvu5Iu4yV4ITOMw1f0R
X-Gm-Gg: ASbGncvjvL8oUgPlyyn9MJSCsLfiDi151913J7P3x5ipE6gQESm+OUt92FTVIX8nL4B
 Cn3SWFr/abkN8+C4ogjkgpIeFwC4/reMGQWYqRrvD
X-Google-Smtp-Source: AGHT+IEMR5vYEh7rx+QBD3JHYAS4M/E0lz0TOS58Am6ekfXC9QkqpUGrzWVqrg7cehR12+YaQH+y9QjPVTZR5lFkwyo=
X-Received: by 2002:a05:6402:50d2:b0:5d3:d917:dd90 with SMTP id
 4fb4d7f45d1cf-5d81dd642e4mr40027503a12.6.1735780076109; Wed, 01 Jan 2025
 17:07:56 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Wed, 1 Jan 2025 19:07:55 -0600
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <CADwFkmkfHjoZUReHNqx6s6xq0ORy8q6wqJQdVWydD=shBWRNuQ@HIDDEN>
 (Stefan Kangas's message of "Mon, 11 Sep 2023 11:08:13 -0700")
References: <87h71aix5r.fsf@HIDDEN> <83tu5a3cdw.fsf@HIDDEN>
 <87pmfxhfoz.fsf@HIDDEN>
 <87mtb1hfl6.fsf@HIDDEN>
 <m2y1ujlusp.fsf@HIDDEN> <87tu55k90g.fsf@HIDDEN>
 <83pmftz1pn.fsf@HIDDEN> <871qs0trcx.fsf@HIDDEN>
 <yp1pm679dol.fsf@HIDDEN>
 <CADwFkmkfHjoZUReHNqx6s6xq0ORy8q6wqJQdVWydD=shBWRNuQ@HIDDEN>
MIME-Version: 1.0
Date: Wed, 1 Jan 2025 19:07:55 -0600
Message-ID: <CADwFkmk7S-oatmbj=N2O5feHMc3oU0-kmwLvjnxc3Cje6upRwg@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation crashes
 on s390x
To: Andrea Corallo <acorallo@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: gerd.moellmann@HIDDEN, 57789 <at> debbugs.gnu.org,
 Eli Zaretskii <eliz@HIDDEN>, Rob Browning <rlb@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Stefan Kangas <stefankangas@HIDDEN> writes:

> tags 57789 + moreinfo
> thanks
>
> Andrea Corallo <acorallo@HIDDEN> writes:
>
>> Rob Browning <rlb@HIDDEN> writes:
>>
>>> Eli Zaretskii <eliz@HIDDEN> writes:
>>>
>>>> Once you know which staticpro is being processed here, we'd need to
>>>> examine its contents and try to figure out which parts cause the crash
>>>> in GC.
>>>
>>> Thanks, and I'll try to look in to this further when I have time.  For
>>> now I'm changing the debian packages to avoid native compilation on some
>>> architectures (currently mips64el[1] and s390x).
>>>
>>> [1] There ./configure fails at the moment with "Error: -march=mips1 is
>>>     not compatible with the selected ABI" when testing libgccjit.
>>>     That's on eller.debian.org (mipsel host in a mips64el schroot).
>>
>> Hi Rob,
>>
>> any progress with this investigation?  Is the bug still reproducible
>> with a recent codebase?
>
> Ping.  Rob, any updates here?

Friendly ping.  Were you able to reproduce this with a recent Emacs?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.
Added tag(s) moreinfo. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 11 Sep 2023 18:08:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 11 14:08:27 2023
Received: from localhost ([127.0.0.1]:54747 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qflKl-0003lH-G1
	for submit <at> debbugs.gnu.org; Mon, 11 Sep 2023 14:08:27 -0400
Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:50308)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1qflKi-0003kv-C9
 for 57789 <at> debbugs.gnu.org; Mon, 11 Sep 2023 14:08:25 -0400
Received: by mail-lj1-x232.google.com with SMTP id
 38308e7fff4ca-2bcc14ea414so78053161fa.0
 for <57789 <at> debbugs.gnu.org>; Mon, 11 Sep 2023 11:08:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1694455694; x=1695060494; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=H20Bs0hmhwoPTWQfYakzvnWXAcTa/UNotYpiKUmG3k4=;
 b=KnWDSzQgNh4+NE884KVPNBbfSXMnvRdtUJPpu2ZOQc1dIEVa8HjamkK593Re4dfX7k
 3GtXLgUl4sHF73OqNjsXA1bPB5DncGwili7/DHMt7SE7qoozVL7dDnLtN8ToWV7KnVu7
 uuZKenTDWZ93yjOtBSsCmjat6ABMaJ4EVkTdMrI4VfaqOu08yZVabEvn/ea8CGfqp7Cx
 MQ5taFG9LPlaWO3otBe4ax45yeMXtAUJs3n21fKRG5Fpjj4F7qSLF0WksyPFZQaCqxx3
 R+6paTHAnRlQE8LAVefSWKyz432UARKKbkW+HpD69hkoAXWT75MSldjFv1Cg9Yo0wcmq
 vJ+g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1694455694; x=1695060494;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=H20Bs0hmhwoPTWQfYakzvnWXAcTa/UNotYpiKUmG3k4=;
 b=GqgYsmKGmAy/sCcJOc2ttIBZkEDBcaOVfn5dGVmaH+07bhp93g5Vm6bN8ueUsReVZq
 HdhSnaF4BAzOr7X7n0DKOvuVJxStQbGi5aaIDcGCiHSD8Xyub3J7zRIIyfOApsaJrCA5
 4ZVXHWUiEaIJHP9fpHDAOdA/Vb3QF7RJnZNx6GpjLTKGXiESwJrAtKXvDbgpG0dpt26+
 Bc+mGacdONZHMr5Amf79BviMBdbc7Ye3f/G9Wn3wQBv02mRQ1P5UPIJ1Mhv7O8kG0XRW
 dklCxxN6Bm4n4yP9UGRICq++rtmqDOwIloW8iPNveCWojJSGWBiriBTO9B1lxi+V5YTL
 YMZg==
X-Gm-Message-State: AOJu0Yx17W+c8Ji9+DTNITc8pXuZN4WpUV4RqhUEpkPUPmRbfCU0Wf8f
 i+XaagXaVD+i7bo9Hm9q7qP6R3QclocdgQNhgZQQ/ymA
X-Google-Smtp-Source: AGHT+IE9pJwpwWdGpv2qr0fOJSMP8C+8aAd9DpE53n2PbMLDKMW45p3qXsOX5BWZdmGVjzuMv8xzXzSq2ht2ZKQcOtg=
X-Received: by 2002:a2e:9987:0:b0:2bb:c212:5589 with SMTP id
 w7-20020a2e9987000000b002bbc2125589mr8436764lji.17.1694455693978; Mon, 11 Sep
 2023 11:08:13 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Mon, 11 Sep 2023 11:08:13 -0700
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <yp1pm679dol.fsf@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN> <83tu5a3cdw.fsf@HIDDEN>
 <87pmfxhfoz.fsf@HIDDEN>
 <87mtb1hfl6.fsf@HIDDEN>
 <m2y1ujlusp.fsf@HIDDEN> <87tu55k90g.fsf@HIDDEN>
 <83pmftz1pn.fsf@HIDDEN> <871qs0trcx.fsf@HIDDEN>
 <yp1pm679dol.fsf@HIDDEN>
MIME-Version: 1.0
Date: Mon, 11 Sep 2023 11:08:13 -0700
Message-ID: <CADwFkmkfHjoZUReHNqx6s6xq0ORy8q6wqJQdVWydD=shBWRNuQ@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation crashes
 on s390x
To: Andrea Corallo <acorallo@HIDDEN>, Rob Browning <rlb@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: gerd.moellmann@HIDDEN, 57789 <at> debbugs.gnu.org,
 Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

tags 57789 + moreinfo
thanks

Andrea Corallo <acorallo@HIDDEN> writes:

> Rob Browning <rlb@HIDDEN> writes:
>
>> Eli Zaretskii <eliz@HIDDEN> writes:
>>
>>> Once you know which staticpro is being processed here, we'd need to
>>> examine its contents and try to figure out which parts cause the crash
>>> in GC.
>>
>> Thanks, and I'll try to look in to this further when I have time.  For
>> now I'm changing the debian packages to avoid native compilation on some
>> architectures (currently mips64el[1] and s390x).
>>
>> [1] There ./configure fails at the moment with "Error: -march=mips1 is
>>     not compatible with the selected ABI" when testing libgccjit.
>>     That's on eller.debian.org (mipsel host in a mips64el schroot).
>
> Hi Rob,
>
> any progress with this investigation?  Is the bug still reproducible
> with a recent codebase?

Ping.  Rob, any updates here?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 7 Jun 2023 21:15:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 07 17:15:48 2023
Received: from localhost ([127.0.0.1]:54930 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q70VP-0005oi-VR
	for submit <at> debbugs.gnu.org; Wed, 07 Jun 2023 17:15:48 -0400
Received: from eggs.gnu.org ([209.51.188.92]:35212)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <acorallo@HIDDEN>) id 1q70VO-0005oV-Kl
 for 57789 <at> debbugs.gnu.org; Wed, 07 Jun 2023 17:15:47 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <acorallo@HIDDEN>)
 id 1q70VI-0005Sp-2k; Wed, 07 Jun 2023 17:15:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=MYPYHCtYb4cUTzRL5Pu+niYraTwtcF7F5uTC6udcw6A=; b=c4H30gEE7cCMgpdUEhZM
 nuKn4Q/GYb7BkNAt8B3SZWlNr54qmxPNGtzgP5ymaGmPGUsGNFi076q/t4ESyWUxi+j9TYGArOS9+
 3lp/hmiiURTZBSp4LB9OHwwemp8SdDfd9oL8zyw+PTgRh4Hs91hmO9kVTM6p+P7SoiXDnq4nnfgen
 pR03WC4CGtJHfNBmnllia64QgJphrvlzphRiUXPuhPHO95Gm1j2RYnOKZbrZUHQaOWsKFa0Z5Mul9
 cebPgi5fe5pLSZAITPJG5y/4CujQstD/pUBCABCVMMDPdgKbijk1HIY9CZZgczoic1PkLiG7U4d6n
 06rMUdoZrhNqzg==;
Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <acorallo@HIDDEN>)
 id 1q70VG-0001Iu-CW; Wed, 07 Jun 2023 17:15:38 -0400
From: Andrea Corallo <acorallo@HIDDEN>
To: Rob Browning <rlb@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
In-Reply-To: <871qs0trcx.fsf@HIDDEN> (Rob Browning's message
 of "Sat, 24 Sep 2022 16:06:06 -0500")
References: <87h71aix5r.fsf@HIDDEN> <83tu5a3cdw.fsf@HIDDEN>
 <87pmfxhfoz.fsf@HIDDEN>
 <87mtb1hfl6.fsf@HIDDEN>
 <m2y1ujlusp.fsf@HIDDEN>
 <87tu55k90g.fsf@HIDDEN> <83pmftz1pn.fsf@HIDDEN>
 <871qs0trcx.fsf@HIDDEN>
Date: Wed, 07 Jun 2023 17:15:38 -0400
Message-ID: <yp1pm679dol.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57789
Cc: gerd.moellmann@HIDDEN, 57789 <at> debbugs.gnu.org,
 Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Rob Browning <rlb@HIDDEN> writes:

> Eli Zaretskii <eliz@HIDDEN> writes:
>
>> Once you know which staticpro is being processed here, we'd need to
>> examine its contents and try to figure out which parts cause the crash
>> in GC.
>
> Thanks, and I'll try to look in to this further when I have time.  For
> now I'm changing the debian packages to avoid native compilation on some
> architectures (currently mips64el[1] and s390x).
>
> [1] There ./configure fails at the moment with "Error: -march=mips1 is
>     not compatible with the selected ABI" when testing libgccjit.
>     That's on eller.debian.org (mipsel host in a mips64el schroot).

Hi Rob,

any progress with this investigation?  Is the bug still reproducible
with a recent codebase?

Thanks

  Andrea




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 24 Sep 2022 21:06:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 24 17:06:13 2022
Received: from localhost ([127.0.0.1]:45368 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ocCLl-0000Hc-0i
	for submit <at> debbugs.gnu.org; Sat, 24 Sep 2022 17:06:13 -0400
Received: from defaultvalue.org ([45.33.119.55]:59686 ident=postfix)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rlb@HIDDEN>) id 1ocCLf-0000HR-TE
 for 57789 <at> debbugs.gnu.org; Sat, 24 Sep 2022 17:06:11 -0400
Received: from trouble.defaultvalue.org (localhost [127.0.0.1])
 (Authenticated sender: rlb@HIDDEN)
 by defaultvalue.org (Postfix) with ESMTPSA id E764820616;
 Sat, 24 Sep 2022 16:06:06 -0500 (CDT)
Received: by trouble.defaultvalue.org (Postfix, from userid 1000)
 id 6F7E914E081; Sat, 24 Sep 2022 16:06:06 -0500 (CDT)
From: Rob Browning <rlb@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
In-Reply-To: <83pmftz1pn.fsf@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN>
 <83tu5a3cdw.fsf@HIDDEN> <87pmfxhfoz.fsf@HIDDEN>
 <87mtb1hfl6.fsf@HIDDEN> <m2y1ujlusp.fsf@HIDDEN>
 <87tu55k90g.fsf@HIDDEN> <83pmftz1pn.fsf@HIDDEN>
Date: Sat, 24 Sep 2022 16:06:06 -0500
Message-ID: <871qs0trcx.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: gerd.moellmann@HIDDEN, 57789 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> Once you know which staticpro is being processed here, we'd need to
> examine its contents and try to figure out which parts cause the crash
> in GC.

Thanks, and I'll try to look in to this further when I have time.  For
now I'm changing the debian packages to avoid native compilation on some
architectures (currently mips64el[1] and s390x).

[1] There ./configure fails at the moment with "Error: -march=mips1 is
    not compatible with the selected ABI" when testing libgccjit.
    That's on eller.debian.org (mipsel host in a mips64el schroot).

-- 
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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 18 Sep 2022 05:55:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 18 01:55:33 2022
Received: from localhost ([127.0.0.1]:47590 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZnHA-0005LI-RW
	for submit <at> debbugs.gnu.org; Sun, 18 Sep 2022 01:55:33 -0400
Received: from mail-ej1-f43.google.com ([209.85.218.43]:46662)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oZnH6-0005L3-JH
 for 57789 <at> debbugs.gnu.org; Sun, 18 Sep 2022 01:55:32 -0400
Received: by mail-ej1-f43.google.com with SMTP id bj12so57639253ejb.13
 for <57789 <at> debbugs.gnu.org>; Sat, 17 Sep 2022 22:55:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date;
 bh=AA2HgF2bwW5ifZi2ngptfxt8ydlZ4tbY1fEBvUtdE5o=;
 b=o3lcNeFLY2jdhXR73ryjdSr15yTbbXSDf0oBys+/FYeXPVUUIwTsnYDSDFrt6NkECn
 2nQZZZXzmDSJ8LLnhViMsjv8WfsiJWx4crlyH78WteQu+Q+hBjV59t54J56p/Upv1qwR
 Bcs25hwU2Ybh8Fda+/BEvbWH4gVHAr+SGpEnf/fqBJ5JJoPuEOz0vCKuiRcxPtO2INYB
 FuKPazQemgpwoMkjnR9L7K2KT6o9AVRZR7TZgHtMgoeVmCPxe9BcfPDdGaAEgXZpi+w/
 Dtmc4bSgR6zw5imZwjUkfkDspfIgL9QLc6QIeLU7Qyj0f+XkCk3M8f6QhO3NEXn203V2
 PgXw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date;
 bh=AA2HgF2bwW5ifZi2ngptfxt8ydlZ4tbY1fEBvUtdE5o=;
 b=lx2vriFyfXvLj2ZzZpMxROB3+2lOw6m+XymgMiGs8tEumeAzLwBY03dNDKlk6/g2nY
 2pBMOkexGjsBfmA7/Iyzys0DMpRX/oC+xiG+/PqBU5oGZJ5m1VkmD0yuoiZKLWL9XYfG
 OqPk572AFAkVjdZ/mmRnNZK2j6Iw8MWnirF5XRu0WRrLWTzUKQDtv2+bqjilczYVlCa0
 YLKErvmYaaPivSh7b/XOIVc3TfAF1VgkDbeEQGJC9LlFiPGhbSZ/OJLODei7vjKQKyOc
 aYDi3PGLFnGamxrpJ2inoON4JyqGkHcaEfC3H/HIsePQED9CZutBtg+p7/Y8VzvI0WZQ
 oLnA==
X-Gm-Message-State: ACrzQf31UL2/9CLvB4Z0HZTS3X4zctgtoJ+ZdZ18h4BPdMnyvh/th6om
 CwaK9noKJRzQ3rkBreIrd1c=
X-Google-Smtp-Source: AMsMyM70/s7e0fbY3LpZYSi/RuXwXnP8ZKA9x8VnOks84+Z8pz6vsYB83cionOvrYpdFYboorwwTbA==
X-Received: by 2002:a17:907:75c5:b0:77a:fd9f:12d1 with SMTP id
 jl5-20020a17090775c500b0077afd9f12d1mr8550329ejc.82.1663480522727; 
 Sat, 17 Sep 2022 22:55:22 -0700 (PDT)
Received: from [192.168.178.21] (pd9e3614c.dip0.t-ipconnect.de.
 [217.227.97.76]) by smtp.gmail.com with ESMTPSA id
 se28-20020a170906ce5c00b00730b3bdd8d7sm13439364ejb.179.2022.09.17.22.55.21
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 17 Sep 2022 22:55:21 -0700 (PDT)
Message-ID: <d8771915-4bdd-fc21-3542-1d694609ba0f@HIDDEN>
Date: Sun, 18 Sep 2022 07:55:19 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
 Gecko/20100101 Thunderbird/91.13.0
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation crashes
 on s390x
Content-Language: en-US
To: Eli Zaretskii <eliz@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN> <83tu5a3cdw.fsf@HIDDEN>
 <87pmfxhfoz.fsf@HIDDEN>
 <87mtb1hfl6.fsf@HIDDEN> <m2y1ujlusp.fsf@HIDDEN>
 <87tu55k90g.fsf@HIDDEN> <m2a66xxnmi.fsf@HIDDEN>
 <83k061z0z5.fsf@HIDDEN>
From: =?UTF-8?Q?Gerd_M=c3=b6llmann?= <gerd.moellmann@HIDDEN>
In-Reply-To: <83k061z0z5.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -1.8 (-)
X-Debbugs-Envelope-To: 57789
Cc: 57789 <at> debbugs.gnu.org, rlb@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.8 (--)

On 22-09-18 7:49 , Eli Zaretskii wrote:
>> From: Gerd Möllmann <gerd.moellmann@HIDDEN>
>> Cc: Eli Zaretskii <eliz@HIDDEN>,  57789 <at> debbugs.gnu.org
>> Date: Sun, 18 Sep 2022 07:22:45 +0200
>>
>> But let's first see where in visit_... we are.
> 
> I think the backtrace tells that, if you look at the sources from the
> emacs-28 branch.  See my other message.

Ah, right, visit_buffer_root.  EINSUFFICIENTCOFFEE.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 18 Sep 2022 05:49:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 18 01:49:10 2022
Received: from localhost ([127.0.0.1]:47580 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZnAz-0004z8-N1
	for submit <at> debbugs.gnu.org; Sun, 18 Sep 2022 01:49:09 -0400
Received: from eggs.gnu.org ([209.51.188.92]:46614)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1oZnAx-0004yt-CB
 for 57789 <at> debbugs.gnu.org; Sun, 18 Sep 2022 01:49:07 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:59080)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oZnAr-0006Ll-Tt; Sun, 18 Sep 2022 01:49:01 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=wJax2u9ZiHg6ydtTf3H2dkcqECGVc0cR3+m99EKaQDc=; b=hSfv5qSiwlgmXGfGANTd
 AxxKTgtDeymrxKUjjH8wnAETukG+aLB48pWuVBkGBnDdU8qsqml1S9P2pieEQDTwGmNqF6q+IAFGm
 dQcLnif8RK+vHoqpqqeh3+vyrUy4+GaPr0249cgo+fiHuRny/hKEmzBWGDCrF2g4ts6EVNukpD9El
 Bn0DcFzEqlsOGFGoeIipPYarRiUQQXQTgEJb/VH2o9KYkcUXV+ExfNbvlGYGpHZCcrQcMkRtEIOKT
 Pd0Ar5kvOy83SWifMlEJjOIgVcB1m+hUOpAgOAv0a3QrU/JvXRaoqVlXqjVMTQasgTBnn4vsR8mNy
 hEzFAov7S8InmQ==;
Received: from [87.69.77.57] (port=3793 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oZnAr-0001QM-CO; Sun, 18 Sep 2022 01:49:01 -0400
Date: Sun, 18 Sep 2022 08:49:02 +0300
Message-Id: <83k061z0z5.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
In-Reply-To: <m2a66xxnmi.fsf@HIDDEN> (message from Gerd
 =?utf-8?Q?M=C3=B6llmann?= on Sun, 18 Sep 2022 07:22:45 +0200)
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
References: <87h71aix5r.fsf@HIDDEN> <83tu5a3cdw.fsf@HIDDEN>
 <87pmfxhfoz.fsf@HIDDEN>
 <87mtb1hfl6.fsf@HIDDEN>
 <m2y1ujlusp.fsf@HIDDEN>
 <87tu55k90g.fsf@HIDDEN> <m2a66xxnmi.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57789
Cc: 57789 <at> debbugs.gnu.org, rlb@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Gerd Möllmann <gerd.moellmann@HIDDEN>
> Cc: Eli Zaretskii <eliz@HIDDEN>,  57789 <at> debbugs.gnu.org
> Date: Sun, 18 Sep 2022 07:22:45 +0200
> 
> But let's first see where in visit_... we are.

I think the backtrace tells that, if you look at the sources from the
emacs-28 branch.  See my other message.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 18 Sep 2022 05:33:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 18 01:33:23 2022
Received: from localhost ([127.0.0.1]:47555 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZmvj-0004ZG-4j
	for submit <at> debbugs.gnu.org; Sun, 18 Sep 2022 01:33:23 -0400
Received: from eggs.gnu.org ([209.51.188.92]:45070)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1oZmvg-0004Z2-Mg
 for 57789 <at> debbugs.gnu.org; Sun, 18 Sep 2022 01:33:21 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:58056)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oZmvb-0004TI-3x; Sun, 18 Sep 2022 01:33:15 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=b68E7V5jy2XPMw/ClKFd2lSlem/y/SYeq8GJXR+KmFo=; b=kkOAnx/ZlU2PtJQ4EIVu
 eZnqvFYXyg4Jw+h1SpAG6qLDdk4t3tkFBVcSXB8Vl26CKD8yp1utKInx6dhiBRnb4e9lMsgtCAYVZ
 DCGYYoouUaPBjjDwuM6BH0mKswmzoxMaYx0b9aaG9JFRLO6EfA03R7XE/seyruG2ZfSL1JpUxfOfi
 nsoPrWZI5ptEC6NKYKvhP2hF/ZCvUnzQ5taZcJBKM/YBLl13rCDbnxQ2uBfydn5qYdMKSnJnBH8qg
 gDJHPShlUXJeL0rdp/Aezz6Bs2Wd5WzELufk4aoxkQf7L9n5MDYa42VBuFUqK4iCX6jU8f4EMd2Px
 sjcvR64BwZjkkQ==;
Received: from [87.69.77.57] (port=2809 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oZmvT-0003RN-Gy; Sun, 18 Sep 2022 01:33:14 -0400
Date: Sun, 18 Sep 2022 08:33:08 +0300
Message-Id: <83pmftz1pn.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Rob Browning <rlb@HIDDEN>
In-Reply-To: <87tu55k90g.fsf@HIDDEN> (message from Rob
 Browning on Sat, 17 Sep 2022 16:04:31 -0500)
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
References: <87h71aix5r.fsf@HIDDEN>
 <83tu5a3cdw.fsf@HIDDEN> <87pmfxhfoz.fsf@HIDDEN>
 <87mtb1hfl6.fsf@HIDDEN> <m2y1ujlusp.fsf@HIDDEN>
 <87tu55k90g.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57789
Cc: gerd.moellmann@HIDDEN, 57789 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Rob Browning <rlb@HIDDEN>
> Cc: Eli Zaretskii <eliz@HIDDEN>, 57789 <at> debbugs.gnu.org
> Date: Sat, 17 Sep 2022 16:04:31 -0500
> 
> Gerd Möllmann <gerd.moellmann@HIDDEN> writes:
> 
> > Looking at Rob's backtrace, 
> >
> > #0  mark_object (arg=<optimized out>) at alloc.c:6809
> > #1  0x000002aa001a8ee6 in mark_objects (n=<optimized out>, obj=0x2aa00ac54a8) at alloc.c:6607
> > #2  mark_vectorlike (header=0x2aa00ac54a0) at alloc.c:6382
> > #3  0x000002aa001a8ee6 in mark_objects (n=<optimized out>, obj=0x2aa007f4ca8) at alloc.c:6607
> > #4  mark_vectorlike (header=0x2aa007f4ca0) at alloc.c:6382
> > #5  0x000002aa001a8ee6 in mark_objects (n=<optimized out>, obj=0x2aa007c3b10) at alloc.c:6607
> > #6  mark_vectorlike (header=0x2aa007c3b08) at alloc.c:6382
> > #7  0x000002aa001a7c3e in visit_static_gc_roots (visitor=...) at alloc.c:5926
> >
> > and seeing frame#7, would it be a way forward to determine which
> > staticpro (I assume it is a staticpro) that is?  Maybe that can give a
> > clue which one can then use together with a bisect, perhaps?
> 
> Not completely sure I followed, but moving up to that frame and printing
> visitor didn't work: "optimized out".

The code where this happens is this:

  for (int i = 0; i < staticidx; i++)
    visitor.visit (staticvec[i], GC_ROOT_STATICPRO, visitor.data);

So one way of knowing which staticpro is being handled here is to see
what is the value of 'i' and look at staticvec[i].  I'm guessing that
'i' is also "optimized out", though, so 2 possible ways forward:

  . disassemble visit_static_gc_roots, find in which register or where
    on the stack or in memory is 'i; or staticvec[i] stored, and go
    from there; or
  . add a printf to the above loop to show the value of 'i', and
    re-run the build, fingers crossed, hoping that the additional
    printf won't make the crash go away.

Once you know which staticpro is being processed here, we'd need to
examine its contents and try to figure out which parts cause the crash
in GC.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 18 Sep 2022 05:22:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 18 01:22:57 2022
Received: from localhost ([127.0.0.1]:47538 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZmlc-0004DU-OK
	for submit <at> debbugs.gnu.org; Sun, 18 Sep 2022 01:22:57 -0400
Received: from mail-wr1-f47.google.com ([209.85.221.47]:41827)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oZmlb-0004DH-D3
 for 57789 <at> debbugs.gnu.org; Sun, 18 Sep 2022 01:22:55 -0400
Received: by mail-wr1-f47.google.com with SMTP id t14so42201717wrx.8
 for <57789 <at> debbugs.gnu.org>; Sat, 17 Sep 2022 22:22:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date;
 bh=2oOVIV1aAkUOVpaY9FcVlfS9FuQMCM3odg9T0xaTz9c=;
 b=AC+LWRbcLRLo5R9Vgy9Nu+DR4KDtP4BhxA5LSjVdJqj2ht32jy8Wjd8m05/LzskvEh
 7HUr/7woqQDiUXhiDqLKfDYGzK6/YZEBwQOs4BCzjRBbB2QTnaE8ceJCYf7I8fZv5gqD
 UojJZTJWKFZ5BySurwkpLHZn5AVlyGvs4lEujdhWH15NZOyg42fuj+h5weukYuU782aM
 nlt4gcLRaS0k42HtYr+NkBTKpB23oHumXkZiJ8+W2qKw/qUDOTmX9Jw+mo5Aoeg5Llb4
 E/+8c7XN6vp7tgF+BQC+SbP2MJQ2dLNsg99NvS90z8cALAmF1RuVJ8+5eNl4yvAOFK77
 jx6Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date;
 bh=2oOVIV1aAkUOVpaY9FcVlfS9FuQMCM3odg9T0xaTz9c=;
 b=gO3ik1Qbn9sVf9PQLhgWUNgCzrztNa3ukz8JW1POog9ag1hAmVN3a1vfU1s+OUVae/
 TdQp8vPOok0Xp991mWhZdROBdWFAjKKfoWon/GAfSF20crmwWU3G3jCIZ0tKsOAaLNEe
 6YYl88ZeRDabqF0ZlwNiNNiAi4Ix94c3ny/XFtIC287VqlxiVZfm90uiM1+JTfhWfiQ+
 IX8EuVLr3ma17vg+z6YIAnl4XVf3XdrgsSYGshcKhz0mvwef4UyZrAT22qq1aSwT84GG
 TNkOfsxbWX9+BTpn5Na52XY2PPjH79nXOezhctUbALJQ/BqHM27T/dl7H8UCv+6IC75N
 H3JQ==
X-Gm-Message-State: ACrzQf0AZkCakyCwKCFG1kOGdKKYon/OPb4xhXV0jiQmGVMsBORp5R18
 E/5LYRxGofoGYb/PrD9A5u/7okNOdjZdWA==
X-Google-Smtp-Source: AMsMyM5QUYHhlBSU3cvXem20TvRq+Roh4HpqxArQ0edUFFWMBY6RxZyFhOtSdh72FZykRcfzI+BUlA==
X-Received: by 2002:a05:6000:178e:b0:22a:d7be:3878 with SMTP id
 e14-20020a056000178e00b0022ad7be3878mr7307328wrg.91.1663478567818; 
 Sat, 17 Sep 2022 22:22:47 -0700 (PDT)
Received: from Mini.fritz.box (pd9e3614c.dip0.t-ipconnect.de. [217.227.97.76])
 by smtp.gmail.com with ESMTPSA id
 g3-20020a056000118300b00228c375d81bsm1510099wrx.2.2022.09.17.22.22.46
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 17 Sep 2022 22:22:47 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Rob Browning <rlb@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
In-Reply-To: <87tu55k90g.fsf@HIDDEN> (Rob Browning's message
 of "Sat, 17 Sep 2022 16:04:31 -0500")
References: <87h71aix5r.fsf@HIDDEN> <83tu5a3cdw.fsf@HIDDEN>
 <87pmfxhfoz.fsf@HIDDEN>
 <87mtb1hfl6.fsf@HIDDEN>
 <m2y1ujlusp.fsf@HIDDEN>
 <87tu55k90g.fsf@HIDDEN>
Date: Sun, 18 Sep 2022 07:22:45 +0200
Message-ID: <m2a66xxnmi.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: 57789 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Rob Browning <rlb@HIDDEN> writes:

> Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:
>
>> Looking at Rob's backtrace,=20
>>
>> #0  mark_object (arg=3D<optimized out>) at alloc.c:6809
>> #1  0x000002aa001a8ee6 in mark_objects (n=3D<optimized out>, obj=3D0x2aa=
00ac54a8) at alloc.c:6607
>> #2  mark_vectorlike (header=3D0x2aa00ac54a0) at alloc.c:6382
>> #3  0x000002aa001a8ee6 in mark_objects (n=3D<optimized out>, obj=3D0x2aa=
007f4ca8) at alloc.c:6607
>> #4  mark_vectorlike (header=3D0x2aa007f4ca0) at alloc.c:6382
>> #5  0x000002aa001a8ee6 in mark_objects (n=3D<optimized out>, obj=3D0x2aa=
007c3b10) at alloc.c:6607
>> #6  mark_vectorlike (header=3D0x2aa007c3b08) at alloc.c:6382
>> #7  0x000002aa001a7c3e in visit_static_gc_roots (visitor=3D...) at alloc=
.c:5926
>>
>> and seeing frame#7, would it be a way forward to determine which
>> staticpro (I assume it is a staticpro) that is?  Maybe that can give a
>> clue which one can then use together with a bisect, perhaps?
>
> Not completely sure I followed, but moving up to that frame and printing
> visitor didn't work: "optimized out".

Sorry, I thought another Emacs developer would chime in, when I wrote
that.

Let me try to explain what I'm after.  Frame#7, the call to
visit_static_gc_roots shows that we are at the very beginning of a GC,
recursively marking everything that we know must survice the GC.

void
visit_static_gc_roots (struct gc_root_visitor visitor)
{
  visit_buffer_root (visitor,
                     &buffer_defaults,
                     GC_ROOT_BUFFER_LOCAL_DEFAULT);
  visit_buffer_root (visitor,
                     &buffer_local_symbols,
                     GC_ROOT_BUFFER_LOCAL_NAME);

  for (int i =3D 0; i < ARRAYELTS (lispsym); i++)
    {
      Lisp_Object sptr =3D builtin_lisp_symbol (i);
      visitor.visit (&sptr, GC_ROOT_C_SYMBOL, visitor.data);
    }

  for (int i =3D 0; i < staticidx; i++)
    visitor.visit (staticvec[i], GC_ROOT_STATICPRO, visitor.data);
}

First interesting thing would be where in this function we are when the
crash happens.  I was assuming it is somewhere in the last for-loop, for
reasons, but that doesn't have to be the case.

If I'm right, we are currently in the process of marking Lisp objects
referenced from C variables that are known to contains Lisp objects.
Such variables are added to staticvec with a call to staticpro.  That's
what the staticpro in my last mail menat.

But let's first see where in visit_... we are.






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 17 Sep 2022 21:04:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 17 17:04:34 2022
Received: from localhost ([127.0.0.1]:47268 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZezK-0004MD-DD
	for submit <at> debbugs.gnu.org; Sat, 17 Sep 2022 17:04:34 -0400
Received: from defaultvalue.org ([45.33.119.55]:59684 ident=postfix)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rlb@HIDDEN>) id 1oZezI-0004M6-Nk
 for 57789 <at> debbugs.gnu.org; Sat, 17 Sep 2022 17:04:33 -0400
Received: from trouble.defaultvalue.org (localhost [127.0.0.1])
 (Authenticated sender: rlb@HIDDEN)
 by defaultvalue.org (Postfix) with ESMTPSA id 6A7392015F;
 Sat, 17 Sep 2022 16:04:32 -0500 (CDT)
Received: by trouble.defaultvalue.org (Postfix, from userid 1000)
 id 0C18114E081; Sat, 17 Sep 2022 16:04:32 -0500 (CDT)
From: Rob Browning <rlb@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
In-Reply-To: <m2y1ujlusp.fsf@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN>
 <83tu5a3cdw.fsf@HIDDEN> <87pmfxhfoz.fsf@HIDDEN>
 <87mtb1hfl6.fsf@HIDDEN> <m2y1ujlusp.fsf@HIDDEN>
Date: Sat, 17 Sep 2022 16:04:31 -0500
Message-ID: <87tu55k90g.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: 57789 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> Looking at Rob's backtrace,=20
>
> #0  mark_object (arg=3D<optimized out>) at alloc.c:6809
> #1  0x000002aa001a8ee6 in mark_objects (n=3D<optimized out>, obj=3D0x2aa0=
0ac54a8) at alloc.c:6607
> #2  mark_vectorlike (header=3D0x2aa00ac54a0) at alloc.c:6382
> #3  0x000002aa001a8ee6 in mark_objects (n=3D<optimized out>, obj=3D0x2aa0=
07f4ca8) at alloc.c:6607
> #4  mark_vectorlike (header=3D0x2aa007f4ca0) at alloc.c:6382
> #5  0x000002aa001a8ee6 in mark_objects (n=3D<optimized out>, obj=3D0x2aa0=
07c3b10) at alloc.c:6607
> #6  mark_vectorlike (header=3D0x2aa007c3b08) at alloc.c:6382
> #7  0x000002aa001a7c3e in visit_static_gc_roots (visitor=3D...) at alloc.=
c:5926
>
> and seeing frame#7, would it be a way forward to determine which
> staticpro (I assume it is a staticpro) that is?  Maybe that can give a
> clue which one can then use together with a bisect, perhaps?

Not completely sure I followed, but moving up to that frame and printing
visitor didn't work: "optimized out".

--=20
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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 17 Sep 2022 21:00:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 17 17:00:21 2022
Received: from localhost ([127.0.0.1]:47258 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZevF-0004FX-4y
	for submit <at> debbugs.gnu.org; Sat, 17 Sep 2022 17:00:21 -0400
Received: from defaultvalue.org ([45.33.119.55]:59682 ident=postfix)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rlb@HIDDEN>) id 1oZevC-0004FJ-9Q
 for 57789 <at> debbugs.gnu.org; Sat, 17 Sep 2022 17:00:20 -0400
Received: from trouble.defaultvalue.org (localhost [127.0.0.1])
 (Authenticated sender: rlb@HIDDEN)
 by defaultvalue.org (Postfix) with ESMTPSA id 819AE2015F;
 Sat, 17 Sep 2022 16:00:17 -0500 (CDT)
Received: by trouble.defaultvalue.org (Postfix, from userid 1000)
 id 1D36414E081; Sat, 17 Sep 2022 16:00:17 -0500 (CDT)
From: Rob Browning <rlb@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, Andrea Corallo <akrl@HIDDEN>, Paul Eggert
 <eggert@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
In-Reply-To: <83wna5yuws.fsf@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN>
 <83tu5a3cdw.fsf@HIDDEN> <87pmfxhfoz.fsf@HIDDEN>
 <83wna5yuws.fsf@HIDDEN>
Date: Sat, 17 Sep 2022 16:00:17 -0500
Message-ID: <87wna1k97i.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: 57789 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Eli Zaretskii <eliz@HIDDEN> writes:

> Rob Browning <rlb@HIDDEN> writes:

> Does the build of the same code with the same options sans
> "--with-native-compilation" succeed, or does it also crash with
> similar symptoms?

Works fine.

> You can source it manually from the GDB prompt, when the segfault
> happens, and then invoke xbacktrace manually, can't you?

Yep.

  Breakpoint 1 at 0x2aa0004ef30: file emacs.c, line 400.
  Breakpoint 2 at 0x2aa0010f168: file xterm.c, line 10291.
  (gdb) xbacktrace
  "Automatic GC" (0x0)
  "internal-macroexpand-for-load" (0xffffa6a8)
  "eval-buffer" (0xffffaa28)
  "let" (0xffffac10)
  "let" (0xffffae28)
  "unwind-protect" (0xffffaff0)
  "let" (0xffffb1f8)
  "if" (0xffffb3c8)
  "load-with-code-conversion" (0xffffb650)
  "time-since" (0xffffbba8)
  "comp--native-compile" (0xffffbd38)
  "batch-native-compile" (0xffffbef0)
  "batch-byte+native-compile" (0xffffc080)
  "funcall" (0xffffc078)
  "if" (0xffffc268)
  "cond" (0xffffc438)
  "let*" (0xffffc618)
  "while" (0xffffc7e8)
  "let*" (0xffffc9c8)
  "progn" (0xffffcb98)
  "if" (0xffffccc0)
  "let" (0xffffceb8)
  "let" (0xffffd0b0)
  "command-line-1" (0xffffd280)
  "let" (0xffffd570)
  "command-line" (0xffffd740)
  "unwind-protect" (0xffffd9f0)
  "let" (0xffffdbe8)
  "if" (0xffffddb8)
  "normal-top-level" (0xffffdf88)

> Too bad, it means we have a heisenbug on our hands, which will make it
> even harder to debug (as if debugging crashes in GC were not hard
> enough already).
>
> What happens if you modify this variable:
>
>   (defcustom native-comp-debug (if (eq 'windows-nt system-type) 1 0)
>
> to have the value 1 or even zero, and then rebuild from scratch? does
> the build succeed then?

No, appears to crash in the same way.

> Yes, running the full test suite would be the logical next step.

Oh, I had run it, I just meant that I'd likely want to double-check via
testing in a loop to try to see if it might be an intermittent failure.

Thanks
-- 
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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 16 Sep 2022 08:43:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 16 04:43:41 2022
Received: from localhost ([127.0.0.1]:41607 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZ6wn-0005O5-KE
	for submit <at> debbugs.gnu.org; Fri, 16 Sep 2022 04:43:41 -0400
Received: from mx.sdf.org ([205.166.94.24]:58407)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <akrl@HIDDEN>) id 1oZ6wl-0005Nx-9R
 for 57789 <at> debbugs.gnu.org; Fri, 16 Sep 2022 04:43:39 -0400
Received: from ma.sdf.org (ma.sdf.org [205.166.94.33])
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 28G8hbp5000340
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO);
 Fri, 16 Sep 2022 08:43:38 GMT
From: Andrea Corallo <akrl@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
In-Reply-To: <020828f9-c137-e584-89a5-f1ad0c38df9c@HIDDEN> (Paul Eggert's
 message of "Thu, 15 Sep 2022 09:51:54 -0500")
References: <87h71aix5r.fsf@HIDDEN> <83tu5a3cdw.fsf@HIDDEN>
 <87pmfxhfoz.fsf@HIDDEN> <83wna5yuws.fsf@HIDDEN>
 <020828f9-c137-e584-89a5-f1ad0c38df9c@HIDDEN>
Date: Fri, 16 Sep 2022 08:43:37 +0000
Message-ID: <xjfsfkrbtfq.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: 57789 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>,
 Rob Browning <rlb@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Paul Eggert <eggert@HIDDEN> writes:

> On 9/15/22 02:10, Eli Zaretskii wrote:
>>> Of course that's not remotely conclusive, but if all of the C code
>>> wasn't written with strict-aliasing in mind, then I wondered if it might
>>> make sense to consider adding -fno-strict-aliasing as a default option.
>> I don't know enough about this.  Perhaps Andrea or Paul could comment.
>>
> Throwing -fno-strict-aliasing in the mix is a bit like throwing -O1
> into the mix. I'm not surprised it would cause a Heisenbug to vanish;
> it doesn't mean strict aliasing is the problem.

Hi Paul,

totally agree with you.  The fact that even -g has an impact here
clearly shows that initial conditions are not necessary directly
connected with the final symptom we observe.

Best Regards

  Andrea




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 16 Sep 2022 08:39:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 16 04:39:51 2022
Received: from localhost ([127.0.0.1]:41602 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZ6t4-0005I5-VD
	for submit <at> debbugs.gnu.org; Fri, 16 Sep 2022 04:39:51 -0400
Received: from mx.sdf.org ([205.166.94.24]:58799)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <akrl@HIDDEN>) id 1oZ6t2-0005Hv-85
 for 57789 <at> debbugs.gnu.org; Fri, 16 Sep 2022 04:39:49 -0400
Received: from ma.sdf.org (ma.sdf.org [205.166.94.33])
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 28G8dZX5027378
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO);
 Fri, 16 Sep 2022 08:39:36 GMT
From: Andrea Corallo <akrl@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
In-Reply-To: <83wna5yuws.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 15 Sep
 2022 10:10:59 +0300")
References: <87h71aix5r.fsf@HIDDEN> <83tu5a3cdw.fsf@HIDDEN>
 <87pmfxhfoz.fsf@HIDDEN> <83wna5yuws.fsf@HIDDEN>
Date: Fri, 16 Sep 2022 08:39:35 +0000
Message-ID: <xjfzgezbtmg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: 57789 <at> debbugs.gnu.org, Paul Eggert <eggert@HIDDEN>,
 Rob Browning <rlb@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Rob Browning <rlb@HIDDEN>
>> Cc: 57789 <at> debbugs.gnu.org
>> Date: Wed, 14 Sep 2022 15:19:24 -0500
>> 
>> Eli Zaretskii <eliz@HIDDEN> writes:
>> 
>> > Please run the crashing command under GDB, and when it segfaults,
>> > produce the C-level and Lisp-level backtrace, and post them here.
>> 
>> Starting from scratch with the emacs-28.1 commit I can reproduce the
>> failure when building via
>> 
>>   ./configure --prefix=/home/rlb/opt/emacs-tmp --with-native-compilation
>> 
>> It crashes with the same segfault repeatably, i.e. if you run make
>> again, it crashes again on the previously mentioned "... -l comp -f
>> batch-byte+native-compile international/titdic-cnv.el" invocation.  That
>> crash output is attached below.
>> 
>> After adjusting the Makefile.in invocation so I could run it with gdb in
>> exactly the same environment once it's failing on that command, I
>> captured the backtrace and included it below.
>
> Thanks.  The backtrace indicates that the crash is in GC.  This
> probably means we have some fundamental problem on that architecture.
> Andrea, any advice for how to investigate?

Mmmh one cheap way to maybe gather more info is to have a run under
valgrind.

Other than that I typically start debugging with GDB and possibly
rr. Like what is (or was) the object the GC is crashing on?  Why?
What's the last piece of code that touched it? Why?  IIUC here we have
no debug symbols so this makes it very difficult.

BTW the fact that -g has an impact on the crash is very odd

  Andrea





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 16 Sep 2022 06:04:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 16 02:04:17 2022
Received: from localhost ([127.0.0.1]:41271 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZ4SX-0001At-I6
	for submit <at> debbugs.gnu.org; Fri, 16 Sep 2022 02:04:17 -0400
Received: from mail-ej1-f42.google.com ([209.85.218.42]:45708)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oZ4ST-0001Ac-Su
 for 57789 <at> debbugs.gnu.org; Fri, 16 Sep 2022 02:04:16 -0400
Received: by mail-ej1-f42.google.com with SMTP id dv25so46983978ejb.12
 for <57789 <at> debbugs.gnu.org>; Thu, 15 Sep 2022 23:04:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date;
 bh=700qDJZwJ4Ifn9qLzLoCOkpVJS1deirLm4c7cENYKog=;
 b=USkx/dPTJA3b3ur18RO/Ptkmzl/U2HH5x8y9flBjBuXpjYneOgs038kDVegiO0BJN+
 bvXpvakQwGj5JvlUikfH7IIoyni3OFDBZJddKw+y5Gk8A6r51sxTtMcznS7v8lQUB+Ru
 3FhZqqyvHWdvNAwwJmrvCTouNAN6ZJzpF5iPQmfHytaO/3/SwKUGdFCd0ve7o2EGuPYU
 8wgsu497faa/UPT2QcVtSLS/J9qfy1Qx0sl3wfz/w46N+KQUPmElv5onLrN8pljtRr65
 isSil8N73KCofUhCxLb/fTT9X94Ss5GdnpfIzCq+dYBbHbntUzr/XLfZuXQxLgDtEgNA
 73jw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date;
 bh=700qDJZwJ4Ifn9qLzLoCOkpVJS1deirLm4c7cENYKog=;
 b=AFhPjoML7mROSmDU9enwwDMFAoB+0upEgm204fVzXzWkNP4obAooSt67XeASonUfkd
 jbGWsw5dglS49bJ7kt3l2m+HdGbUoO0nmMcWVLqicd1CCUIs/09TEm0sN2kHDt45FvFs
 tLc0dHLyxbKxMyKy33KI/MU1KqJhfAshqNmqH3TDn5s7WaM/d4lz8/tEINMLwdfY6X09
 t9j4297z1Pf0wu18qZrzfqZZc0nhOB0frzCswZdNpJ6MDCNC7MF8D+IZ1piAsln+Rvin
 Ox4aCaqTvhAdOB56YR/dS10etiBLwYsoibTDWaI2+i2z5A1KTTCeWngfHF5mc06Baj5P
 Wv3Q==
X-Gm-Message-State: ACrzQf0BIlX6AqzH/IZSYs7atPTxu3sJGMQCW+9XZPAQ4giPtjys/48B
 T+BIApkKg845OSL44kdD8m6vRwtCZ2swXg==
X-Google-Smtp-Source: AMsMyM4+Mxuv+zLLaBd5uckqw3K3Sv12ZzFlPFFpKW2C3xAO5UVNfPPU61lqof4C+Ym+aLzh2gCPiQ==
X-Received: by 2002:a17:907:7e8c:b0:77d:fecf:c24a with SMTP id
 qb12-20020a1709077e8c00b0077dfecfc24amr2477397ejc.134.1663308247573; 
 Thu, 15 Sep 2022 23:04:07 -0700 (PDT)
Received: from Mini.fritz.box (pd9e36af3.dip0.t-ipconnect.de.
 [217.227.106.243]) by smtp.gmail.com with ESMTPSA id
 2-20020a170906210200b00730979f568fsm10020832ejt.150.2022.09.15.23.04.06
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 15 Sep 2022 23:04:07 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Rob Browning <rlb@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
In-Reply-To: <87mtb1hfl6.fsf@HIDDEN> (Rob Browning's message
 of "Wed, 14 Sep 2022 15:21:41 -0500")
References: <87h71aix5r.fsf@HIDDEN> <83tu5a3cdw.fsf@HIDDEN>
 <87pmfxhfoz.fsf@HIDDEN>
 <87mtb1hfl6.fsf@HIDDEN>
Date: Fri, 16 Sep 2022 08:04:06 +0200
Message-ID: <m2y1ujlusp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: 57789 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Rob Browning <rlb@HIDDEN> writes:

> Rob Browning <rlb@HIDDEN> writes:
>
>> Starting from scratch with the emacs-28.1 commit I can reproduce the
>> failure when building via
>
> Oops, meant the emacs-28.2 commit for all of that testing.

Looking at Rob's backtrace, 

#0  mark_object (arg=<optimized out>) at alloc.c:6809
#1  0x000002aa001a8ee6 in mark_objects (n=<optimized out>, obj=0x2aa00ac54a8) at alloc.c:6607
#2  mark_vectorlike (header=0x2aa00ac54a0) at alloc.c:6382
#3  0x000002aa001a8ee6 in mark_objects (n=<optimized out>, obj=0x2aa007f4ca8) at alloc.c:6607
#4  mark_vectorlike (header=0x2aa007f4ca0) at alloc.c:6382
#5  0x000002aa001a8ee6 in mark_objects (n=<optimized out>, obj=0x2aa007c3b10) at alloc.c:6607
#6  mark_vectorlike (header=0x2aa007c3b08) at alloc.c:6382
#7  0x000002aa001a7c3e in visit_static_gc_roots (visitor=...) at alloc.c:5926

and seeing frame#7, would it be a way forward to determine which
staticpro (I assume it is a staticpro) that is?  Maybe that can give a
clue which one can then use together with a bisect, perhaps?

WDYT?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 15 Sep 2022 16:26:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 15 12:26:57 2022
Received: from localhost ([127.0.0.1]:59012 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oYrhY-0006pE-TU
	for submit <at> debbugs.gnu.org; Thu, 15 Sep 2022 12:26:57 -0400
Received: from defaultvalue.org ([45.33.119.55]:59680 ident=postfix)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rlb@HIDDEN>) id 1oYrhV-0006p3-8W
 for 57789 <at> debbugs.gnu.org; Thu, 15 Sep 2022 12:26:55 -0400
Received: from trouble.defaultvalue.org (localhost [127.0.0.1])
 (Authenticated sender: rlb@HIDDEN)
 by defaultvalue.org (Postfix) with ESMTPSA id 5B0A3203B5;
 Thu, 15 Sep 2022 11:26:52 -0500 (CDT)
Received: by trouble.defaultvalue.org (Postfix, from userid 1000)
 id E723114E081; Thu, 15 Sep 2022 11:26:51 -0500 (CDT)
From: Rob Browning <rlb@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>, Andrea
 Corallo <akrl@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
In-Reply-To: <020828f9-c137-e584-89a5-f1ad0c38df9c@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN>
 <83tu5a3cdw.fsf@HIDDEN> <87pmfxhfoz.fsf@HIDDEN>
 <83wna5yuws.fsf@HIDDEN>
 <020828f9-c137-e584-89a5-f1ad0c38df9c@HIDDEN>
Date: Thu, 15 Sep 2022 11:26:51 -0500
Message-ID: <87h718had0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: 57789 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Paul Eggert <eggert@HIDDEN> writes:

> Throwing -fno-strict-aliasing in the mix is a bit like throwing -O1 into 
> the mix. I'm not surprised it would cause a Heisenbug to vanish; it 
> doesn't mean strict aliasing is the problem.

Agreed.

Thanks
-- 
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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 15 Sep 2022 14:52:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 15 10:52:06 2022
Received: from localhost ([127.0.0.1]:58861 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oYqDm-00045d-CS
	for submit <at> debbugs.gnu.org; Thu, 15 Sep 2022 10:52:06 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:40048)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1oYqDh-00043U-DD
 for 57789 <at> debbugs.gnu.org; Thu, 15 Sep 2022 10:52:04 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id EA2ED160073;
 Thu, 15 Sep 2022 07:51:55 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id SiRBPfZ4WIn0; Thu, 15 Sep 2022 07:51:55 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 309EC160075;
 Thu, 15 Sep 2022 07:51:55 -0700 (PDT)
DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.cs.ucla.edu 309EC160075
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu;
 s=78364E5A-2AF3-11ED-87FA-8298ECA2D365; t=1663253515;
 bh=gmOFL9kkkWKenkTmRuAimUzGvL3ax6vjCw6yfoMTL1Y=;
 h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type:
 Content-Transfer-Encoding;
 b=NC614LSIv/C9KOL1rB31JPLlYPO9+CbsCuWSQOmlWs4s48DMlRCQhEo6jmY95xKC+
 HTVxsB/LHMOipGyfiwhZktAH9ElsTneqsCvGFcUtRET+jK1X34AdikHq6ibbMIymwO
 WO7uf9L4aMUBwC8Ep3gpMk3HBRt4hDsRfHC7Y8l8=
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id DYT8xVTHUHAo; Thu, 15 Sep 2022 07:51:55 -0700 (PDT)
Received: from [192.168.0.205] (ip72-206-2-24.fv.ks.cox.net [72.206.2.24])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id BDE68160073;
 Thu, 15 Sep 2022 07:51:54 -0700 (PDT)
Message-ID: <020828f9-c137-e584-89a5-f1ad0c38df9c@HIDDEN>
Date: Thu, 15 Sep 2022 09:51:54 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
 Thunderbird/91.11.0
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation crashes
 on s390x
Content-Language: en-US
To: Eli Zaretskii <eliz@HIDDEN>, Rob Browning <rlb@HIDDEN>,
 Andrea Corallo <akrl@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN> <83tu5a3cdw.fsf@HIDDEN>
 <87pmfxhfoz.fsf@HIDDEN> <83wna5yuws.fsf@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
In-Reply-To: <83wna5yuws.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57789
Cc: 57789 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

On 9/15/22 02:10, Eli Zaretskii wrote:
>> Of course that's not remotely conclusive, but if all of the C code
>> wasn't written with strict-aliasing in mind, then I wondered if it might
>> make sense to consider adding -fno-strict-aliasing as a default option.
> I don't know enough about this.  Perhaps Andrea or Paul could comment.
>
Throwing -fno-strict-aliasing in the mix is a bit like throwing -O1 into 
the mix. I'm not surprised it would cause a Heisenbug to vanish; it 
doesn't mean strict aliasing is the problem.

Emacs should work with strict aliasing. At least, that's true in the 
default build. I suppose it could be possible there's a strict aliasing 
bug in the native compiler - I'm not that familiar with that code.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 15 Sep 2022 07:11:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 15 03:11:20 2022
Received: from localhost ([127.0.0.1]:56857 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oYj1r-0001S6-ET
	for submit <at> debbugs.gnu.org; Thu, 15 Sep 2022 03:11:19 -0400
Received: from eggs.gnu.org ([209.51.188.92]:39304)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1oYj1o-0001Rp-Kb
 for 57789 <at> debbugs.gnu.org; Thu, 15 Sep 2022 03:11:18 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:37310)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oYj1i-0001sG-Bx; Thu, 15 Sep 2022 03:11:10 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=et/s5qPu1g+PcpPDTSg+zOkk5vJVkQkUT/i5mTSr5FU=; b=SW5L6nzEkRSc
 UUrgY0wpTGDSPZWcJcHjQZMsWVSdSejdUyORC50se1+HBaQo4egf28sNbGVxIH/vnTJjsdiCIGU5O
 q10NVkWxP58Ub9TO0AxkhFU25OrRkDimEtPmDOHO9xaknlpO6QPHK1QRLBa7xrcCegfot7I4u0VYs
 F1ukXrIPekIsuVf4exEWE7+KxdKx/9VKh4Logg+1T9j7l7rSItWat3dqGMT/iOL+bm+sAKWhtsVgU
 j7hYO9BX2SxbcDPJdcz5lBw7mfOIxKtYOFGC9LomOBMHvZBvbVfOvpKlmP+46t3KUnoc3pfh24qC5
 A+JFKluf4Ab+1R7KWk8M+A==;
Received: from [87.69.77.57] (port=2798 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oYj1h-0000M8-2B; Thu, 15 Sep 2022 03:11:09 -0400
Date: Thu, 15 Sep 2022 10:10:59 +0300
Message-Id: <83wna5yuws.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Rob Browning <rlb@HIDDEN>, Andrea Corallo <akrl@HIDDEN>,
 Paul Eggert <eggert@HIDDEN>
In-Reply-To: <87pmfxhfoz.fsf@HIDDEN> (message from Rob
 Browning on Wed, 14 Sep 2022 15:19:24 -0500)
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
References: <87h71aix5r.fsf@HIDDEN> <83tu5a3cdw.fsf@HIDDEN>
 <87pmfxhfoz.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57789
Cc: 57789 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Rob Browning <rlb@HIDDEN>
> Cc: 57789 <at> debbugs.gnu.org
> Date: Wed, 14 Sep 2022 15:19:24 -0500
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > Please run the crashing command under GDB, and when it segfaults,
> > produce the C-level and Lisp-level backtrace, and post them here.
> 
> Starting from scratch with the emacs-28.1 commit I can reproduce the
> failure when building via
> 
>   ./configure --prefix=/home/rlb/opt/emacs-tmp --with-native-compilation
> 
> It crashes with the same segfault repeatably, i.e. if you run make
> again, it crashes again on the previously mentioned "... -l comp -f
> batch-byte+native-compile international/titdic-cnv.el" invocation.  That
> crash output is attached below.
> 
> After adjusting the Makefile.in invocation so I could run it with gdb in
> exactly the same environment once it's failing on that command, I
> captured the backtrace and included it below.

Thanks.  The backtrace indicates that the crash is in GC.  This
probably means we have some fundamental problem on that architecture.
Andrea, any advice for how to investigate?

Does the build of the same code with the same options sans
"--with-native-compilation" succeed, or does it also crash with
similar symptoms?  If the build without native-compilation succeeds,
my first question would be how mature and stable is libgccjit on that
platform?  Perhaps take this up with the GCC's libgccjit developers.

> With respect to the Lisp-level backtrace, I imagined you probably meant
> an xbacktrace?  If so (and assuming I'm guessing right about how I
> should do that), I haven't figured out how to arrange sourcing the
> src/.gdbinit from the src/Makefile.in command.

You can source it manually from the GDB prompt, when the segfault
happens, and then invoke xbacktrace manually, can't you?

> It looked like it might be because there were no debug symbols, so I
> tried adding a CFLAGS=-g3 to the end of the ./configure, but that caused
> the crash to disappear entirely.

Too bad, it means we have a heisenbug on our hands, which will make it
even harder to debug (as if debugging crashes in GC were not hard
enough already).

What happens if you modify this variable:

  (defcustom native-comp-debug (if (eq 'windows-nt system-type) 1 0)

to have the value 1 or even zero, and then rebuild from scratch? does
the build succeed then?

> Finally (and this was just a random guess based on previous experiences,
> particularly with programs like guile that play (normal, traditional)
> tricks with pointers/coercions/etc.) I noticed that emacs doesn't
> specify -fno-strict-aliasing, and unless all the C code has been written
> with that in mind, I assume that might open a window allowing the
> optimizer to introduce undesirable changes.  So I added a
> CFLAGS=-fno-strict-aliasing to the end of the ./configure command, and
> then the build and tests worked fine (twice in a row):
> 
>   ./configure --prefix=/home/rlb/opt/emacs-tmp --with-native-compilation \
>     CFLAGS=-fno-strict-aliasing
> 
> Of course that's not remotely conclusive, but if all of the C code
> wasn't written with strict-aliasing in mind, then I wondered if it might
> make sense to consider adding -fno-strict-aliasing as a default option.

I don't know enough about this.  Perhaps Andrea or Paul could comment.

> Also, even if that ends up being desirable, I'm not sure it'll be
> sufficient.  That is, I suspect I might want to run the full build/check
> with -fno-strict-aliasing in a loop for a bit to make sure the clean
> build/check is reliable, since I think I may have seen some test crashes
> (not the build crash) on one earlier run with that option, but I'm not
> sure that was a clean attempt.

Yes, running the full test suite would be the logical next step.

> Program received signal SIGSEGV, Segmentation fault.
> mark_object (arg=<optimized out>) at alloc.c:6809
> 6809            if (symbol_marked_p (ptr))
> (gdb) backtrace
> #0  mark_object (arg=<optimized out>) at alloc.c:6809

Any idea what cause SIGSEGV here?  Was 'ptr' an invalid pointer for
some reason, and if so, what exactly makes it invalid?

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 14 Sep 2022 20:21:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 14 16:21:44 2022
Received: from localhost ([127.0.0.1]:56343 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oYYtE-0007Vi-5t
	for submit <at> debbugs.gnu.org; Wed, 14 Sep 2022 16:21:44 -0400
Received: from defaultvalue.org ([45.33.119.55]:59678 ident=postfix)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rlb@HIDDEN>) id 1oYYtC-0007Vb-7G
 for 57789 <at> debbugs.gnu.org; Wed, 14 Sep 2022 16:21:42 -0400
Received: from trouble.defaultvalue.org (localhost [127.0.0.1])
 (Authenticated sender: rlb@HIDDEN)
 by defaultvalue.org (Postfix) with ESMTPSA id C045520348;
 Wed, 14 Sep 2022 15:21:41 -0500 (CDT)
Received: by trouble.defaultvalue.org (Postfix, from userid 1000)
 id 42FF114E081; Wed, 14 Sep 2022 15:21:41 -0500 (CDT)
From: Rob Browning <rlb@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
In-Reply-To: <87pmfxhfoz.fsf@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN>
 <83tu5a3cdw.fsf@HIDDEN> <87pmfxhfoz.fsf@HIDDEN>
Date: Wed, 14 Sep 2022 15:21:41 -0500
Message-ID: <87mtb1hfl6.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: 57789 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Rob Browning <rlb@HIDDEN> writes:

> Starting from scratch with the emacs-28.1 commit I can reproduce the
> failure when building via

Oops, meant the emacs-28.2 commit for all of that testing.

-- 
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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 14 Sep 2022 20:19:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 14 16:19:31 2022
Received: from localhost ([127.0.0.1]:56339 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oYYr3-0007Rd-VZ
	for submit <at> debbugs.gnu.org; Wed, 14 Sep 2022 16:19:30 -0400
Received: from defaultvalue.org ([45.33.119.55]:59676 ident=postfix)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rlb@HIDDEN>) id 1oYYqz-0007RR-Dx
 for 57789 <at> debbugs.gnu.org; Wed, 14 Sep 2022 16:19:28 -0400
Received: from trouble.defaultvalue.org (localhost [127.0.0.1])
 (Authenticated sender: rlb@HIDDEN)
 by defaultvalue.org (Postfix) with ESMTPSA id A003020348;
 Wed, 14 Sep 2022 15:19:24 -0500 (CDT)
Received: by trouble.defaultvalue.org (Postfix, from userid 1000)
 id 34E1C14E081; Wed, 14 Sep 2022 15:19:24 -0500 (CDT)
From: Rob Browning <rlb@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
In-Reply-To: <83tu5a3cdw.fsf@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN> <83tu5a3cdw.fsf@HIDDEN>
Date: Wed, 14 Sep 2022 15:19:24 -0500
Message-ID: <87pmfxhfoz.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: 57789 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain

Eli Zaretskii <eliz@HIDDEN> writes:

> Please run the crashing command under GDB, and when it segfaults,
> produce the C-level and Lisp-level backtrace, and post them here.

Starting from scratch with the emacs-28.1 commit I can reproduce the
failure when building via

  ./configure --prefix=/home/rlb/opt/emacs-tmp --with-native-compilation

It crashes with the same segfault repeatably, i.e. if you run make
again, it crashes again on the previously mentioned "... -l comp -f
batch-byte+native-compile international/titdic-cnv.el" invocation.  That
crash output is attached below.

After adjusting the Makefile.in invocation so I could run it with gdb in
exactly the same environment once it's failing on that command, I
captured the backtrace and included it below.

With respect to the Lisp-level backtrace, I imagined you probably meant
an xbacktrace?  If so (and assuming I'm guessing right about how I
should do that), I haven't figured out how to arrange sourcing the
src/.gdbinit from the src/Makefile.in command.  I'm likely doing
something wrong, but it doesn't seem to want to load the file.

It looked like it might be because there were no debug symbols, so I
tried adding a CFLAGS=-g3 to the end of the ./configure, but that caused
the crash to disappear entirely.

Finally (and this was just a random guess based on previous experiences,
particularly with programs like guile that play (normal, traditional)
tricks with pointers/coercions/etc.) I noticed that emacs doesn't
specify -fno-strict-aliasing, and unless all the C code has been written
with that in mind, I assume that might open a window allowing the
optimizer to introduce undesirable changes.  So I added a
CFLAGS=-fno-strict-aliasing to the end of the ./configure command, and
then the build and tests worked fine (twice in a row):

  ./configure --prefix=/home/rlb/opt/emacs-tmp --with-native-compilation \
    CFLAGS=-fno-strict-aliasing

Of course that's not remotely conclusive, but if all of the C code
wasn't written with strict-aliasing in mind, then I wondered if it might
make sense to consider adding -fno-strict-aliasing as a default option.

Also, even if that ends up being desirable, I'm not sure it'll be
sufficient.  That is, I suspect I might want to run the full build/check
with -fno-strict-aliasing in a loop for a bit to make sure the clean
build/check is reliable, since I think I may have seen some test crashes
(not the build crash) on one earlier run with that option, but I'm not
sure that was a clean attempt.

The make crash:


--=-=-=
Content-Type: text/plain
Content-Disposition: inline; filename=emacs-s390x-crash
Content-Description: emacs-s390x-crash

make[2]: Entering directory '/home/rlb/emacs/lisp'
EMACSLOADPATH= '../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)'  \
-l comp -f batch-byte+native-compile international/titdic-cnv.el
Fatal error 11: Segmentation fault
Backtrace:
../src/bootstrap-emacs(+0x15deb6)[0x2aa293ddeb6]
../src/bootstrap-emacs(+0x4efc4)[0x2aa292cefc4]
../src/bootstrap-emacs(+0x4f1fe)[0x2aa292cf1fe]
../src/bootstrap-emacs(+0x15c240)[0x2aa293dc240]
../src/bootstrap-emacs(+0x15c2d2)[0x2aa293dc2d2]
../src/bootstrap-emacs(+0x6a47d8)[0x2aa299247d8]
../src/bootstrap-emacs(+0x1a7fa8)[0x2aa29427fa8]
../src/bootstrap-emacs(+0x1a8ee6)[0x2aa29428ee6]
../src/bootstrap-emacs(+0x1a8ee6)[0x2aa29428ee6]
../src/bootstrap-emacs(+0x1a8ee6)[0x2aa29428ee6]
../src/bootstrap-emacs(+0x1a7c3e)[0x2aa29427c3e]
../src/bootstrap-emacs(+0x1a9094)[0x2aa29429094]
../src/bootstrap-emacs(Ffuncall+0x2de)[0x2aa2944a2ee]
../src/bootstrap-emacs(+0x1ca42c)[0x2aa2944a42c]
../src/bootstrap-emacs(+0x1f0c72)[0x2aa29470c72]
../src/bootstrap-emacs(+0x1f7fb0)[0x2aa29477fb0]
../src/bootstrap-emacs(+0x1f8474)[0x2aa29478474]
../src/bootstrap-emacs(eval_sub+0x5e4)[0x2aa2944cdfc]
../src/bootstrap-emacs(+0x1ce488)[0x2aa2944e488]
../src/bootstrap-emacs(eval_sub+0x532)[0x2aa2944cd4a]
../src/bootstrap-emacs(+0x1ce488)[0x2aa2944e488]
../src/bootstrap-emacs(eval_sub+0x532)[0x2aa2944cd4a]
../src/bootstrap-emacs(+0x1ce8cc)[0x2aa2944e8cc]
../src/bootstrap-emacs(eval_sub+0x532)[0x2aa2944cd4a]
../src/bootstrap-emacs(+0x1ce488)[0x2aa2944e488]
../src/bootstrap-emacs(eval_sub+0x532)[0x2aa2944cd4a]
../src/bootstrap-emacs(+0x1cd824)[0x2aa2944d824]
../src/bootstrap-emacs(eval_sub+0x532)[0x2aa2944cd4a]
../src/bootstrap-emacs(+0x1cdc2e)[0x2aa2944dc2e]
../src/bootstrap-emacs(Ffuncall+0x1f2)[0x2aa2944a202]
../src/bootstrap-emacs(+0x1ca4b0)[0x2aa2944a4b0]
../src/bootstrap-emacs(+0x1f90e4)[0x2aa294790e4]
../src/bootstrap-emacs(+0x1f9462)[0x2aa29479462]
../src/bootstrap-emacs(+0x1c9ef0)[0x2aa29449ef0]
../src/bootstrap-emacs(Ffuncall+0x182)[0x2aa2944a192]
/home/rlb/emacs/native-lisp/28.2-87d45215/comp-7672a6ed-ac6bcf4e.eln(F636f6d702d2d6e61746976652d636f6d70696c65_comp__native_compile_0+0x804)[0x3ff91d6b0d4]
../src/bootstrap-emacs(Ffuncall+0x23e)[0x2aa2944a24e]
/home/rlb/emacs/native-lisp/28.2-87d45215/comp-7672a6ed-ac6bcf4e.eln(F62617463682d6e61746976652d636f6d70696c65_batch_native_compile_0+0x1d2)[0x3ff91d6c592]
../src/bootstrap-emacs(Ffuncall+0x23e)[0x2aa2944a24e]
/home/rlb/emacs/native-lisp/28.2-87d45215/comp-7672a6ed-ac6bcf4e.eln(F62617463682d627974652b6e61746976652d636f6d70696c65_batch_bytenative_compile_0+0x108)[0x3ff91d6c728]
../src/bootstrap-emacs(Ffuncall+0x23e)[0x2aa2944a24e]
...
make[2]: *** [Makefile:321: international/titdic-cnv.elc] Segmentation fault
make[2]: Leaving directory '/home/rlb/emacs/lisp'
make[1]: *** [Makefile:845: ../lisp/loaddefs.el] Error 2
make[1]: Leaving directory '/home/rlb/emacs/src'
make: *** [Makefile:449: src] Error 2

--=-=-=
Content-Type: text/plain


The gdb backtrace:


--=-=-=
Content-Type: text/plain
Content-Disposition: inline; filename=emacs-s390x-backtrace
Content-Description: emacs-s390x-backtrace

Program received signal SIGSEGV, Segmentation fault.
mark_object (arg=<optimized out>) at alloc.c:6809
6809            if (symbol_marked_p (ptr))
(gdb) backtrace
#0  mark_object (arg=<optimized out>) at alloc.c:6809
#1  0x000002aa001a8ee6 in mark_objects (n=<optimized out>, obj=0x2aa00ac54a8) at alloc.c:6607
#2  mark_vectorlike (header=0x2aa00ac54a0) at alloc.c:6382
#3  0x000002aa001a8ee6 in mark_objects (n=<optimized out>, obj=0x2aa007f4ca8) at alloc.c:6607
#4  mark_vectorlike (header=0x2aa007f4ca0) at alloc.c:6382
#5  0x000002aa001a8ee6 in mark_objects (n=<optimized out>, obj=0x2aa007c3b10) at alloc.c:6607
#6  mark_vectorlike (header=0x2aa007c3b08) at alloc.c:6382
#7  0x000002aa001a7c3e in visit_static_gc_roots (visitor=...) at alloc.c:5926
#8  0x000002aa001a9094 in garbage_collect () at alloc.c:6132
#9  0x000002aa001a9d0c in maybe_garbage_collect () at alloc.c:6045
#10 0x000002aa001ca2ee in maybe_gc () at lisp.h:5142
#11 Ffuncall (nargs=nargs@entry=3, args=args@entry=0x3ffffffa6a0) at eval.c:3007
#12 0x000002aa001ca42c in call2 (fn=fn@entry=0x155f3675830, arg1=arg1@entry=0x2aa00a75e43, arg2=arg2@entry=0x0) at eval.c:2890
#13 0x000002aa001f0c72 in readevalloop_eager_expand_eval (val=val@entry=0x2aa00a75e43, macroexpand=macroexpand@entry=0x155f3675830) at lread.c:2133
#14 0x000002aa001f7fb0 in readevalloop (readcharfun=readcharfun@entry=0x2aa00aa27b5, infile0=<optimized out>, 
    infile0@entry=0x0, sourcename=sourcename@entry=0x2aa00a7fff4, printflag=printflag@entry=false, unibyte=unibyte@entry=0x0, readfun=0x0, start=0x0, end=<optimized out>) at lread.c:2324
#15 0x000002aa001f8474 in Feval_buffer (buffer=<optimized out>, printflag=0x0, filename=0x2aa00a7fff4, unibyte=0x0, do_allow_print=<optimized out>) at lread.c:2397
#16 0x000002aa001ccdfc in eval_sub (form=<optimized out>) at eval.c:2512
#17 0x000002aa001ce488 in Fprogn (body=0x0) at eval.c:465
#18 Flet (args=0x3b) at eval.c:1051
#19 0x000002aa001ccd4a in eval_sub (form=<optimized out>) at eval.c:2451
#20 0x000002aa001ce488 in Fprogn (body=0x0) at eval.c:465
#21 Flet (args=0x36) at eval.c:1051
#22 0x000002aa001ccd4a in eval_sub (form=<optimized out>) at eval.c:2451
#23 0x000002aa001ce8cc in Funwind_protect (args=0x3fff3cf7f0b) at lisp.h:1420
#24 0x000002aa001ccd4a in eval_sub (form=<optimized out>) at eval.c:2451
#25 0x000002aa001ce488 in Fprogn (body=0x3fff3cf7d6b) at eval.c:465
#26 Flet (args=0x2d) at eval.c:1051
#27 0x000002aa001ccd4a in eval_sub (form=<optimized out>) at eval.c:2451
#28 0x000002aa001cd824 in Fprogn (body=0x0) at eval.c:465
#29 Fif (args=<optimized out>) at eval.c:421
#30 Fif (args=<optimized out>) at eval.c:407
#31 0x000002aa001ccd4a in eval_sub (form=<optimized out>) at eval.c:2451
#32 0x000002aa001cdc2e in Fprogn (body=0x0) at eval.c:465
#33 funcall_lambda (fun=0x3fff3cf7c9b, nargs=nargs@entry=4, arg_vector=arg_vector@entry=0x3ffffffb650) at eval.c:3305
#34 0x000002aa001ca202 in Ffuncall (nargs=nargs@entry=5, args=args@entry=0x3ffffffb648) at eval.c:3039
#35 0x000002aa001ca4b0 in call4 (fn=<optimized out>, arg1=arg1@entry=0x2aa00a7fff4, arg2=arg2@entry=0x2aa00a7fff4, arg3=arg3@entry=0x0, arg4=arg4@entry=0x30) at eval.c:2905
#36 0x000002aa001f90e4 in Fload (file=file@entry=0x3fff362bcbc, noerror=noerror@entry=0x0, nomessage=nomessage@entry=0x30, nosuffix=nosuffix@entry=0x0, must_suffix=<optimized out>, 
    must_suffix@entry=0x30) at lread.c:1473
#37 0x000002aa001f9462 in save_match_data_load (file=0x3fff362bcbc, noerror=noerror@entry=0x0, nomessage=nomessage@entry=0x30, nosuffix=nosuffix@entry=0x0, must_suffix=must_suffix@entry=0x30)
    at lread.c:1629
#38 0x000002aa001c9ef0 in Fautoload_do_load (fundef=0x3fff362bc4b, funname=funname@entry=0x155f2f7a340, macro_only=macro_only@entry=0x0) at eval.c:2295
#39 0x000002aa001ca192 in Ffuncall (nargs=2, args=0x3ffffffbba0) at eval.c:3042
#40 0x000003fff306b0d4 in F636f6d702d2d6e61746976652d636f6d70696c65_comp__native_compile_0 () at /home/rlb/emacs/native-lisp/28.2-87d45215/comp-7672a6ed-ac6bcf4e.eln
#41 0x000002aa001ca24e in Ffuncall (nargs=<optimized out>, args=<optimized out>) at lisp.h:2110
#42 0x000003fff306c592 in F62617463682d6e61746976652d636f6d70696c65_batch_native_compile_0 () at /home/rlb/emacs/native-lisp/28.2-87d45215/comp-7672a6ed-ac6bcf4e.eln
#43 0x000002aa001ca24e in Ffuncall (nargs=<optimized out>, args=<optimized out>) at lisp.h:2110
#44 0x000003fff306c728 in F62617463682d627974652b6e61746976652d636f6d70696c65_batch_bytenative_compile_0 () at /home/rlb/emacs/native-lisp/28.2-87d45215/comp-7672a6ed-ac6bcf4e.eln
#45 0x000002aa001ca24e in Ffuncall (nargs=<optimized out>, args=<optimized out>) at lisp.h:2110
#46 0x000002aa001ccfc4 in eval_sub (form=<optimized out>) at eval.c:2470
#47 0x000002aa001cd824 in Fprogn (body=0x0) at eval.c:465
#48 Fif (args=<optimized out>) at eval.c:421
#49 Fif (args=<optimized out>) at eval.c:407
#50 0x000002aa001ccd4a in eval_sub (form=<optimized out>) at eval.c:2451
#51 0x000002aa001cd8cc in Fprogn (body=0x0) at eval.c:465
#52 Fcond (args=<optimized out>) at eval.c:445
#53 0x000002aa001ccd4a in eval_sub (form=<optimized out>) at eval.c:2451
#54 0x000002aa001ce732 in Fprogn (body=0x3fff36e1b43) at eval.c:465
#55 FletX (args=0x3fff36e1b03) at eval.c:983
#56 0x000002aa001ccd4a in eval_sub (form=<optimized out>) at eval.c:2451
#57 0x000002aa001cd6ae in Fprogn (body=0x0) at eval.c:465
#58 prog_ignore (body=<optimized out>) at eval.c:476
#59 Fwhile (args=<optimized out>) at eval.c:1072
#60 0x000002aa001ccd4a in eval_sub (form=<optimized out>) at eval.c:2451
#61 0x000002aa001ce732 in Fprogn (body=0x0) at eval.c:465
#62 FletX (args=0x3fff36e1a83) at eval.c:983
#63 0x000002aa001ccd4a in eval_sub (form=<optimized out>) at eval.c:2451
#64 0x000002aa001cd1d6 in Fprogn (body=0x0) at eval.c:465
#65 0x000002aa001ccd4a in eval_sub (form=<optimized out>) at eval.c:2451
#66 0x000002aa001ccd4a in eval_sub (form=<optimized out>) at eval.c:2451
#67 0x000002aa001ce488 in Fprogn (body=0x0) at eval.c:465
#68 Flet (args=0x12) at eval.c:1051
#69 0x000002aa001ccd4a in eval_sub (form=<optimized out>) at eval.c:2451
#70 0x000002aa001ce488 in Fprogn (body=0x3fff35d3a73) at eval.c:465
#71 Flet (args=0xe) at eval.c:1051
#72 0x000002aa001ccd4a in eval_sub (form=<optimized out>) at eval.c:2451
#73 0x000002aa001cdc2e in Fprogn (body=0x0) at eval.c:465
#74 funcall_lambda (fun=0x3fff35d39e3, fun@entry=0x3fff35d39d3, nargs=nargs@entry=1, arg_vector=arg_vector@entry=0x3ffffffd280) at eval.c:3305
#75 0x000002aa001cdf10 in apply_lambda (fun=fun@entry=0x3fff35d39d3, args=<optimized out>, count=2929176661299, count@entry=15) at eval.c:3172
#76 0x000002aa001cc9d0 in eval_sub (form=<optimized out>) at eval.c:2575
#77 0x000002aa001ce488 in Fprogn (body=0x3fff37a209b) at eval.c:465
#78 Flet (args=0x8) at eval.c:1051
#79 0x000002aa001ccd4a in eval_sub (form=<optimized out>) at eval.c:2451
#80 0x000002aa001cdc2e in Fprogn (body=0x0) at eval.c:465
#81 funcall_lambda (fun=0x3fff37a1e7b, fun@entry=0x3fff37a1e6b, nargs=nargs@entry=0, arg_vector=arg_vector@entry=0x3ffffffd740) at eval.c:3305
#82 0x000002aa001cdf10 in apply_lambda (fun=fun@entry=0x3fff37a1e6b, args=<optimized out>, count=2929176221524, count@entry=11) at eval.c:3172
#83 0x000002aa001cc9d0 in eval_sub (form=<optimized out>) at eval.c:2575
#84 0x000002aa001ce8cc in Funwind_protect (args=0x3fff380e7a3) at lisp.h:1420
#85 0x000002aa001ccd4a in eval_sub (form=<optimized out>) at eval.c:2451
#86 0x000002aa001ce488 in Fprogn (body=0x0) at eval.c:465
#87 Flet (args=0x3ffffffe658) at eval.c:1051
#88 0x000002aa001ccd4a in eval_sub (form=<optimized out>) at eval.c:2451
#89 0x000002aa001cd824 in Fprogn (body=0x3fff380e233) at eval.c:465
#90 Fif (args=<optimized out>) at eval.c:421
#91 Fif (args=<optimized out>) at eval.c:407
#92 0x000002aa001ccd4a in eval_sub (form=<optimized out>) at eval.c:2451
#93 0x000002aa001cdc2e in Fprogn (body=0x0) at eval.c:465
#94 funcall_lambda (fun=0x3fff380e0e3, fun@entry=0x3fff380e0d3, nargs=nargs@entry=0, arg_vector=arg_vector@entry=0x3ffffffdf88) at eval.c:3305
#95 0x000002aa001cdf10 in apply_lambda (fun=fun@entry=0x3fff380e0d3, args=<optimized out>, count=4398046502696, count@entry=4) at eval.c:3172
#96 0x000002aa001cc9d0 in eval_sub (form=form@entry=0x3fff3f3ef1b) at eval.c:2575
#97 0x000002aa001cee52 in Feval (form=0x3fff3f3ef1b, lexical=<optimized out>) at eval.c:2327
#98 0x000002aa001c8fb6 in internal_condition_case (bfun=bfun@entry=0x2aa00142860 <top_level_2>, handlers=handlers@entry=0x90, hfun=hfun@entry=0x2aa00148ca8 <cmd_error>) at eval.c:1450
#99 0x000002aa001435d2 in top_level_1 (ignore=ignore@entry=0x0) at keyboard.c:1150
#100 0x000002aa001c8ed4 in internal_catch (tag=tag@entry=0xe850, func=func@entry=0x2aa001435a0 <top_level_1>, arg=arg@entry=0x0) at eval.c:1181
#101 0x000002aa001427e0 in command_loop () at keyboard.c:1110
#102 0x000002aa001487bc in recursive_edit_1 () at keyboard.c:720
#103 0x000002aa00148bcc in Frecursive_edit () at keyboard.c:803
#104 0x000002aa00051d7a in main (argc=<optimized out>, argv=0x3ffffffea28) at emacs.c:2358

--=-=-=
Content-Type: text/plain


Thanks
-- 
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

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 14 Sep 2022 03:20:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 13 23:20:51 2022
Received: from localhost ([127.0.0.1]:53300 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oYIxH-0003yz-8K
	for submit <at> debbugs.gnu.org; Tue, 13 Sep 2022 23:20:51 -0400
Received: from defaultvalue.org ([45.33.119.55]:59674 ident=postfix)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rlb@HIDDEN>) id 1oYIxF-0003yn-6V
 for 57789 <at> debbugs.gnu.org; Tue, 13 Sep 2022 23:20:49 -0400
Received: from trouble.defaultvalue.org (localhost [127.0.0.1])
 (Authenticated sender: rlb@HIDDEN)
 by defaultvalue.org (Postfix) with ESMTPSA id 87A0620343;
 Tue, 13 Sep 2022 22:20:47 -0500 (CDT)
Received: by trouble.defaultvalue.org (Postfix, from userid 1000)
 id B9C0D14E081; Tue, 13 Sep 2022 22:20:46 -0500 (CDT)
From: Rob Browning <rlb@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
In-Reply-To: <874jxairi6.fsf@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN>
 <83tu5a3cdw.fsf@HIDDEN> <874jxairi6.fsf@HIDDEN>
Date: Tue, 13 Sep 2022 22:20:46 -0500
Message-ID: <871qseiqup.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: 57789 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Rob Browning <rlb@HIDDEN> writes:

> Will attempt.

Hmm, so I ran "make V=1" from the same tree and saw thw command that
repeatably crashed, which was:

  EMACSLOADPATH= '../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)'  \
    -l comp -f batch-byte+native-compile international/titdic-cnv.el

I then ran that manually via 

  (cd lisp
   && EMACSLOADPATH= '../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)'  \
      -l comp -f batch-byte+native-compile international/titdic-cnv.el)

which ran for a bit and succeeded.  After that a make worked fine until
bindings.el where it crashed again, this time with an "Aborted", and
running it manually didn't help.

In any case, I'm going to start over and try to get the backtraces for
the titdic-cnv.el failure.

-- 
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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 14 Sep 2022 03:06:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 13 23:06:46 2022
Received: from localhost ([127.0.0.1]:53273 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oYIje-0003cF-7c
	for submit <at> debbugs.gnu.org; Tue, 13 Sep 2022 23:06:46 -0400
Received: from defaultvalue.org ([45.33.119.55]:59672 ident=postfix)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rlb@HIDDEN>) id 1oYIja-0003c4-M1
 for 57789 <at> debbugs.gnu.org; Tue, 13 Sep 2022 23:06:44 -0400
Received: from trouble.defaultvalue.org (localhost [127.0.0.1])
 (Authenticated sender: rlb@HIDDEN)
 by defaultvalue.org (Postfix) with ESMTPSA id BED032040D;
 Tue, 13 Sep 2022 22:06:41 -0500 (CDT)
Received: by trouble.defaultvalue.org (Postfix, from userid 1000)
 id 40E7214E081; Tue, 13 Sep 2022 22:06:41 -0500 (CDT)
From: Rob Browning <rlb@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation
 crashes on s390x
In-Reply-To: <83tu5a3cdw.fsf@HIDDEN>
References: <87h71aix5r.fsf@HIDDEN> <83tu5a3cdw.fsf@HIDDEN>
Date: Tue, 13 Sep 2022 22:06:41 -0500
Message-ID: <874jxairi6.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57789
Cc: 57789 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> If you build the current emacs-28 branch, then it isn't Emacs 28.1,
> it's Emacs 28.2.50, right?

Right, sorry, the clone test was the current branch tip, and the buildd
log was for (Debian's partially altered) tree, derived from the
emacs-28.1 tag.  I can easily re-test the 28.1 tag if we like.

> Please run the crashing command under GDB, and when it segfaults,
> produce the C-level and Lisp-level backtrace, and post them here.

Will attempt.

Thanks
-- 
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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at 57789 <at> debbugs.gnu.org:


Received: (at 57789) by debbugs.gnu.org; 14 Sep 2022 02:42:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 13 22:42:45 2022
Received: from localhost ([127.0.0.1]:53246 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oYIMN-0002xM-KS
	for submit <at> debbugs.gnu.org; Tue, 13 Sep 2022 22:42:45 -0400
Received: from eggs.gnu.org ([209.51.188.92]:35162)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1oYIMI-0002x4-VC
 for 57789 <at> debbugs.gnu.org; Tue, 13 Sep 2022 22:42:41 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:50276)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oYIMD-0006RD-Do; Tue, 13 Sep 2022 22:42:33 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=hB1ZZ3xyg8/gL9Cc3iPp8Y/87sRhEPxOB4bMqbktOHc=; b=nE6ukGWK5dIK
 zp/WOWZjkIMan5+U6WdyX128KQut1LuIX96G2YKkBWUJeZfU/4T/Hrl7L562Vk7Et1O6XXWsORxRN
 rWzvSDUKWbNMEpz7DE0mYxrBmnaoRX1w6FPyfwzuUX4XY7o13BLW/NXQvhrgd+Hr4BvhYYIdo5RHf
 a2hdrnO7KbCQJP13Fom3bzPDnQokq802RUgiqslQBb8NdBv2DfS7D1rF6DrxBAcALRa3pXtXUax5L
 Ea6mrl0ItpDkLC+HjCqsbF+tW8np/us/zOU64DC6d9FweGg9ahufNhkAKMI4XXjCOe+31w4cD9K1a
 y9l+aVhRQrBIZ/fNFsv1yQ==;
Received: from [87.69.77.57] (port=1654 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oYIMC-0003Dt-8d; Tue, 13 Sep 2022 22:42:32 -0400
Date: Wed, 14 Sep 2022 05:42:19 +0300
Message-Id: <83tu5a3cdw.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Rob Browning <rlb@HIDDEN>
In-Reply-To: <87h71aix5r.fsf@HIDDEN> (message from Rob
 Browning on Tue, 13 Sep 2022 20:04:32 -0500)
Subject: Re: bug#57789: Emacs 28.1 clone build with native compilation crashes
 on s390x
References: <87h71aix5r.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57789
Cc: 57789 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Rob Browning <rlb@HIDDEN>
> Date: Tue, 13 Sep 2022 20:04:32 -0500
> 
> On zelenka.debian.org https://db.debian.org/machines.cgi?host=zelenka
> the build crashes with a segfault with current Debian sid (unstable).  I
> can produce the crash like this:
> 
>   git clone --single-branch --branch emacs-28 .../emacs.git

If you build the current emacs-28 branch, then it isn't Emacs 28.1,
it's Emacs 28.2.50, right?

>   cd emacs
>   ./autogen.sh
>   ./configure --prefix=/home/rlb/opt/emacs-tmp --with-native-compilation
>   make check
> 
> The debian package produced a similar failure earlier:
> 
>   https://buildd.debian.org/status/fetch.php?pkg=emacs&arch=s390x&ver=1%3A28.1%2B1-3&stamp=1662863442&raw=0
> 
> Here's the final bit of the clone build's log, and I'm happy to help
> test on the machine if that'd be useful:

Please run the crashing command under GDB, and when it segfaults,
produce the C-level and Lisp-level backtrace, and post them here.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Sep 2022 01:04:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 13 21:04:41 2022
Received: from localhost ([127.0.0.1]:53191 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oYGpT-0000VW-W5
	for submit <at> debbugs.gnu.org; Tue, 13 Sep 2022 21:04:41 -0400
Received: from lists.gnu.org ([209.51.188.17]:39734)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rlb@HIDDEN>) id 1oYGpR-0000VN-EC
 for submit <at> debbugs.gnu.org; Tue, 13 Sep 2022 21:04:38 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:43634)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rlb@HIDDEN>)
 id 1oYGpR-0004V5-3q
 for bug-gnu-emacs@HIDDEN; Tue, 13 Sep 2022 21:04:37 -0400
Received: from defaultvalue.org ([45.33.119.55]:37422)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <rlb@HIDDEN>) id 1oYGpP-0000rG-5s
 for bug-gnu-emacs@HIDDEN; Tue, 13 Sep 2022 21:04:36 -0400
Received: from trouble.defaultvalue.org (localhost [127.0.0.1])
 (Authenticated sender: rlb@HIDDEN)
 by defaultvalue.org (Postfix) with ESMTPSA id 5183F20343
 for <bug-gnu-emacs@HIDDEN>; Tue, 13 Sep 2022 20:04:33 -0500 (CDT)
Received: by trouble.defaultvalue.org (Postfix, from userid 1000)
 id 5B5CC14E081; Tue, 13 Sep 2022 20:04:32 -0500 (CDT)
From: Rob Browning <rlb@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: Emacs 28.1 clone build with native compilation crashes on s390x
Date: Tue, 13 Sep 2022 20:04:32 -0500
Message-ID: <87h71aix5r.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=45.33.119.55; envelope-from=rlb@HIDDEN;
 helo=defaultvalue.org
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)


On zelenka.debian.org https://db.debian.org/machines.cgi?host=zelenka
the build crashes with a segfault with current Debian sid (unstable).  I
can produce the crash like this:

  git clone --single-branch --branch emacs-28 .../emacs.git
  cd emacs
  ./autogen.sh
  ./configure --prefix=/home/rlb/opt/emacs-tmp --with-native-compilation
  make check

The debian package produced a similar failure earlier:

  https://buildd.debian.org/status/fetch.php?pkg=emacs&arch=s390x&ver=1%3A28.1%2B1-3&stamp=1662863442&raw=0

Here's the final bit of the clone build's log, and I'm happy to help
test on the machine if that'd be useful:

  Loading /home/rlb/emacs/lisp/electric.el (source)...
  Loading /home/rlb/emacs/lisp/paren.el (source)...
  Loading /home/rlb/emacs/lisp/emacs-lisp/shorthands.el (source)...
  Loading /home/rlb/emacs/lisp/emacs-lisp/eldoc.el (source)...
  Loading /home/rlb/emacs/lisp/cus-start.el (source)...
  Loading /home/rlb/emacs/lisp/tooltip.el (source)...
  Loading /home/rlb/emacs/lisp/international/iso-transl.el (source)...
  Finding pointers to doc strings...
  Finding pointers to doc strings...done
  Dumping under the name bootstrap-emacs.pdmp
  Dumping fingerprint: b4b1b9ac4d82ce4537c0e1eb6527b2b7f5831cb6de31c7f9b2fd2a1a0c4531c4
  Dump complete
  Byte counts: header=100 hot=14915588 discardable=175392 cold=10410424
  Reloc counts: hot=1048047 discardable=5080
  make -C ../lisp compile-first EMACS="../src/bootstrap-emacs"
  make[2]: Entering directory '/home/rlb/emacs/lisp'
    ELC+ELN  emacs-lisp/macroexp.elc
    ELC+ELN  emacs-lisp/cconv.elc
    ELC+ELN  emacs-lisp/byte-opt.elc
    ELC+ELN  emacs-lisp/bytecomp.elc
    ELC+ELN  emacs-lisp/comp.elc
    ELC+ELN  emacs-lisp/comp-cstr.elc
    ELC+ELN  emacs-lisp/cl-macs.elc
    ELC+ELN  emacs-lisp/rx.elc
    ELC+ELN  emacs-lisp/cl-seq.elc
  Fatal error 11: Segmentation fault
  Backtrace:
  ../src/bootstrap-emacs(+0x15deb6)[0x2aa0a7ddeb6]
  ../src/bootstrap-emacs(+0x4efc4)[0x2aa0a6cefc4]
  ../src/bootstrap-emacs(+0x4f1fe)[0x2aa0a6cf1fe]
  ../src/bootstrap-emacs(+0x15c240)[0x2aa0a7dc240]
  ../src/bootstrap-emacs(+0x15c2d2)[0x2aa0a7dc2d2]
  ../src/bootstrap-emacs(+0x6a47d8)[0x2aa0ad247d8]
  ../src/bootstrap-emacs(+0x1a7de0)[0x2aa0a827de0]
  ../src/bootstrap-emacs(+0x1a8ee6)[0x2aa0a828ee6]
  ../src/bootstrap-emacs(+0x1a8ee6)[0x2aa0a828ee6]
  ../src/bootstrap-emacs(+0x1a8ee6)[0x2aa0a828ee6]
  ../src/bootstrap-emacs(+0x1a8ee6)[0x2aa0a828ee6]
  ../src/bootstrap-emacs(+0x1a7c3e)[0x2aa0a827c3e]
  ../src/bootstrap-emacs(+0x1a9094)[0x2aa0a829094]
  ../src/bootstrap-emacs(eval_sub+0x410)[0x2aa0a84cc28]
  ../src/bootstrap-emacs(+0x1cdc2e)[0x2aa0a84dc2e]
  ../src/bootstrap-emacs(+0x1cdf10)[0x2aa0a84df10]
  ../src/bootstrap-emacs(eval_sub+0x1b8)[0x2aa0a84c9d0]
  ../src/bootstrap-emacs(+0x1cdeb8)[0x2aa0a84deb8]
  ../src/bootstrap-emacs(eval_sub+0x1b8)[0x2aa0a84c9d0]
  ../src/bootstrap-emacs(eval_sub+0x2c4)[0x2aa0a84cadc]
  ../src/bootstrap-emacs(+0x1cd26a)[0x2aa0a84d26a]
  ../src/bootstrap-emacs(eval_sub+0x532)[0x2aa0a84cd4a]
  ../src/bootstrap-emacs(eval_sub+0x4ba)[0x2aa0a84ccd2]
  ../src/bootstrap-emacs(eval_sub+0x532)[0x2aa0a84cd4a]
  ../src/bootstrap-emacs(+0x1ce488)[0x2aa0a84e488]
  ../src/bootstrap-emacs(eval_sub+0x532)[0x2aa0a84cd4a]
  ../src/bootstrap-emacs(+0x1cd8cc)[0x2aa0a84d8cc]
  ../src/bootstrap-emacs(eval_sub+0x532)[0x2aa0a84cd4a]
  ../src/bootstrap-emacs(+0x1cdc2e)[0x2aa0a84dc2e]
  ../src/bootstrap-emacs(+0x1cdf10)[0x2aa0a84df10]
  ../src/bootstrap-emacs(eval_sub+0x1b8)[0x2aa0a84c9d0]
  ../src/bootstrap-emacs(eval_sub+0x2c4)[0x2aa0a84cadc]
  ../src/bootstrap-emacs(+0x1cdc2e)[0x2aa0a84dc2e]
  ../src/bootstrap-emacs(Ffuncall+0x1f2)[0x2aa0a84a202]
  ../src/bootstrap-emacs(+0x1cc6a4)[0x2aa0a84c6a4]
  ../src/bootstrap-emacs(+0x1ce26c)[0x2aa0a84e26c]
  ../src/bootstrap-emacs(eval_sub+0x638)[0x2aa0a84ce50]
  ../src/bootstrap-emacs(+0x1ce7ec)[0x2aa0a84e7ec]
  ../src/bootstrap-emacs(eval_sub+0x532)[0x2aa0a84cd4a]
  ../src/bootstrap-emacs(+0x1cdc2e)[0x2aa0a84dc2e]
  ../src/bootstrap-emacs(+0x1cdf10)[0x2aa0a84df10]
  ...
  make[2]: *** [Makefile:316: emacs-lisp/cl-seq.elc] Segmentation fault
  make[2]: Leaving directory '/home/rlb/emacs/lisp'
  make[1]: *** [Makefile:870: bootstrap-emacs.pdmp] Error 2
  make[1]: Leaving directory '/home/rlb/emacs/src'
  make: *** [Makefile:449: src] Error 2

Thanks
-- 
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




Acknowledgement sent to Rob Browning <rlb@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#57789; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.