GNU bug report logs - #62504
30.0.50; SEGFAULT On M-x

Previous Next

Package: emacs;

Reported by: Jacob Faibussowitsch <jacob.fai <at> gmail.com>

Date: Tue, 28 Mar 2023 15:27:01 UTC

Severity: normal

Found in version 30.0.50

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Jacob Faibussowitsch <jacob.fai <at> gmail.com>
Subject: bug#62504: closed (Re: bug#62504: 30.0.50; SEGFAULT On M-x)
Date: Mon, 11 Sep 2023 23:58:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#62504: 30.0.50; SEGFAULT On M-x

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 62504 <at> debbugs.gnu.org.

-- 
62504: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62504
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Stefan Kangas <stefankangas <at> gmail.com>
To: Jacob Faibussowitsch <jacob.fai <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 62504-done <at> debbugs.gnu.org,
 Andrea Corallo <akrl <at> sdf.org>
Subject: Re: bug#62504: 30.0.50; SEGFAULT On M-x
Date: Mon, 11 Sep 2023 16:56:55 -0700
Jacob Faibussowitsch <jacob.fai <at> gmail.com> writes:

> Segfaults and errors are gone with this change.

It seems like this issue was fixed, but it was left open in the bug
tracker.  I'm therefore closing it now.

[Message part 3 (message/rfc822, inline)]
From: Jacob Faibussowitsch <jacob.fai <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; SEGFAULT On M-x
Date: Tue, 28 Mar 2023 11:25:49 -0400
[Message part 4 (text/plain, inline)]
Hello,

This bug is twofold and appears to be related to bug#62446 and bug#61917. I produce a much smaller reproducer that generates the same kind of error as bug#61917, namely `(wrong-number-of-arguments #<subr signal> 2)`. Segfaults only occur after the following commit:

commit 52b67740d10df8ca539fdc2c7d50283997683141
Author: Mattias Engdegård <mattiase <at> acm.org>
Date:   Sat Mar 25 15:38:00 2023 +0100

    Generalise a LAP optimisation rule

    * lisp/emacs-lisp/byte-opt.el (byte-optimize-lapcode):
    Accept (stack-set 1) as equivalent to (discardN-preserve-tos 1) in a
    rule previously overlooked.  This is usually beneficial in code size
    and almost always shortens dynamic paths.


Common setup:

1. mkdir repro
2. Put attached init.el and main.c inside (technically, main.c need not be in repro)

———

To reproduce bug#61917:

1. git checkout master
2. configure --with-native-compilation \
  --without-x \
  --without-ns \
  --without-compress-install \
  --with-native-compilation \
  --with-json \
  --with-tree-sitter
3. make bootstrap
4. emacs  --init-directory ../repro
5. Check messages, and ye shall find the bug message.

——— 

To reproduce segfault:

1. git checkout 52b67740d10df8ca539fdc2c7d50283997683141
2. Perform same configure and build commands as above.
3. emacs --init-directory ../repro ../repro/main.c (loading main.c is *required*, the segfault does not fire otherwise)
4. (In emacs) M-x
5. Fatal error 11: Segmentation fault

Best regards,

Jacob Faibussowitsch
(Jacob Fai - booss - oh - vitch)
[main.c (application/octet-stream, attachment)]
[init.el (application/octet-stream, attachment)]
[config.log (application/octet-stream, attachment)]
[Message part 8 (text/plain, inline)]


This bug report was last modified 1 year and 252 days ago.

Previous Next


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