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 434659 - Toggle refs breaks descriptors on GObjects
Toggle refs breaks descriptors on GObjects
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: gobject
Git master
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2007-04-30 17:36 UTC by Johan (not receiving bugmail) Dahlin
Modified: 2007-04-30 17:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testcase (184 bytes, text/plain)
2007-04-30 17:37 UTC, Johan (not receiving bugmail) Dahlin
Details

Description Johan (not receiving bugmail) Dahlin 2007-04-30 17:36:42 UTC
The newly added toggle refs breaks descriptors in an interesting way.

If you define a descriptor with a __set__ function implemented and call it two times the toggle refcount will be 1 which there is an assert against inside libgobject.
Comment 1 Johan (not receiving bugmail) Dahlin 2007-04-30 17:37:49 UTC
Created attachment 87278 [details]
testcase
Comment 2 Gustavo Carneiro 2007-04-30 17:39:37 UTC
Committed revision 658.