segfault when creating kfile.KURLRequester object

Bug #57798 reported by Robert Day
4
Affects Status Importance Assigned to Milestone
Ichthux
Invalid
Undecided
Unassigned
kdelibs (Ubuntu)
Won't Fix
Low
Unassigned

Bug Description

Binary package hint: python2.4-kde3

The attached program kde-crash.py segfaults as such (Kubuntu 6.06, kde 3.5.2, python 2.4.3, python2.4-kde3 3.15.1+snapshot20060118-0ubuntu):

rday@aramis:~/ichthux/willowng$ python -v kde-crash.py
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/lib/python2.4/site.pyc matches /usr/lib/python2.4/site.py
import site # precompiled from /usr/lib/python2.4/site.pyc
# /usr/lib/python2.4/os.pyc matches /usr/lib/python2.4/os.py
import os # precompiled from /usr/lib/python2.4/os.pyc
import posix # builtin
# /usr/lib/python2.4/posixpath.pyc matches /usr/lib/python2.4/posixpath.py
import posixpath # precompiled from /usr/lib/python2.4/posixpath.pyc
# /usr/lib/python2.4/stat.pyc matches /usr/lib/python2.4/stat.py
import stat # precompiled from /usr/lib/python2.4/stat.pyc
# /usr/lib/python2.4/UserDict.pyc matches /usr/lib/python2.4/UserDict.py
import UserDict # precompiled from /usr/lib/python2.4/UserDict.pyc
# /usr/lib/python2.4/copy_reg.pyc matches /usr/lib/python2.4/copy_reg.py
import copy_reg # precompiled from /usr/lib/python2.4/copy_reg.pyc
# /usr/lib/python2.4/types.pyc matches /usr/lib/python2.4/types.py
import types # precompiled from /usr/lib/python2.4/types.pyc
# /usr/lib/python2.4/warnings.pyc matches /usr/lib/python2.4/warnings.py
import warnings # precompiled from /usr/lib/python2.4/warnings.pyc
# /usr/lib/python2.4/linecache.pyc matches /usr/lib/python2.4/linecache.py
import linecache # precompiled from /usr/lib/python2.4/linecache.pyc
import encodings # directory /usr/lib/python2.4/encodings
# /usr/lib/python2.4/encodings/__init__.pyc matches /usr/lib/python2.4/encodings/__init__.py
import encodings # precompiled from /usr/lib/python2.4/encodings/__init__.pyc
# /usr/lib/python2.4/codecs.pyc matches /usr/lib/python2.4/codecs.py
import codecs # precompiled from /usr/lib/python2.4/codecs.pyc
import _codecs # builtin
# /usr/lib/python2.4/encodings/aliases.pyc matches /usr/lib/python2.4/encodings/aliases.py
import encodings.aliases # precompiled from /usr/lib/python2.4/encodings/aliases.pyc
# /usr/lib/python2.4/encodings/utf_8.pyc matches /usr/lib/python2.4/encodings/utf_8.py
import encodings.utf_8 # precompiled from /usr/lib/python2.4/encodings/utf_8.pyc
Python 2.4.3 (#2, Apr 27 2006, 14:43:58)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/usr/lib/python2.4/site-packages/qt.so", 2);
dlopen("/usr/lib/python2.4/site-packages/sip.so", 2);
import sip # dynamically loaded from /usr/lib/python2.4/site-packages/sip.so
import qt # dynamically loaded from /usr/lib/python2.4/site-packages/qt.so
dlopen("/usr/lib/python2.4/site-packages/kfile.so", 2);
dlopen("/usr/lib/python2.4/site-packages/qtxml.so", 2);
import qtxml # dynamically loaded from /usr/lib/python2.4/site-packages/qtxml.so
dlopen("/usr/lib/python2.4/site-packages/dcop.so", 2);
import dcop # dynamically loaded from /usr/lib/python2.4/site-packages/dcop.so
dlopen("/usr/lib/python2.4/site-packages/kdecore.so", 2);
import kdecore # dynamically loaded from /usr/lib/python2.4/site-packages/kdecore.so
dlopen("/usr/lib/python2.4/site-packages/kdefx.so", 2);
import kdefx # dynamically loaded from /usr/lib/python2.4/site-packages/kdefx.so
dlopen("/usr/lib/python2.4/site-packages/kdeui.so", 2);
import kdeui # dynamically loaded from /usr/lib/python2.4/site-packages/kdeui.so
dlopen("/usr/lib/python2.4/site-packages/kio.so", 2);
import kio # dynamically loaded from /usr/lib/python2.4/site-packages/kio.so
import kfile # dynamically loaded from /usr/lib/python2.4/site-packages/kfile.so
X Error: BadDevice, invalid or uninitialized input device 154
  Major opcode: 143
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 154
  Major opcode: 143
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
Segmentation fault

Expected behaviour: it should either create a KURLRequester object or, if the method of calling it is wrong, provide information as to how.

It doesn't seem to be a general problem with kfile.so, as creating other objects from that module such as KFileIconView works as expected.

This problem has occurred on both my laptop and my desktop machine.

Revision history for this message
Robert Day (rkd) wrote :
Revision history for this message
Raphaël Pinson (raphink) wrote :

Confirmed on Dapper and Edgy.

Changed in python-kde3:
status: Unconfirmed → Confirmed
Revision history for this message
Jonathan Riddell (jr) wrote :

It shouldn't crash of course but you will need a KApplication when using any KDE classes.

Revision history for this message
Matthias Klose (doko) wrote :

reassigning to kdelibs4. Apparently, it's a programming error, which leads to crash in the kde core libraries.

Daniel Hahler (blueyed)
Changed in kdelibs:
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
Jonathan Jesse (jjesse) wrote :

Currently development has stalled on Ichthux and no new version are being released.

Marking this bug as invalid as because it exists in icthux but the problem exists in KDE, not ichthux

Changed in ichthux:
status: New → Invalid
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

The KDE3 kdelibs are no longer maintained, so this crash probably won't be fixed.

Changed in kdelibs (Ubuntu):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.