GNU bug report logs - #80095
30.1.90; SIGBUS in preloaded native code

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: Spencer Baugh <sbaugh@HIDDEN>; dated Mon, 29 Dec 2025 16:17:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 80095) by debbugs.gnu.org; 29 Dec 2025 17:55:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 29 12:55:32 2025
Received: from localhost ([127.0.0.1]:38709 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vaHSu-0000z4-67
	for submit <at> debbugs.gnu.org; Mon, 29 Dec 2025 12:55:32 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:55208)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vaHSr-0000yq-6S
 for 80095 <at> debbugs.gnu.org; Mon, 29 Dec 2025 12:55:30 -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 <eliz@HIDDEN>)
 id 1vaHSl-00052v-6g; Mon, 29 Dec 2025 12:55:23 -0500
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=ORx4dlLB6yLgSJel9GYJj45DAKulpxGF/Nag1KQoDw0=; b=mbnAGdnZL4oK
 T9Oix0KSe4wIXw/scWHWUVEJNH/k3y6VtG8wI3x+iWhGihcd2adBx5eSVXEt8CYp1r1FTm7wz3Rs0
 c6ZS1U2Ka5TI1wGMWmrMd6/QSkOYKNfleFNmXM85bcvAPepzpYhjTVcPx8EybcbUlQm73pOY3NH94
 BJw94+b5wVbiLIkARJTYXkodpky8H2JGlHnyXSRlV7Rqqb0h4LNLRB4JK3oDXwcPIBsrCxy0VvdaK
 v7Q9CKx5+mefzMebtBfmyMcW2yMPCCGPiJrkNaUmEa0NypgYn8dH8Y/VGeLCveV8wxNca0bKj7EVG
 +zX2Jg+snbpWwoFxSA1D3g==;
Date: Mon, 29 Dec 2025 19:55:09 +0200
Message-Id: <86tsx9qiki.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Spencer Baugh <sbaugh@HIDDEN>,
 Andrea Corallo <acorallo@HIDDEN>
In-Reply-To: <ier1pkd4627.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#80095: 30.1.90; SIGBUS in preloaded native code
References: <ier1pkd4627.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80095
Cc: 80095 <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 (---)

> Date: Mon, 29 Dec 2025 11:16:16 -0500
> From:  Spencer Baugh via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> 
> Sometimes I receive SIGBUS signals in the middle of native code.  From
> the coredump, this is the backtrace.  Is there anything else I should do
> to debug?

See the section "Debugging problems with native-compiled Lisp" in
etc/DEBUG.

P.S. A matter of terminology: native code is never "preloaded", in the
sence that Lisp code is, i.e., native code is never dumped into the
pdumper file.  Instead, we just dump there the names of the *.eln
files produced from the preloaded code; when Emacs starts, it must
load all those *.eln files one by one.

> #0  0x00007f0a8a411f44 in _Unwind_IteratePhdrCallback () from /lib64/libgcc_s.so.1
> #1  0x00007f0a8c57853b in dl_iterate_phdr () from /lib64/libc.so.6
> #2  0x00007f0a8a413175 in _Unwind_Find_FDE () from /lib64/libgcc_s.so.1
> #3  0x00007f0a8a40f713 in uw_frame_state_for () from /lib64/libgcc_s.so.1
> #4  0x00007f0a8a411758 in _Unwind_Backtrace () from /lib64/libgcc_s.so.1
> #5  0x00007f0a8c54acf6 in backtrace () from /lib64/libc.so.6
> #6  0x0000000000557c44 in emacs_backtrace (backtrace_limit=backtrace_limit@entry=40) at sysdep.c:2374
> #7  0x000000000041f492 in terminate_due_to_signal (sig=sig@entry=7, backtrace_limit=backtrace_limit@entry=40) at emacs.c:464
> #8  0x000000000041f8f6 in handle_fatal_signal (sig=sig@entry=7) at sysdep.c:1800
> #9  0x00000000005566a8 in deliver_thread_signal (sig=7, handler=0x41f8eb <handle_fatal_signal>) at sysdep.c:1792
> #10 0x0000000000556789 in deliver_fatal_thread_signal (sig=<optimized out>) at sysdep.c:1812
> #11 <signal handler called>
> #12 0x00007f0a9136023b in ?? ()
> #13 0x00007f0a95ae71b9 in F68656c702d2d726561642d6b65792d73657175656e6365_help__read_key_sequence_0 ()
>    from /usr/local/home/sbaugh/src/emacs/emacs-30/src/../native-lisp/30.1.90-04e012b0/preloaded/help-96600e4b-8ac4ab0f.eln
> #14 0x0000000000603fd8 in exec_byte_code (fun=<optimized out>, args_template=<optimized out>, args_template@entry=0, nargs=<optimized out>, nargs@entry=0, 
>     args=<optimized out>, args@entry=0x0) at lisp.h:752
> #15 0x000000000060638b in Fbyte_code (bytestr=<optimized out>, vector=0x7f0a823bec95, maxdepth=0x6) at bytecode.c:329

When you say "sometimes", what exactly do you mean?  Is this SIGBUS
reproducible with this particular build, or is this a kind of
heisenbug?

Andrea, any ideas or suggestions?




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

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


Received: (at submit) by debbugs.gnu.org; 29 Dec 2025 16:16:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 29 11:16:43 2025
Received: from localhost ([127.0.0.1]:38378 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vaFvG-0004hA-LS
	for submit <at> debbugs.gnu.org; Mon, 29 Dec 2025 11:16:43 -0500
Received: from lists.gnu.org ([2001:470:142::17]:33114)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <sbaugh@HIDDEN>)
 id 1vaFvB-0004gf-Jr
 for submit <at> debbugs.gnu.org; Mon, 29 Dec 2025 11:16:40 -0500
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 <sbaugh@HIDDEN>)
 id 1vaFuy-0000yg-C4
 for bug-gnu-emacs@HIDDEN; Mon, 29 Dec 2025 11:16:25 -0500
Received: from mxout5.mail.janestreet.com ([64.215.233.18])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <sbaugh@HIDDEN>)
 id 1vaFuv-00054C-4Q
 for bug-gnu-emacs@HIDDEN; Mon, 29 Dec 2025 11:16:23 -0500
From: Spencer Baugh <sbaugh@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.1.90; SIGBUS in preloaded native code
X-Debbugs-Cc: 
Date: Mon, 29 Dec 2025 11:16:16 -0500
Message-ID: <ier1pkd4627.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com;
 s=waixah; t=1767024976;
 bh=MdUgHpGPk6mpGNZ0TdZvRSpAE/kGEjJxtrrx5lQ36Ig=;
 h=From:To:Subject:Date;
 b=VqACfkhG2tAdj1CDXnGks4lpLnwVt4AjxS1UcGJGi9slF/iOCcZZy/Xrk+TJb4MUb
 tW1q3H1lEL3ErfbFgC2wpauX4icrms3vu68xTAJ3cPcEy40PyrQPCMei7LQFmN8cxy
 NBJBle0Q6ACCnHONIYLw0TOfJxqdj1oD5QRDhVwSrEK5aAT6iDHN73LtJ2uuTon7dw
 zyESZMhYeSNLMDuWlAIF6KmKwSq5W7PxllkW4pD1uqphdy/HQ+dy6K/BfObFqRPhZK
 fOAmlRRCQ8dSB66Ga+tYcM5u6O8Y//jnEhKnLy8TiWQ8lugGiGow/jmoM67M9TrwsM
 aAtRWL6gTJ3iA==
Received-SPF: pass client-ip=64.215.233.18; envelope-from=sbaugh@HIDDEN;
 helo=mxout5.mail.janestreet.com
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 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,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
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: -0.1 (/)


Sometimes I receive SIGBUS signals in the middle of native code.  From
the coredump, this is the backtrace.  Is there anything else I should do
to debug?

(gdb) bt

#0  0x00007f0a8a411f44 in _Unwind_IteratePhdrCallback () from /lib64/libgcc_s.so.1
#1  0x00007f0a8c57853b in dl_iterate_phdr () from /lib64/libc.so.6
#2  0x00007f0a8a413175 in _Unwind_Find_FDE () from /lib64/libgcc_s.so.1
#3  0x00007f0a8a40f713 in uw_frame_state_for () from /lib64/libgcc_s.so.1
#4  0x00007f0a8a411758 in _Unwind_Backtrace () from /lib64/libgcc_s.so.1
#5  0x00007f0a8c54acf6 in backtrace () from /lib64/libc.so.6
#6  0x0000000000557c44 in emacs_backtrace (backtrace_limit=backtrace_limit@entry=40) at sysdep.c:2374
#7  0x000000000041f492 in terminate_due_to_signal (sig=sig@entry=7, backtrace_limit=backtrace_limit@entry=40) at emacs.c:464
#8  0x000000000041f8f6 in handle_fatal_signal (sig=sig@entry=7) at sysdep.c:1800
#9  0x00000000005566a8 in deliver_thread_signal (sig=7, handler=0x41f8eb <handle_fatal_signal>) at sysdep.c:1792
#10 0x0000000000556789 in deliver_fatal_thread_signal (sig=<optimized out>) at sysdep.c:1812
#11 <signal handler called>
#12 0x00007f0a9136023b in ?? ()
#13 0x00007f0a95ae71b9 in F68656c702d2d726561642d6b65792d73657175656e6365_help__read_key_sequence_0 ()
   from /usr/local/home/sbaugh/src/emacs/emacs-30/src/../native-lisp/30.1.90-04e012b0/preloaded/help-96600e4b-8ac4ab0f.eln
#14 0x0000000000603fd8 in exec_byte_code (fun=<optimized out>, args_template=<optimized out>, args_template@entry=0, nargs=<optimized out>, nargs@entry=0, 
    args=<optimized out>, args@entry=0x0) at lisp.h:752
#15 0x000000000060638b in Fbyte_code (bytestr=<optimized out>, vector=0x7f0a823bec95, maxdepth=0x6) at bytecode.c:329
#16 0x00000000005c1f1f in eval_sub (form=form@entry=0x7f0a823bec53) at lisp.h:752
#17 0x00000000005c3b0f in Feval (form=form@entry=0x7f0a823bec53, lexical=<optimized out>) at eval.c:2466
#18 0x00000000005bc1af in Fcall_interactively (function=0x7f0a816af508, record_flag=0x0, keys=0x3de79985) at callint.c:325
#19 0x00007f0a95f0f790 in F636f6d6d616e642d65786563757465_command_execute_0 ()
   from /usr/local/home/sbaugh/src/emacs/emacs-30/src/../native-lisp/30.1.90-04e012b0/preloaded/simple-24adbdbb-57a91188.eln
#20 0x00000000005beba0 in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7ffea7ac4b90) at eval.c:3097
#21 0x000000000054a810 in command_loop_1 () at lisp.h:1178
#22 0x00000000005bd532 in internal_condition_case (bfun=bfun@entry=0x54a410 <command_loop_1>, handlers=handlers@entry=0x90, 
    hfun=hfun@entry=0x53f140 <cmd_error>) at eval.c:1617
#23 0x0000000000537e2a in command_loop_2 (handlers=handlers@entry=0x90) at keyboard.c:1168
#24 0x00000000005bd461 in internal_catch (tag=tag@entry=0x12300, func=func@entry=0x537e10 <command_loop_2>, arg=arg@entry=0x90) at eval.c:1296
#25 0x0000000000537dcf in command_loop () at lisp.h:1178
#26 0x000000000053ecf6 in recursive_edit_1 () at keyboard.c:754
#27 0x000000000053f084 in Frecursive_edit () at keyboard.c:837
#28 0x00000000004267a7 in main (argc=<optimized out>, argv=<optimized out>) at emacs.c:2646



In GNU Emacs 30.1.90 (build 90, x86_64-pc-linux-gnu, X toolkit, cairo
 version 1.15.12, Xaw scroll bars) of 2025-12-04 built on
 igm-qws-u22796a
Repository revision: 88878f209ee0f1699952b1ba5fb829c502f5959f
Repository branch: HEAD
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Rocky Linux 8.10 (Green Obsidian)

Configured using:
 'configure --with-x-toolkit=lucid --without-gpm --without-gconf
 --without-selinux --without-imagemagick --with-modules --with-gif=no
 --with-cairo --with-rsvg --without-compress-install --with-tree-sitter
 --with-native-compilation=aot
 PKG_CONFIG_PATH=/usr/local/home/garnish/libtree-sitter/0.22.6-1/lib/pkgconfig/'

Configured features:
CAIRO DBUS FREETYPE GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBSYSTEMD
LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP
SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM
XINPUT2 XPM LUCID ZLIB

Important settings:
  value of $LANG: en_US.utf8
  locale-coding-system: utf-8-unix

Major mode: Shell

Minor modes in effect:
  global-so-long-mode: t
  global-git-commit-mode: t
  magit-auto-revert-mode: t
  windmove-mode: t
  savehist-mode: t
  save-place-mode: t
  delete-selection-mode: t
  dired-omit-mode: t
  editorconfig-mode: t
  mode-line-bell-mode: t
  global-jane-cr-highlight-minor-mode: t
  shell-dirtrack-mode: t
  jane-fe-minor-mode: t
  jane-minor-mode: t
  comint-fontify-input-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  vc-auto-revert-mode: t
  mouse-wheel-mode: t
  tab-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  context-menu-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  line-number-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t




Acknowledgement sent to Spencer Baugh <sbaugh@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#80095; 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: Mon, 29 Dec 2025 18:00:02 UTC

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