GNU bug report logs - #56967
29.0.50; Frequent crashes under Wayland

Previous Next

Package: emacs;

Reported by: Bjoern Bidar <bjorn.bidar <at> thaodan.de>

Date: Thu, 4 Aug 2022 07:38:01 UTC

Severity: normal

Found in version 29.0.50

Full log


View this message in rfc822 format

From: Po Lu <luangruo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 56967 <at> debbugs.gnu.org, Bjoern Bidar <bjorn.bidar <at> thaodan.de>
Subject: bug#56967: 29.0.50; Frequent crashes under Wayland
Date: Thu, 04 Aug 2022 19:49:53 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

> [Please use Reply All to reply, to keep the bug tracker on the CC.]

Indeed.  When you reply the wrong way, other people with relevant things
to say cannot respond.

>> The issue is that Emacs doesn't crash, it just exists with 1.
>> 
>> The recipe to reproduce the bug is to just use emacs and wait till it crashes.
>> 
>> I start emacs like this:
>> # /home/user/.config/systemd/user/emacs.service
>> 
>> [Unit]
>> Description=Emacs: the extensible, self-documenting text editor
>> Wants=graphical.target
>> Wants=environment.target
>> 
>> [Service]
>> Type=forking
>> ExecStart=/usr/bin/emacs --daemon
>> ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
>> Environment=SSH_AUTH_SOCK=%t/keyring/ssh
>> Environment=GDK_DPI_SCALE=2
>> Environment=GDK_SCALE=2
>> Restart=always
>> TimeoutStartSec=0
>> [Install]
>> WantedBy=default.target
>> 
>> # /home/user/.config/systemd/user/emacs.service.d/override.conf
>> [Service]
>> TimeoutStopSec=600

> Then please run Emacs under a debugger, or attach a debugger to it
> after you start it, and place a breakpoint in the function
> Fkill_emacs.  When that breakpoint breaks, produce a backtrace (with
> the "thread apply all bt" command in GDB) and post that backtrace
> here.

Please also place a breakpoint on _exit -- GDK always calls that with
the exit code 1 that when a display connection is abruptly lost, in
which case Fkill_emacs has no chance to run.

Thanks in advance.




This bug report was last modified 2 years and 184 days ago.

Previous Next


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