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 631158 - all applications using py-gobject (w/o introspection support) crash (fix included)
all applications using py-gobject (w/o introspection support) crash (fix incl...
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: general
Git master
Other All
: Normal critical
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
: 634206 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-10-02 08:42 UTC by Jasper Lievisse Adriaanse
Modified: 2010-12-19 09:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Uncrash (461 bytes, patch)
2010-10-02 08:42 UTC, Jasper Lievisse Adriaanse
none Details | Review

Description Jasper Lievisse Adriaanse 2010-10-02 08:42:41 UTC
Created attachment 171557 [details] [review]
Uncrash 

All applications that use the latest py-gobject, iff compiled without introspection support crash. This is due to a wrong return of pygi_get_property_value().

If g-o-i is enabled, that function returns NULL or a PyGobject. If g-o-i is not enabled, it returned -1, which actually triggers a compiler warning:
../gi/pygi.h:155: warning: return makes pointer from integer without a cast

There is a full backtrace available in the rednotebook report, which shows that actually python crashes in . (https://bugs.launchpad.net/rednotebook/+bug/652006)

Attached is a patch which lets applications run again.
Comment 1 Antoine Jacoutot 2010-10-02 09:05:09 UTC
I can confirm I was seeing the same kind of crash on rhythmbox and meld and this patch fixes all.
Comment 2 johnp 2010-10-04 16:45:11 UTC
Thanks, fixed in git.
Comment 3 Kai Willadsen 2010-12-19 09:23:17 UTC
*** Bug 634206 has been marked as a duplicate of this bug. ***