From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: john muhl via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#68690: Segmentation fault building with native-comp Date: Wed, 24 Jan 2024 08:36:15 -0600 Message-ID: <87wmryel78.fsf@pub.pink> Reply-To: john muhl 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="17299"; mail-complaints-to="usenet@ciao.gmane.io" To: 68690@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 24 17:44:20 2024 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 1rSgMO-0004JK-8c for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Jan 2024 17:44:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSgM4-0003eA-4W; Wed, 24 Jan 2024 11:44:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSgM1-0003dv-PA for bug-gnu-emacs@gnu.org; Wed, 24 Jan 2024 11:43:58 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rSgM1-0004lT-HA for bug-gnu-emacs@gnu.org; Wed, 24 Jan 2024 11:43:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rSgM6-00028w-Mf for bug-gnu-emacs@gnu.org; Wed, 24 Jan 2024 11:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: john muhl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Jan 2024 16:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68690 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17061146278205 (code B ref -1); Wed, 24 Jan 2024 16:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jan 2024 16:43:47 +0000 Original-Received: from localhost ([127.0.0.1]:46420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSgLr-00028G-8H for submit@debbugs.gnu.org; Wed, 24 Jan 2024 11:43:47 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:51830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSgLp-000283-68 for submit@debbugs.gnu.org; Wed, 24 Jan 2024 11:43:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSgLe-0003Zi-HN for bug-gnu-emacs@gnu.org; Wed, 24 Jan 2024 11:43:34 -0500 Original-Received: from out-182.mta0.migadu.com ([91.218.175.182]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSgLc-0004f2-GM for bug-gnu-emacs@gnu.org; Wed, 24 Jan 2024 11:43:34 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; s=key1; t=1706114608; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nT3g5t44UIai9TpKJtvzmuQqpn0m5CRTa83ace3fgfQ=; b=ZiSzFZtU07AKrOwTHwzCfZ2srxbssOTwPgkD/nZrh+/YEYb+TqEbYKi7ASS9JlrjRJ6eKq iozZSCatKEPTJRTiFH7y3p/EMnWh2v8jH7jvT/HQRVXCTgSXPZtbZqJroLKfwvzdVccsRB in/dNzkjUh7mibYzyQh+9CVGxzLD4dQ= X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=91.218.175.182; envelope-from=jm@pub.pink; helo=out-182.mta0.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:278795 Archived-At: Bisect says 3018c6e7ba5 is the first bad commit. A build using =E2=80=98--without-native-compilation=E2=80=99 works fine. The segfault can= be reproduced on Fedora 39 and Debian testing. make bootstrap =E2=80=A6 make -C ../lisp compile-first EMACS=3D"../src/bootstrap-emacs" make[3]: Entering directory '/home/jm/src/emacs-0/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/comp-common.elc ELC+ELN emacs-lisp/comp-run.elc ELC+ELN emacs-lisp/loaddefs-gen.elc ELC+ELN emacs-lisp/radix-tree.elc Backtrace: ../src/bootstrap-emacs[0x57863b] ../src/bootstrap-emacs[0x42651e] ../src/bootstrap-emacs[0x426a10] ../src/bootstrap-emacs[0x576cf8] ../src/bootstrap-emacs[0x576d69] /lib64/libc.so.6(+0x3e9a0)[0x7fce2b5089a0] ../src/bootstrap-emacs[0x60bb50] ../src/bootstrap-emacs[0x60df74] ../src/bootstrap-emacs[0x5e8910] ../src/bootstrap-emacs[0x5e9891] ../src/bootstrap-emacs[0x5e9d8c] ../src/bootstrap-emacs[0x5e8111] ../src/bootstrap-emacs[0x5e87f7] ../src/bootstrap-emacs[0x5e9891] ../src/bootstrap-emacs[0x5e4fe6] ../src/bootstrap-emacs[0x5e5d3a] ../src/bootstrap-emacs[0x428f09] ../src/bootstrap-emacs[0x5e4fe6] /home/jm/src/emacs-0/native-lisp/30.0.50-ed70e66e/comp-7672a6ed-93f96353.el= n(F636f6d702d2d6e61746976652d636f6d70696c65_comp__native_compile_0+0xaeb)[0= x7fce281a030b] ../src/bootstrap-emacs[0x5e4fe6] /home/jm/src/emacs-0/native-lisp/30.0.50-ed70e66e/comp-7672a6ed-93f96353.el= n(F62617463682d6e61746976652d636f6d70696c65_batch_native_compile_0+0x186)[0= x7fce281a0c26] ../src/bootstrap-emacs[0x5e4fe6] /home/jm/src/emacs-0/native-lisp/30.0.50-ed70e66e/comp-7672a6ed-93f96353.el= n(F62617463682d627974652b6e61746976652d636f6d70696c65_batch_bytenative_comp= ile_0+0x144)[0x7fce281a0f84] ../src/bootstrap-emacs[0x5e4fe6] ../src/bootstrap-emacs[0x5e860d] ../src/bootstrap-emacs[0x5e9251] ../src/bootstrap-emacs[0x5e87f7] ../src/bootstrap-emacs[0x5e92d9] ../src/bootstrap-emacs[0x5e87f7] ../src/bootstrap-emacs[0x5ea5d1] ../src/bootstrap-emacs[0x5e87f7] ../src/bootstrap-emacs[0x5e9101] ../src/bootstrap-emacs[0x5e87f7] ../src/bootstrap-emacs[0x5ea5d1] ../src/bootstrap-emacs[0x5e87f7] ../src/bootstrap-emacs[0x5e8ab1] ../src/bootstrap-emacs[0x5e87f7] ../src/bootstrap-emacs[0x5e87f7] ../src/bootstrap-emacs[0x5ea1b9] ../src/bootstrap-emacs[0x5e87f7] ../src/bootstrap-emacs[0x5ea1b9] ... make[3]: *** [Makefile:330: emacs-lisp/byte-opt.elc] Segmentation fault (co= re dumped) make[3]: *** Waiting for unfinished jobs.... Backtrace: ../src/bootstrap-emacs[0x57863b] ../src/bootstrap-emacs[0x42651e] ../src/bootstrap-emacs[0x426a10] ../src/bootstrap-emacs[0x576cf8] ../src/bootstrap-emacs[0x576d69] /lib64/libc.so.6(+0x3e9a0)[0x7f8c2be5c9a0] ../src/bootstrap-emacs[0x60b9e0] ../src/bootstrap-emacs[0x60df74] ../src/bootstrap-emacs[0x5e8910] ../src/bootstrap-emacs[0x5e9891] ../src/bootstrap-emacs[0x5e9d8c] ../src/bootstrap-emacs[0x5e8111] ../src/bootstrap-emacs[0x5e87f7] ../src/bootstrap-emacs[0x5e9891] ../src/bootstrap-emacs[0x5e4fe6] ../src/bootstrap-emacs[0x5e5d3a] ../src/bootstrap-emacs[0x428f09] ../src/bootstrap-emacs[0x5e4fe6] /home/jm/src/emacs-0/native-lisp/30.0.50-ed70e66e/comp-7672a6ed-93f96353.el= n(F636f6d702d2d6e61746976652d636f6d70696c65_comp__native_compile_0+0xaeb)[0= x7f8c28abf30b] ../src/bootstrap-emacs[0x5e4fe6] /home/jm/src/emacs-0/native-lisp/30.0.50-ed70e66e/comp-7672a6ed-93f96353.el= n(F62617463682d6e61746976652d636f6d70696c65_batch_native_compile_0+0x186)[0= x7f8c28abfc26] ../src/bootstrap-emacs[0x5e4fe6] /home/jm/src/emacs-0/native-lisp/30.0.50-ed70e66e/comp-7672a6ed-93f96353.el= n(F62617463682d627974652b6e61746976652d636f6d70696c65_batch_bytenative_comp= ile_0+0x144)[0x7f8c28abff84] ../src/bootstrap-emacs[0x5e4fe6] ../src/bootstrap-emacs[0x5e860d] ../src/bootstrap-emacs[0x5e9251] ../src/bootstrap-emacs[0x5e87f7] ../src/bootstrap-emacs[0x5e92d9] ../src/bootstrap-emacs[0x5e87f7] ../src/bootstrap-emacs[0x5ea5d1] ../src/bootstrap-emacs[0x5e87f7] ../src/bootstrap-emacs[0x5e9101] ../src/bootstrap-emacs[0x5e87f7] ../src/bootstrap-emacs[0x5ea5d1] ../src/bootstrap-emacs[0x5e87f7] ../src/bootstrap-emacs[0x5e8ab1] ../src/bootstrap-emacs[0x5e87f7] ../src/bootstrap-emacs[0x5e87f7] ../src/bootstrap-emacs[0x5ea1b9] ../src/bootstrap-emacs[0x5e87f7] ../src/bootstrap-emacs[0x5ea1b9] ... make[3]: *** [Makefile:330: emacs-lisp/bytecomp.elc] Segmentation fault (co= re dumped) make[3]: Leaving directory '/home/jm/src/emacs-0/lisp' make[2]: *** [Makefile:1019: bootstrap-emacs.pdmp] Error 2 make[2]: Leaving directory '/home/jm/src/emacs-0/src' make[1]: *** [Makefile:554: src] Error 2 make[1]: Leaving directory '/home/jm/src/emacs-0' make[1]: Entering directory '/home/jm/src/emacs-0' *** *** "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:418: advice-on-failure] Error 2 make[1]: Leaving directory '/home/jm/src/emacs-0' make: *** [Makefile:374: all] Error 2