Summary: | check for exceptions every time we release the GIL in a GLib callback | ||
---|---|---|---|
Product: | dbus | Reporter: | Simon McVittie <smcv> |
Component: | python | Assignee: | Simon McVittie <smcv> |
Status: | RESOLVED MOVED | QA Contact: | |
Severity: | minor | ||
Priority: | low | CC: | alban.crequy |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Simon McVittie
2007-02-15 04:00:31 UTC
Partially fixed in git by adding a try/except around user code. The proper fix would be to check for exceptions each time we manipulate the interpreter/stack/GIL state in C, too. Mass reopen. The "LATER" resolution is lame, I'm deleting it. Consider LATER to have arrived. (In reply to comment #1) > Partially fixed in git by adding a try/except around user code. Is it this code? dbus-python/dbus/connection.py: def maybe_handle_message(self, message): ... except: # basicConfig is a no-op if logging is already configured logging.basicConfig() _logger.error('Exception in handler for D-Bus signal:', exc_info=1) Yes. There might be other places where a GLib mainloop callback calls into Python; they would need similar logging, or preferably, the equivalent in C code as described in Comment #1. -- 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/17. |
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.