Subject: bug#19282: 24.3; Emacs crashes as g_main_context_prepare() is called recursively

From: Noam Postavsky <[email-masked]>
Date: Tue, 05 Jun 2018 20:58:17 -0400

tags 19282 + moreinfo
quit

Akshay Shekher <[email-masked]> writes:

> When i start emacs normally it crashes, it works fine in no-window-system
> mode

> #19 0x00000000004b426d in ?? ()
> No symbol table info available.
> #20 0x00007ffff4e9054b in _XError () from
> /usr/lib/x86_64-linux-gnu/libX11.so.6
> No symbol table info available.
> #21 0x00007ffff4e8d5e7 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
> No symbol table info available.
> #22 0x00007ffff4e8d695 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
> No symbol table info available.
> #23 0x00007ffff4e8dfc5 in _XEventsQueued () from
> /usr/lib/x86_64-linux-gnu/libX11.so.6
> No symbol table info available.
> #24 0x00007ffff4e8012d in XPending () from
> /usr/lib/x86_64-linux-gnu/libX11.so.6
> No symbol table info available.
> #25 0x00007ffff663dc1b in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
> No symbol table info available.
> #26 0x00007ffff55f368d in g_main_context_prepare () from
> /lib/x86_64-linux-gnu/libglib-2.0.so.0
> No symbol table info available.
> #27 0x00007ffff55f3f03 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
> No symbol table info available.
> #28 0x00007ffff55f4097 in g_main_context_pending () from
> /lib/x86_64-linux-gnu/libglib-2.0.so.0
> No symbol table info available.
> #29 0x00007ffff6a43d8d in gtk_events_pending () from
> /usr/lib/x86_64-linux-gnu/libgtk-3.so.0

There's not enough info to go on here.  Can you build a newer version
with debug symbols?  Some of it looks like it could be #31547, though
behind all those "??" could easily be hiding something completely
different.

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31547
#31547 25.3; Core dump: g_main_context_prepare() called recursively from within a source's check() or prepare() member.