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 608315 - Segfault when implementing dynamically declared interface
Segfault when implementing dynamically declared interface
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gobject
2.23.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2010-01-28 08:33 UTC by Andrey Tsyvarev
Modified: 2010-02-11 20:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Reproduce problem (1.59 KB, text/plain)
2010-01-28 08:33 UTC, Andrey Tsyvarev
Details

Description Andrey Tsyvarev 2010-01-28 08:33:10 UTC
Created attachment 152469 [details]
Reproduce problem

Create interface type using g_type_register_dynamic and then try to implement this interface in some type (using g_type_add_interface_static or g_type_add_interface_dynamic). Segfault.

Attached test reproduce this problem. For simplification, this test use GTypeModule type registration, but same occures when implementing GTypePlugin in some class and use object of this class in g_type_register_dynamic(). 

Moreover, plugin object isn't used at all(via use_plugin) when implementing dynamically declared interface, even prior g_type_default_interface_ref() on interface type doesn't help.

Problem appears in 2.23 version of library, previouse versions process implementation of dynamically declared interface correctly.
Comment 1 Alexey Khoroshilov 2010-02-11 19:31:59 UTC
Is this regression considered as an unimportant one?
Comment 2 Benjamin Otte (Company) 2010-02-11 20:14:15 UTC
I still haven't figured out git-bz push.
This is (or should be) fixed with http://git.gnome.org/browse/glib/commit/?id=fd3923aba2f827b47c54edc9728c953b9520fa52