I decided to build Liferea over the weekend, and the build crashes at the introspection phase.
Apparently, GTK+ programs are set up to introspect themselves: basically the binary can look at its own types or whatnot, then output the result. I'm not quite clear what the purpose of that is, the online docs imply that it's for API documentation mostly. Anyhow, the build runs the liferea binary itself, with arguments that make it run the introspection, then this happens:
(gdb) where #0 0x00007fa90a2a93b0 in wl_list_insert_list () at /lib64/libwayland-server.so.0 #1 0x00007fa90a2a4e6f in wl_priv_signal_emit () at /lib64/libwayland-server.so.0 #2 0x00007fa90a2a5477 in wl_display_destroy () at /lib64/libwayland-server.so.0 #3 0x00007fa916d163d9 in \ WebCore::PlatformDisplayWayland::~PlatformDisplayWayland() () at \ /lib64/libwebkit2gtk-4.0.so.37 #4 0x00007fa916d163e9 in \ WebCore::PlatformDisplayWayland::~PlatformDisplayWayland() () at \ /lib64/libwebkit2gtk-4.0.so.37 #5 0x00007fa91100cb58 in __run_exit_handlers () at /lib64/libc.so.6 #6 0x00007fa91100cbaa in () at /lib64/libc.so.6 #7 0x00007fa911e9d367 in () at /lib64/libgirepository-1.0.so.1 #8 0x00007fa91197d188 in parse_arg.isra () at /lib64/libglib-2.0.so.0 #9 0x00007fa91197d8ca in parse_long_option () at /lib64/libglib-2.0.so.0 #10 0x00007fa91197f2d6 in g_option_context_parse () at \ /lib64/libglib-2.0.so.0 #11 0x00007fa91197fd84 in g_option_context_parse_strv () at /lib64/libglib-2.0.so.0 #12 0x00007fa912164558 in g_application_real_local_command_line () at /lib64/libgio-2.0.so.0 #13 0x00007fa912164bf6 in g_application_run () at /lib64/libgio-2.0.so.0 #14 0x000000000041b9ff in main (argc=2, argv=0x7fff2e1203d8) at main.c:77
As much as I can tell, despite being asked only to do the introspection, Liferea (unknowingly, through GTK+) pokes Wayland, which sets exit handlers. However, Wayland is never used (introspection, duh), and not initialized completely, so when its exit handlers run, it crashes.
Well, now what?
I supplse the cleanest approach might be to modify Glib so it avoids provoking Wayland when merely introspecting. But honestly I have no clue about desktop apps and do not know where to even start looking.
UPDATE: Much thanks to Branko Grubic, who pointed me to a bug in WebKit. Currently building with this as a workaround:
--- a/src/Makefile.am +++ b/src/Makefile.am @@ -82,6 +82,7 @@ INTROSPECTION_GIRS = Liferea-3.0.gir Liferea-3.0.gir: liferea$(EXEEXT) INTROSPECTION_SCANNER_ARGS = -I$(top_srcdir)/src --warn-all -...... +INTROSPECTION_SCANNER_ENV = WEBKIT_DISABLE_COMPOSITING_MODE=1 Liferea_3_0_gir_NAMESPACE = Liferea Liferea_3_0_gir_VERSION = 3.0 Liferea_3_0_gir_PROGRAM = $(builddir)/liferea$(EXEEXT)