[PyKDE] Core Dump on Red Hat 9

Yannick Gingras yannick.gingras at savoirfairelinux.com
Fri May 9 16:59:01 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi, does anyone experienced core dumps on the last Red Hat ?

I have some really simple GUI, a QMainWindow with a QWorkspace.  I can
easily run it on a stock Mandrake 9.1 but the application core dump
when launched on a stock Red Hat 9.

Red Hat 9 ships with PyQt 3.5, Qt 3.1.1 and Python 2.2.2.

I "compiled" the dialogs with pyuic using "_" for translation.  I use
gettext with utf-8 encoded messages.

Loading the core in gdb shows the following backtrace : 

#0  0x404afa4b in QFontPrivate::textExtents(QString const&, int, int, 
QCharStruct*) () from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#1  0x404b6883 in QFontMetrics::boundingRect(QString const&, int) const ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#2  0x405d495e in QMenuBar::calculateRects(int) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#3  0x405d4e7e in QMenuBar::heightForWidth(int) const ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#4  0x41073c10 in sipQMenuBar::heightForWidth(int) const ()
   from /usr/lib/python2.2/site-packages/libqtcmodule.so
#5  0x405d3994 in QMenuBar::eventFilter(QObject*, QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#6  0x41071736 in sipQMenuBar::eventFilter(QObject*, QEvent*) ()
   from /usr/lib/python2.2/site-packages/libqtcmodule.so
#7  0x404f0dee in QObject::activate_filters(QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#8  0x404f0d11 in QObject::event(QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#9  0x40526f8c in QWidget::event(QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#10 0x405cdae2 in QMainWindow::event(QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#11 0x4107a38f in sipQMainWindow::event(QEvent*) ()
   from /usr/lib/python2.2/site-packages/libqtcmodule.so
#12 0x40494f24 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#13 0x40494b19 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#14 0x4125134b in sipQApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/python2.2/site-packages/libqtcmodule.so
#15 0x40495cba in QApplication::sendPostedEvents(QObject*, int) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#16 0x40525e44 in QWidget::show() () from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#17 0x405cd3ec in QMainWindow::show() () from 
/usr/lib/qt-3.1/lib/libqt-mt.so.3
#18 0x4107c22c in sipQMainWindow::show() ()
   from /usr/lib/python2.2/site-packages/libqtcmodule.so
#19 0x4046b05a in QWidget::showMaximized() ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#20 0x4124279a in sipQWidget::sipEmit_destroyed(_object*) ()
   from /usr/lib/python2.2/site-packages/libqtcmodule.so
[...]

The core is dumped at the moment I call show() on any dialog.

I have not tried to recompile PyQt, we'd like our app to run on a
stock Red Hat...

   : \

I'm a bit clueless on the nature of the problem but I'm willing to do more 
research on this one if I receive pointers.

Thanks.

- -- 
Yannick Gingras
Byte Gardener, Savoir-faire Linux inc.
(514) 276-5468

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+u8Iwrhy5Fqn/MRARAsATAJ9pZ6D6fNL2+J5k5fr2S2bintlmAACfY+J7
SWE3Xqnir8R1/u0nj2IKXI4=
=tbxL
-----END PGP SIGNATURE-----




More information about the PyQt mailing list