Bug 651596 - [abrt] hplip-gui-3.10.9-4.fc14: setup_context: Process /usr/bin/python was killed by signal 11 (SIGSEGV)
Summary: [abrt] hplip-gui-3.10.9-4.fc14: setup_context: Process /usr/bin/python was ki...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: pygobject2
Version: 14
Hardware: x86_64
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Colin Walters
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ec882a69748c501cc67122e0d94...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-09 21:22 UTC by Robert Swain
Modified: 2012-08-16 21:21 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-08-16 21:21:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (49.58 KB, text/plain)
2010-11-09 21:22 UTC, Robert Swain
no flags Details

Description Robert Swain 2010-11-09 21:22:17 UTC
abrt version: 1.1.13
architecture: x86_64
Attached file: backtrace
cmdline: python /usr/bin/hp-systray --force-startup
comment: The printer had been turned off and disconnected for some hours and the laptop suspended and resumed twice. I don't know why something to do with hplip would crash at this point in time.
component: hplip
crash_function: setup_context
executable: /usr/bin/python
kernel: 2.6.35.6-48.fc14.x86_64
package: hplip-gui-3.10.9-4.fc14
rating: 4
reason: Process /usr/bin/python was killed by signal 11 (SIGSEGV)
release: Fedora release 14 (Laughlin)
How to reproduce: 1. Changed the GTK theme.
time: 1289336641
uid: 500

Comment 1 Robert Swain 2010-11-09 21:22:20 UTC
Created attachment 459255 [details]
File: backtrace

Comment 2 Jiri Popelka 2010-11-10 14:02:41 UTC
Not sure what's wrong here,
there are many <optimized out> values in the backtrace.
Could be a Python interpreter problem or some GTK theme issue.

Changing component in case the Python maintainer
has more insight into how this could happen.

Comment 3 Robert Swain 2010-11-10 14:17:29 UTC
I was playing around with GTK Themes at the time that it happened, but I didn't think that was relevant. Apologies for not mentioning it.

Comment 4 Dave Malcolm 2010-11-10 17:04:32 UTC
Thank you for reporting this bug, and for mentioning the theme change: the latter seems to be significant.

How reproducible is this problem?  If you run the program from a terminal, is an error message printed?

What is the output of running the following command?
  rpm -q gtk2 pygtk2 pygobject2

Looking at the backtrace, it looks like the problem occurred in thread #1, whilst attempting to log the message:
    Unable to locate theme engine in module_path: "aurora",
(as per frame #3)

Frame #13 indicates it was parsing "/home/rob/.themes/Neon/gtk-2.0/gtkrc"

The SIGSEGV happened at /usr/src/debug/Python-2.7/Python/_warnings.c:449, which is:
    PyFrameObject *f = PyThreadState_GET()->frame;

My hunch here is that we don't have the GIL at this point, and this leads to the segfault.

pygobject2 has pygobject-2.21.5/gobject/gobjectmodule.c:
  _log_func(const gchar *log_domain,

    if (G_LIKELY(Py_IsInitialized()))
    {
	PyGILState_STATE state;
	PyObject* warning = user_data;

	state = pyglib_gil_state_ensure();
	PyErr_Warn(warning, (char *) message); <<<< This is frame #3 of thread #1, where state = PyGILState_LOCKED
	pyglib_gil_state_release(state);
    } else
        g_log_default_handler(log_domain, log_level, message, user_data);

and in pygobject-2.21.5/glib/pyglib.c:
    PyGILState_STATE
    pyglib_gil_state_ensure(void)
    {
        g_return_val_if_fail (_PyGLib_API != NULL, PyGILState_LOCKED);
    
        if (!_PyGLib_API->threads_enabled)
       	    return PyGILState_LOCKED;
    
        return PyGILState_Ensure();
    }

so pygobject2 seems to have a boolean: "threads_enabled", and seems to only bother claiming the GIL if pyglib_enable_threads has been called, if I'm reading this right.

Reassigning component from "python" to "pygobject2";  hopefully the pygobject2 maintainer will be able to figure this out further or reassign as necessary.

(also looks a little like bug 551371)

Comment 5 Fedora End Of Life 2012-08-16 21:21:14 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.