Bug 71013 - Raising exceptions results in garbage objects
Summary: Raising exceptions results in garbage objects
Status: RESOLVED MOVED
Alias: None
Product: dbus
Classification: Unclassified
Component: python (show other bugs)
Version: 1.2.x
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Simon McVittie
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-29 17:39 UTC by Thomas Woerner
Modified: 2018-08-22 22:05 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
example tar archive with mechanism.py and test.py (10.00 KB, application/x-tar)
2013-10-29 17:39 UTC, Thomas Woerner
Details

Description Thomas Woerner 2013-10-29 17:39:27 UTC
Created attachment 88317 [details]
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:
1. yum install python3-dbus
2. Extract example tar archive as root
3. cd example
4. make install
5. python3 mechanism.py
6. 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.
Comment 1 GitLab Migration User 2018-08-22 22:05:30 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/dbus/dbus-python/issues/18.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.