[PyKDE] Crash on exit

Jan Ekholm chakie at infa.abo.fi
Thu Mar 8 10:23:29 GMT 2001


Hi all,

I'm new to this list, so excuse me if this has been discussed before. I
looked through the archives but did not find anything about this issue.

Started using PyQT yesterday, and it all works just fine. The samples run
without any problems and my own programs work quite ok too. I do get a
segmentation fault every time I exit the program, is this some known
error?

% ./myapp.py
Fatal Python error: PyThreadState_Get: no current thread
Aborted (core dumped)
%

The application works ok up to the point when it is terminated.

I have:

	* RedHat 6.2
	* sip 2.3
	* PyQt 2.3
	* Qt 2.2.1
	* BeOpen-Python-2.0-1

I do have the stack trace too that the core generates, and it seems to die
deep down when destroying Qt and sip objects. The top of it is:

#0  0x400a34e1 in __kill ()
#1  0x400591eb in raise (sig=6) at signals.c:64
#2  0x400a4868 in abort () at ../sysdeps/generic/abort.c:88
#3  0x8068e5a in Py_FatalError () at pythonrun.c:1062
#4  0x8067520 in PyThreadState_Get () at pystate.c:190
#5  0x805f6d3 in PyErr_Fetch (p_type=0xbfffe9c4, p_value=0xbfffe9c8,
p_traceback=0xbfffe9cc) at errors.c:204
#6  0x8071d55 in instance_dealloc (inst=0x8466dfc) at classobject.c:513
#7  0x4068cba2 in sipCommonDtor ()
#8  0x404b9af7 in sipQListViewItem::~sipQListViewItem ()
#9  0x408e35dc in QListViewItem::~QListViewItem ()
#10 0x404b9b04 in sipQListViewItem::~sipQListViewItem ()
#11 0x408e35dc in QListViewItem::~QListViewItem ()
#12 0x40a59313 in QListViewPrivate::Root::~Root ()
#13 0x408e65ad in QListView::~QListView ()
#14 0x404ab308 in sipQListView::~sipQListView ()
#15 0x40898224 in QWidget::~QWidget ()
#16 0x4093af75 in QSplitter::~QSplitter ()
#17 0x403ff668 in sipQSplitter::~sipQSplitter ()
#18 0x40898224 in QWidget::~QWidget ()
#19 0x408f7096 in QMainWindow::~QMainWindow ()
#20 0x404a1869 in sipQMainWindow::~sipQMainWindow ()
#21 0x4089bc79 in QWidget::close ()
#22 0x404a3596 in sipQMainWindow::close ()
#23 0x407c72cb in QETWidget::translateCloseEvent ()
#24 0x407c20f0 in QApplication::x11ClientMessage ()
#25 0x407c2aae in QApplication::x11ProcessEvent ()
#26 0x407c1961 in QApplication::processNextEvent ()
#27 0x407f6a5f in QApplication::enter_loop ()
#28 0x407c18db in QApplication::exec ()
#29 0x405fb8be in sipDo_QApplication_exec_loop ()

There is more too, but that seems to be from Python itself. Any hints?

Apart from this problem (probably I do something wrong somewhere) I'm very
impressed with PyQt and sip. The speed and ease of use are really good.
A big "thank you" to those responsible for these marvelous tools!

Regards, 
    Chakie

--------------------+--------------------------------------------------------
Jan 'Chakie' Ekholm |     Balrog New Media    http://www.balrog.fi/
   Linux Inside     | I'm the blue screen of death, nobody hears your screams





More information about the PyQt mailing list