[Wayland-bugs] [Bug 734501] SIGTRAP when using Gtk in dbus service
gtk+ (bugzilla.gnome.org)
bugzilla at gnome.org
Sun Aug 10 05:06:52 PDT 2014
https://bugzilla.gnome.org/show_bug.cgi?id=734501
gtk+ | Backend: Wayland | unspecified
--- Comment #2 from Christopher Schramm <gnome at cschramm.eu> 2014-08-10 12:06:45 UTC ---
Wasn't easy to convince dbus to generate core dumps... :D
I could trace it down to glib. (Can you please reassign the bug? But read the
last paragraph first.). GTK+ uses g_logv as a log handler for wayland and
that's where the program crashes.
It can be replicated without dbus, python, GTK+, and root using the following
minimal program:
#include <glib.h>
int main(void) {
va_list argp;
g_logv("Domain", G_LOG_LEVEL_ERROR, "Message", argp);
}
This triggers the SIGTRAP at:
g_logv (log_domain=0x40071c "Domain", log_level=G_LOG_LEVEL_ERROR,
format=<optimized out>, args=<optimized out>)
at /tmp/buildd/glib2.0-2.40.0/./glib/gmessages.c:1038
Looking at [1] it seems like a problem with the g_log_depth private variable.
[1] https://git.gnome.org/browse/glib/tree/glib/gmessages.c?h=glib-2-40#n1038
Maybe glib needs some initialization before g_logv may be used? (Which would
make it a GTK+ bug again, since it makes invalid use of glib then.)
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Wayland-bugs
mailing list