[Bug 669802] New: python-gtk: Python 2.7 segfaults when warnings are turned into exceptions
https://bugzilla.novell.com/show_bug.cgi?id=669802 https://bugzilla.novell.com/show_bug.cgi?id=669802#c0 Summary: python-gtk: Python 2.7 segfaults when warnings are turned into exceptions Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: gber@opensuse.org QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 The CObject API is deprecated in Python 2.7 and therefore triggers a DeprecationWarning which is ignored by default. When turning warnings into exceptions by using the warnings module, at least in pygtk, pygobject, and pyglib assertion failures are triggered which crash the Python interpreter. Using the warnings module in this way for checking whether a DISPLAY is set is a common idiom and recommeded by upstream (see http://live.gnome.org/PyGTK/WhatsNew210) and might lead some Pygtk-based applications to crash. virt-manager seems to have been patched with a workaround and I'll add the workaround to whaawmp but this is likely to have a wider impact on other packaged and unpackaged applications. Upstream bugs: https://bugzilla.gnome.org/show_bug.cgi?id=623965 (pygtk) https://bugzilla.gnome.org/show_bug.cgi?id=626785 (pygobject) Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=669802
https://bugzilla.novell.com/show_bug.cgi?id=669802#c
Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=669802
https://bugzilla.novell.com/show_bug.cgi?id=669802#c
Jan Matejek
https://bugzilla.novell.com/show_bug.cgi?id=669802
https://bugzilla.novell.com/show_bug.cgi?id=669802#c1
Jan Matejek
https://bugzilla.novell.com/show_bug.cgi?id=669802
https://bugzilla.novell.com/show_bug.cgi?id=669802#c2
--- Comment #2 from Jan Matejek
https://bugzilla.novell.com/show_bug.cgi?id=669802
https://bugzilla.novell.com/show_bug.cgi?id=669802#c3
Jan Matejek
https://bugzilla.novell.com/show_bug.cgi?id=669802
https://bugzilla.novell.com/show_bug.cgi?id=669802#c4
Vincent Untz
import gobject import pygtk import gtk Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 40, in <module> from gtk import _gtk ImportError: could not import gobject (could not find _PyGObject_API object)
So it looks like something is wrong in the python-gobject patch. Not sure what, though. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=669802
https://bugzilla.novell.com/show_bug.cgi?id=669802#c5
Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=669802
https://bugzilla.novell.com/show_bug.cgi?id=669802#c6
--- Comment #6 from Jan Matejek
https://bugzilla.novell.com/show_bug.cgi?id=669802
https://bugzilla.novell.com/show_bug.cgi?id=669802#c7
--- Comment #7 from Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=669802
https://bugzilla.novell.com/show_bug.cgi?id=669802#c8
--- Comment #8 from Jan Matejek
participants (1)
-
bugzilla_noreply@novell.com