Raising exceptions results in garbage objects
Submitted by Thomas Woerner
Assigned to Simon McVittie
Description
Created attachment 88317 example tar archive with mechanism.py and test.py
This is a clone of the Fedora bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=1023985
Description of problem: python3 gc finds garbage objects if Exceptions are used in the mechanism.
Version-Release number of selected component (if applicable): python3-dbus-1.1.1-5.fc19.x86_64
How reproducible: Always
Steps to Reproduce:
- yum install python3-dbus
- Extract example tar archive as root
- cd example
- make install
- python3 mechanism.py
- Open another root-shell, got to the example directory: python3 test.py
Actual results: Garbage objects
Expected results: No garbage objects
Additional info: This is not a problem if using python2.
Comment 1 Thomas Woerner 2013-10-28 10:02:46 EDT
There seems to be a race condition somewhere. The test.py script just calls the raise_exception method in ExampleObject several times.
Comment 2 Thomas Woerner 2013-10-28 10:20:39 EDT
The example bases on the examples from python-slip, but without polkit and python-slip support.
Thomas Woerner 2013-10-28 10:38:45 EDT Blocks: 1014548 Nils Philippsen 2013-10-28 10:44:14 EDT Blocks: 1014209
Comment 3 Thomas Woerner 2013-10-28 10:45:11 EDT
This is also a problem in Fedora 20.
Comment 4 Rex Dieter 2013-10-28 11:50:22 EDT
Mind testing https://admin.fedoraproject.org/updates/dbus-python-1.2.0-1.fc20 ?
If that helps here, can consider doing a f19 update too.
Comment 5 Thomas Woerner 2013-10-28 12:25:40 EDT
I updated to this version in my Fedora-19 installation and the problem is still there.
Comment 6 Rex Dieter 2013-10-28 13:26:28 EDT
OK, thanks. :(
Mind poking upstream?
https://bugs.freedesktop.org/enter_bug.cgi?product=dbus
against 'python' component.
Attachment 88317, "example tar archive with mechanism.py and test.py":
example.tar
Version: 1.2.x