GNU bug report logs -
#56967
29.0.50; Frequent crashes under Wayland
Previous Next
Full log
Message #23 received at 56967 <at> debbugs.gnu.org (full text, mbox):
Bjoern Bidar <bjorn.bidar <at> thaodan.de> writes:
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>> > 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.
>
> Started emacs via systemd as and set both break points as asked.
>
> There you go:
>
>
> Thread 1 "emacs" hit Breakpoint 2, __GI__exit (status=status <at> entry=1) at ../
> sysdeps/unix/sysv/linux/_exit.c:27
> 27 {
> (gdb) bt
> #0 __GI__exit (status=status <at> entry=1) at ../sysdeps/unix/sysv/linux/_exit.c:
> 27
> #1 0x00007fdac9c825ae in gdk_event_source_check
> (base=base <at> entry=0x5626b0eb7770) at ../gtk/gdk/wayland/gdkeventsource.c:97
> #2 0x00007fdac962411f in g_main_context_check (context=0x5626b71d9be0,
> max_priority=2147483647, fds=<optimized out>, n_fds=<optimized out>) at ../
> glib/glib/gmain.c:4035
> #3 0x00007fdac9679e5e in g_main_context_iterate.constprop.0
> (context=context <at> entry=0x5626b71d9be0, block=block <at> entry=0,
> dispatch=dispatch <at> entry=0, self=<optimized out>) at ../glib/glib/gmain.c:4208
> #4 0x00007fdac962132d in g_main_context_pending (context=0x5626b71d9be0) at
> ../glib/glib/gmain.c:4241
> #5 0x00005626ab4f3bd2 in pgtk_read_socket.lto_priv ()
That's what I thought might be happening. Emacs calls
g_main_context_pending to read events from GDK, which notices that the
display connection has been abruptly terminated, and calls _exit to
abort.
Unfortunately, there's no way for us to fix this inside Emacs, so I
guess you should look into why Wayland display connections are so
unstable on your system.
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.