FS#55779 - [python-gobject] Python GC destroys PyGObject with external references

Attached to Project: Arch Linux
Opened by Cedric Bellegarde (gnumdk) - Thursday, 28 September 2017, 07:56 GMT
Last edited by Jan de Groot (JGC) - Friday, 27 October 2017, 21:43 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Python garbage collector is destroying objects with external references:
- https://bugs.webkit.org/show_bug.cgi?id=177526
- https://github.com/aperezdc/webkit2gtk-python-webextension-example/issues/4

A patch is available here: https://bugzilla.gnome.org/show_bug.cgi?id=731501

Safe to apply as it just check for ref count before destroying object.

This will fix all python-gtk segfaults I see since years!
This task depends upon

Closed by  Jan de Groot (JGC)
Friday, 27 October 2017, 21:43 GMT
Reason for closing:  Fixed
Additional comments about closing:  3.26.1-1
Comment by Cedric Bellegarde (gnumdk) - Thursday, 26 October 2017, 17:11 GMT
New patch available https://bugzilla.gnome.org/show_bug.cgi?id=731501 and fix commited in master.

Loading...