After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 621771 - SIGSEGV in nspluginscan due to uninitialized gthread
SIGSEGV in nspluginscan due to uninitialized gthread
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: Browser plugin (obsolete)
2.30.x
Other Linux
: Normal normal
: ---
Assigned To: totem-browser-maint
totem-browser-maint
: 634934 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-06-16 12:25 UTC by Martin von Gagern
Modified: 2010-11-16 13:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Initialise the GType system when called into (1.22 KB, patch)
2010-06-16 13:52 UTC, Bastien Nocera
committed Details | Review

Description Martin von Gagern 2010-06-16 12:25:46 UTC
As described in bug #606775, recent glib releases (2.24.1 in my case) rely on the gthread subsystem being initialized in gio and gobject. This assumption doesn't necessarily hold for the totem ns browser plugin, causing nspluginscan from KDE 3.5 to crash with a SIGSEGV. The core reason is that aquiring a lock in g_content_type_get_description results in a NULL function call. Detailed information about this crash can also be found in https://bugs.gentoo.org/324237 .

I believe that it is now the responsibility of the totem plugin library to ensure that the gthread library is properly initialized before gio functions are called. The application loading the plugin might not have done so.
Comment 1 Bastien Nocera 2010-06-16 13:52:25 UTC
Created attachment 163824 [details] [review]
Initialise the GType system when called into

Add calls to g_type_init() in the plugin entry points so that
GThread is initialised if not already, so that GIO calls work
as expected.

Note that this requires GLib 2.24 to work properly, so only
done in master (gnome-2-30 depends on GLib 2.22)
Comment 2 Bastien Nocera 2010-06-16 13:52:49 UTC
Attachment 163824 [details] pushed as dc894da - Initialise the GType system when called into
Comment 3 Christian Persch 2010-11-16 13:00:20 UTC
*** Bug 634934 has been marked as a duplicate of this bug. ***