Pete Zaitcev (zaitcev) wrote,
Pete Zaitcev

Wayland versus Glib in Liferea on F27

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/
#1  0x00007fa90a2a4e6f in wl_priv_signal_emit ()
    at /lib64/
#2  0x00007fa90a2a5477 in wl_display_destroy ()
    at /lib64/
#3  0x00007fa916d163d9 in \
  WebCore::PlatformDisplayWayland::~PlatformDisplayWayland() () at \
#4  0x00007fa916d163e9 in \
  WebCore::PlatformDisplayWayland::~PlatformDisplayWayland() () at \
#5  0x00007fa91100cb58 in __run_exit_handlers () at /lib64/
#6  0x00007fa91100cbaa in  () at /lib64/
#7  0x00007fa911e9d367 in  () at /lib64/
#8  0x00007fa91197d188 in parse_arg.isra () at /lib64/
#9  0x00007fa91197d8ca in parse_long_option () at /lib64/
#10 0x00007fa91197f2d6 in g_option_context_parse () at \
#11 0x00007fa91197fd84 in g_option_context_parse_strv ()
    at /lib64/
#12 0x00007fa912164558 in g_application_real_local_command_line ()
    at /lib64/
#13 0x00007fa912164bf6 in g_application_run () at /lib64/
#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/
+++ b/src/
@@ -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 -......
 Liferea_3_0_gir_NAMESPACE = Liferea
 Liferea_3_0_gir_VERSION = 3.0
 Liferea_3_0_gir_PROGRAM = $(builddir)/liferea$(EXEEXT)

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment