From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#62504: 30.0.50; SEGFAULT On M-x Date: Wed, 29 Mar 2023 08:49:52 +0000 Message-ID: References: <630CCFC3-9FB3-4BED-AC3B-A3D1005F3613@gmail.com> <831ql895f6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25790"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 62504@debbugs.gnu.org, Jacob Faibussowitsch To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 29 10:50:26 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phRVf-0006UB-S6 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Mar 2023 10:50:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phRVN-0008Tv-PH; Wed, 29 Mar 2023 04:50:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phRVL-0008Ta-Ia for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2023 04:50:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phRVK-0004VW-KZ for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2023 04:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phRVJ-0004bd-Tw for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2023 04:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Mar 2023 08:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62504 X-GNU-PR-Package: emacs Original-Received: via spool by 62504-submit@debbugs.gnu.org id=B62504.168007979817692 (code B ref 62504); Wed, 29 Mar 2023 08:50:01 +0000 Original-Received: (at 62504) by debbugs.gnu.org; 29 Mar 2023 08:49:58 +0000 Original-Received: from localhost ([127.0.0.1]:51297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phRVG-0004bH-CD for submit@debbugs.gnu.org; Wed, 29 Mar 2023 04:49:58 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:53548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phRVE-0004b9-LA for 62504@debbugs.gnu.org; Wed, 29 Mar 2023 04:49:57 -0400 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.16.1/8.14.5) with ESMTPS id 32T8nqir006336 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 29 Mar 2023 08:49:54 GMT In-Reply-To: <831ql895f6.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 28 Mar 2023 20:01:01 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258834 Archived-At: Eli Zaretskii writes: >> From: Jacob Faibussowitsch >> Date: Tue, 28 Mar 2023 11:25:49 -0400 >>=20 >> 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 # 2)`. Segfa= ults only occur after the following commit: >>=20 >> commit 52b67740d10df8ca539fdc2c7d50283997683141 >> Author: Mattias Engdeg=C3=A5rd >> Date: Sat Mar 25 15:38:00 2023 +0100 >>=20 >> Generalise a LAP optimisation rule >>=20 >> * 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. >>=20 >>=20 >> Common setup: >>=20 >> 1. mkdir repro >> 2. Put attached init.el and main.c inside (technically, main.c need not = be in repro) >>=20 >> =E2=80=94=E2=80=94=E2=80=94 >>=20 >> To reproduce bug#61917: >>=20 >> 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. >>=20 >> =E2=80=94=E2=80=94=E2=80=94=20 >>=20 >> To reproduce segfault: >>=20 >> 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 *r= equired*, the segfault does not fire otherwise) >> 4. (In emacs) M-x >> 5. Fatal error 11: Segmentation fault > > Thanks. > > Andrea, maybe this will help you investigate the issue. Yep, noted thanks. Andrea