GNU bug report logs - #79602
31.0.50; daemon segfault when suspending terminal client

Previous Next

Package: emacs;

Reported by: Runciter <runciter <at> whispers-vpn.org>

Date: Wed, 8 Oct 2025 18:35:02 UTC

Severity: normal

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

To reply to this bug, email your comments to 79602 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#79602; Package emacs. (Wed, 08 Oct 2025 18:35:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Runciter <runciter <at> whispers-vpn.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 08 Oct 2025 18:35:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Runciter <runciter <at> whispers-vpn.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; daemon segfault when suspending terminal client
Date: Thu, 09 Oct 2025 02:33:14 +0800
In emacs 31.0.50 from Guix system, I get a crash when I suspend a
terminal emacslient process.

Here's how you can presumably reproduce:
Start an emacs daemon with 'emacs -Q --daemon'.
Start a client from a terminal with 'emacsclient -nw'.
Suspend the client with C-z.
The daemon crashes with a segmentation fault.

I reproduced this with 2 relatively recent commits of the master branch:
9663c95 and 30c2ef6 (but modified for working with Guix, in both cases)
It does not happen with emacs 30.2.
For this reason and others, I don't think this is an effect of the
long-standing GTK bug.

In GqNU Emacs 31.0.50 (build 1, x86_64-unknown-linux-gnu, cairo version
1.18.4)
Windowing system distributor 'The X.Org Foundation', version 11.0.12101018
System Description: Guix System

Configured using:
 'configure
 CONFIG_SHELL=/gnu/store/nnx8iifrj6jfih4sivivq17cf65aa968-bash-minimal-5.2.37/bin/bash
 SHELL=/gnu/store/nnx8iifrj6jfih4sivivq17cf65aa968-bash-minimal-5.2.37/bin/bash
 --prefix=/gnu/store/nkvlj5jhy0apx56kl031bbr5zr59zdcs-emacs-runciter-local
 --enable-fast-install
 --docdir=/gnu/store/nw3i6qgzw5b0hbhc6832dl6gwjfi90q1-emacs-runciter-local-doc/share/doc/emacs-runciter
 --build=x86_64-unknown-linux-gnu --with-dbus=no --with-gsettings=no
 --with-libelogind=no --with-x-toolkit=no --with-gpm=no
 --with-selinux=no --with-modules --with-native-compilation=aot
 'CFLAGS=-g -O2 -Wno-error=incompatible-pointer-types'
 --disable-build-details'

Configured features:
ACL CAIRO FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LCMS2 LIBOTF
LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY OLDXMENU PDUMPER PNG
RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TREE_SITTER WEBP X11 XDBE XIM
XINERAMA XINPUT2 XPM XRANDR ZLIB

Important settings:
  value of $EMACSLOADPATH:
/home/runciter/.guix-home/profile/share/emacs/site-lisp:/home/runciter/.guix-home/profile/share/emacs/site-lisp:/home/runciter/.guix-home/profile/share/emacs/site-lisp:/home/runciter/.guix-home/profile/share/emacs/site-lisp:/gnu/store/nkvlj5jhy0apx56kl031bbr5zr59zdcs-emacs-runciter-local/share/emacs/31.0.50/lisp
  value of $LANG: en_US.utf8
  locale-coding-system: utf-8-unix

Major mode: Scheme

Minor modes in effect:
  geiser-mode: t
  geiser-autodoc-mode: t
  whitespace-mode: t
  server-mode: t
  flyspell-mode: t
  electric-pair-mode: t
  global-auto-revert-mode: t
  override-global-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  modifier-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  column-number-mode: t
  line-number-mode: t
  auto-fill-function: do-auto-fill
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  abbrev-mode: t

Load-path shadows:
None found.

Features:
(shadow sort gnus-alias advice warnings mail-extr notmuch-mua
notmuch-message notmuch-draft notmuch-tag crm notmuch-maildir-fcc
notmuch-address notmuch-company notmuch-parser notmuch-lib
notmuch-compat mm-view mml-smime smime gnutls dig emacsbug lisp-mnt
message yank-media puny dired-x dired dired-loaddefs rfc822 mml mml-sec
epa epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils misearch multi-isearch
vc-git diff-mode track-changes vc-dispatcher cus-edit cus-start cus-load
wid-edit thingatpt geiser-mode geiser-xref geiser-compile geiser-guile
tramp trampver tramp-integration files-x tramp-message tramp-compat
shell pcomplete parse-time iso8601 time-date tramp-loaddefs info-look
info transient pp pcase format-spec geiser geiser-debug geiser-repl
compile text-property-search geiser-image geiser-capf geiser-doc
geiser-menu geiser-autodoc geiser-edit etags fileloop generator xref
project geiser-completion geiser-eval geiser-connection tq geiser-syntax
geiser-log derived comint ansi-osc ansi-color geiser-popup view
geiser-impl help-fns radix-tree geiser-custom geiser-base ring
disp-table whitespace skel-scheme-runciter scheme term/tmux term/xterm
xterm server flyspell ispell auth-source-pass skel-elisp-mode-runciter
skeleton skel-config-runciter edmacro kmacro cl-extra help-mode
elec-pair autorevert filenotify use-package use-package-ensure
use-package-delight use-package-diminish use-package-bind-key bind-key
easy-mmode use-package-core guix-emacs-c-source
translate-shell-autoloads guix-emacs erc-runciter-autoloads
geiser-guile-autoloads geiser-autoloads gnus-alias-autoloads
hz2py-autoloads lang-runciter-autoloads notmuch-autoloads osm-autoloads
skel-config-runciter-autoloads ssh-config-mode-autoloads tex-autoloads
tex-site finder-inf yaml-mode-autoloads rx package browse-url xdg url
url-proxy url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs icons password-cache json
subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib
rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win
term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt
fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode
register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads inotify lcms2 dynamic-setting font-render-setting cairo xinput2
x multi-tty move-toolbar make-network-process tty-child-frames
native-compile emacs)

Memory information:
((conses 16 248818 30956) (symbols 48 18409 2) (strings 32 55618 3437)
 (string-bytes 1 1941664) (vectors 16 36004)
 (vector-slots 8 1124228 161243) (floats 8 102 8832)
 (intervals 56 1307 0) (buffers 1064 15))

-- 
Runciter




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79602; Package emacs. (Thu, 09 Oct 2025 06:05:02 GMT) Full text and rfc822 format available.

Message #8 received at 79602 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Runciter <runciter <at> whispers-vpn.org>
Cc: 79602 <at> debbugs.gnu.org
Subject: Re: bug#79602: 31.0.50;
 daemon segfault when suspending terminal client
Date: Thu, 09 Oct 2025 09:04:20 +0300
> From: Runciter <runciter <at> whispers-vpn.org>
> Date: Thu, 09 Oct 2025 02:33:14 +0800
> 
> In emacs 31.0.50 from Guix system, I get a crash when I suspend a
> terminal emacslient process.
> 
> Here's how you can presumably reproduce:
> Start an emacs daemon with 'emacs -Q --daemon'.
> Start a client from a terminal with 'emacsclient -nw'.
> Suspend the client with C-z.
> The daemon crashes with a segmentation fault.

I cannot reproduce this with today's master branch.

Please attach GDB to the running daemon, then invoke emacsclient, type
C-z, and when the daemon crashes type at the GDB prompt:

 (gdb) thread apply all bt

and post here everything that GDB produces as result.

Can anyone else reproduce this?  It might be a good idea to report
this to Guix maintainers of the Emacs distro, maybe they have
something important to say about this, since, as you say, there are
Guix-specific changes in your Emacs.

> I reproduced this with 2 relatively recent commits of the master branch:
> 9663c95 and 30c2ef6 (but modified for working with Guix, in both cases)
> It does not happen with emacs 30.2.
> For this reason and others, I don't think this is an effect of the
> long-standing GTK bug.
> 
> In GqNU Emacs 31.0.50 (build 1, x86_64-unknown-linux-gnu, cairo version
> 1.18.4)
> Windowing system distributor 'The X.Org Foundation', version 11.0.12101018
> System Description: Guix System
> 
> Configured using:
>  'configure
>  CONFIG_SHELL=/gnu/store/nnx8iifrj6jfih4sivivq17cf65aa968-bash-minimal-5.2.37/bin/bash
>  SHELL=/gnu/store/nnx8iifrj6jfih4sivivq17cf65aa968-bash-minimal-5.2.37/bin/bash
>  --prefix=/gnu/store/nkvlj5jhy0apx56kl031bbr5zr59zdcs-emacs-runciter-local
>  --enable-fast-install
>  --docdir=/gnu/store/nw3i6qgzw5b0hbhc6832dl6gwjfi90q1-emacs-runciter-local-doc/share/doc/emacs-runciter
>  --build=x86_64-unknown-linux-gnu --with-dbus=no --with-gsettings=no
>  --with-libelogind=no --with-x-toolkit=no --with-gpm=no
>  --with-selinux=no --with-modules --with-native-compilation=aot
>  'CFLAGS=-g -O2 -Wno-error=incompatible-pointer-types'
>  --disable-build-details'
> 
> Configured features:
> ACL CAIRO FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LCMS2 LIBOTF
> LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY OLDXMENU PDUMPER PNG
> RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TREE_SITTER WEBP X11 XDBE XIM
> XINERAMA XINPUT2 XPM XRANDR ZLIB
> 
> Important settings:
>   value of $EMACSLOADPATH:
> /home/runciter/.guix-home/profile/share/emacs/site-lisp:/home/runciter/.guix-home/profile/share/emacs/site-lisp:/home/runciter/.guix-home/profile/share/emacs/site-lisp:/home/runciter/.guix-home/profile/share/emacs/site-lisp:/gnu/store/nkvlj5jhy0apx56kl031bbr5zr59zdcs-emacs-runciter-local/share/emacs/31.0.50/lisp
>   value of $LANG: en_US.utf8
>   locale-coding-system: utf-8-unix




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79602; Package emacs. (Fri, 10 Oct 2025 15:28:02 GMT) Full text and rfc822 format available.

Message #11 received at 79602 <at> debbugs.gnu.org (full text, mbox):

From: Pip Cet <pipcet <at> protonmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 79602 <at> debbugs.gnu.org, Runciter <runciter <at> whispers-vpn.org>
Subject: Re: bug#79602: 31.0.50;
 daemon segfault when suspending terminal client
Date: Fri, 10 Oct 2025 15:27:18 +0000
"Eli Zaretskii" <eliz <at> gnu.org> writes:

>> From: Runciter <runciter <at> whispers-vpn.org>
>> Date: Thu, 09 Oct 2025 02:33:14 +0800
>>
>> In emacs 31.0.50 from Guix system, I get a crash when I suspend a
>> terminal emacslient process.
>>
>> Here's how you can presumably reproduce:
>> Start an emacs daemon with 'emacs -Q --daemon'.
>> Start a client from a terminal with 'emacsclient -nw'.
>> Suspend the client with C-z.
>> The daemon crashes with a segmentation fault.
>
> I cannot reproduce this with today's master branch.
>
> Please attach GDB to the running daemon, then invoke emacsclient, type
> C-z, and when the daemon crashes type at the GDB prompt:
>
>  (gdb) thread apply all bt
>
> and post here everything that GDB produces as result.
>
> Can anyone else reproduce this?  It might be a good idea to report
> this to Guix maintainers of the Emacs distro, maybe they have
> something important to say about this, since, as you say, there are
> Guix-specific changes in your Emacs.
>
>> I reproduced this with 2 relatively recent commits of the master branch:
>> 9663c95 and 30c2ef6 (but modified for working with Guix, in both cases)

Neither of those branches appear to include commit
a76506f131b2d47b0e1dc59ecd6c581e431d298c, which may have fixed the
problem.  Can you try cherry-picking that commit or using a more recent
master branch?

Pip





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79602; Package emacs. (Sat, 11 Oct 2025 01:05:02 GMT) Full text and rfc822 format available.

Message #14 received at 79602 <at> debbugs.gnu.org (full text, mbox):

From: Runciter <runciter <at> whispers-vpn.org>
To: Pip Cet <pipcet <at> protonmail.com>, Eli Zaretskii <eliz <at> gnu.org>
Cc: 79602 <at> debbugs.gnu.org
Subject: Re: bug#79602: 31.0.50; daemon segfault when suspending terminal
 client
Date: Sat, 11 Oct 2025 09:04:07 +0800
Pip Cet <pipcet <at> protonmail.com> writes:

> "Eli Zaretskii" <eliz <at> gnu.org> writes:
>
>>> From: Runciter <runciter <at> whispers-vpn.org>
>>> Date: Thu, 09 Oct 2025 02:33:14 +0800
>>>
>>> In emacs 31.0.50 from Guix system, I get a crash when I suspend a
>>> terminal emacslient process.
>>>
>>> Here's how you can presumably reproduce:
>>> Start an emacs daemon with 'emacs -Q --daemon'.
>>> Start a client from a terminal with 'emacsclient -nw'.
>>> Suspend the client with C-z.
>>> The daemon crashes with a segmentation fault.
>>
>> I cannot reproduce this with today's master branch.
>>
>> Please attach GDB to the running daemon, then invoke emacsclient, type
>> C-z, and when the daemon crashes type at the GDB prompt:
>>
>>  (gdb) thread apply all bt
>>
>> and post here everything that GDB produces as result.
>>
>> Can anyone else reproduce this?  It might be a good idea to report
>> this to Guix maintainers of the Emacs distro, maybe they have
>> something important to say about this, since, as you say, there are
>> Guix-specific changes in your Emacs.
>>
>>> I reproduced this with 2 relatively recent commits of the master branch:
>>> 9663c95 and 30c2ef6 (but modified for working with Guix, in both cases)
>
> Neither of those branches appear to include commit
> a76506f131b2d47b0e1dc59ecd6c581e431d298c, which may have fixed the
> problem.  Can you try cherry-picking that commit or using a more recent
> master branch?
>
> Pip
>
>

Indeed, that commit most probably fixed it. I have pulled to a commit
after the mentioned a76506f, and the problem is resolved now.

Thanks!

And sorry to the maintainers for the duplicate report.
You can mark as a duplicate of #78980, and close this bug.

-- 
Runciter




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 11 Oct 2025 07:09:02 GMT) Full text and rfc822 format available.

Notification sent to Runciter <runciter <at> whispers-vpn.org>:
bug acknowledged by developer. (Sat, 11 Oct 2025 07:09:02 GMT) Full text and rfc822 format available.

Message #19 received at 79602-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Runciter <runciter <at> whispers-vpn.org>
Cc: 79602-done <at> debbugs.gnu.org, pipcet <at> protonmail.com
Subject: Re: bug#79602: 31.0.50; daemon segfault when suspending terminal
 client
Date: Sat, 11 Oct 2025 10:08:24 +0300
> From: Runciter <runciter <at> whispers-vpn.org>
> Cc: 79602 <at> debbugs.gnu.org
> Date: Sat, 11 Oct 2025 09:04:07 +0800
> 
> Pip Cet <pipcet <at> protonmail.com> writes:
> 
> >>> I reproduced this with 2 relatively recent commits of the master branch:
> >>> 9663c95 and 30c2ef6 (but modified for working with Guix, in both cases)
> >
> > Neither of those branches appear to include commit
> > a76506f131b2d47b0e1dc59ecd6c581e431d298c, which may have fixed the
> > problem.  Can you try cherry-picking that commit or using a more recent
> > master branch?
> >
> > Pip
> >
> >
> 
> Indeed, that commit most probably fixed it. I have pulled to a commit
> after the mentioned a76506f, and the problem is resolved now.
> 
> Thanks!
> 
> And sorry to the maintainers for the duplicate report.
> You can mark as a duplicate of #78980, and close this bug.

Done.




This bug report was last modified 26 days ago.

Previous Next


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