Bug 171572 - Crash: When dbus connection is lost, printer-applet crashes [QSocketNotifier::setEnabled, pyqtDBusHelper::readSocket]
Summary: Crash: When dbus connection is lost, printer-applet crashes [QSocketNotifier:...
Status: RESOLVED UPSTREAM
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Jonathan Riddell
URL:
Keywords:
: 189896 200135 213176 214415 225997 227019 232934 242663 248346 256256 270062 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-24 08:17 UTC by gmud
Modified: 2012-04-14 21:24 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gmud 2008-09-24 08:17:50 UTC
Version:            (using KDE 4.1.1)
OS:                Linux
Installed from:    Ubuntu Packages

When dbus crashes or gets stopped then the running printer-applet crashes with the following bt:

Anwendung: Drucker-Miniprogramm (printer-applet), Signal SIGSEGV
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb7e198c0 (LWP 22306)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#6  0xb7aea181 in QSocketNotifier::setEnabled (this=0x867c048, enable=true)
    at kernel/qsocketnotifier.cpp:302
#7  0xb52f5274 in ?? ()
   from /var/lib/python-support/python2.5/dbus/mainloop/qt.so
#8  0xb52f58e2 in ?? ()
   from /var/lib/python-support/python2.5/dbus/mainloop/qt.so
#9  0xb7ae3f79 in QMetaObject::activate (sender=0x867c048, 
    from_signal_index=4, to_signal_index=4, argv=0xbfa6082c)
    at kernel/qobject.cpp:3016
#10 0xb7ae4642 in QMetaObject::activate (sender=0x867c048, m=0xb7bc3a90, 
    local_signal_index=0, argv=0xbfa6082c) at kernel/qobject.cpp:3086
#11 0xb7b216b3 in QSocketNotifier::activated (this=0x867c048, _t1=14)
    at .moc/release-shared/moc_qsocketnotifier.cpp:81
#12 0xb7aea60f in QSocketNotifier::event (this=0x867c048, e=0xbfa60ca0)
    at kernel/qsocketnotifier.cpp:326
#13 0xb680ff9c in QApplicationPrivate::notify_helper (this=0x8201e58, 
    receiver=0x867c048, e=0xbfa60ca0) at kernel/qapplication.cpp:3800
#14 0xb6814bf9 in QApplication::notify (this=0x8201c18, receiver=0x867c048, 
    e=0xbfa60ca0) at kernel/qapplication.cpp:3392
#15 0xb55331c3 in KApplication::notify (this=0x8201c18, receiver=0x867c048, 
    event=0xbfa60ca0)
    at /build/buildd/kde4libs-4.1.1+really4.1.1/kdeui/kernel/kapplication.cpp:311
#16 0xb5b22023 in sipKApplication::notify ()
   from /usr/lib/python2.5/site-packages/PyKDE4/kdeui.so
#17 0xb7acf0b9 in QCoreApplication::notifyInternal (this=0x8201c18, 
    receiver=0xbfa60ca0, event=0xbfa60ca0) at kernel/qcoreapplication.cpp:591
#18 0xb7afa883 in socketNotifierSourceDispatch (source=0x85e8cd0)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#19 0xb77f2dd6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#20 0xb77f6193 in ?? () from /usr/lib/libglib-2.0.so.0
#21 0xb77f674e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#22 0xb7afa9f8 in QEventDispatcherGlib::processEvents (this=0x81fff80, 
    flags=@0xbfa60de8) at kernel/qeventdispatcher_glib.cpp:325
#23 0xb68a3a25 in QGuiEventDispatcherGlib::processEvents (this=0x81fff80, 
    flags=@0xbfa60e18) at kernel/qguieventdispatcher_glib.cpp:204
#24 0xb7ace33d in QEventLoop::processEvents (this=0xbfa60e90, 
    flags=@0xbfa60e54) at kernel/qeventloop.cpp:149
#25 0xb7ace4cd in QEventLoop::exec (this=0xbfa60e90, flags=@0xbfa60e98)
    at kernel/qeventloop.cpp:200
#26 0xb7ad074d in QCoreApplication::exec () at kernel/qcoreapplication.cpp:849
#27 0xb680f897 in QApplication::exec () at kernel/qapplication.cpp:3330
#28 0xb75295c9 in ?? () from /usr/lib/python2.5/site-packages/PyQt4/QtGui.so
#29 0x080c9ab3 in PyEval_EvalFrameEx ()
#30 0x080cb1f7 in PyEval_EvalCodeEx ()
#31 0x080cb347 in PyEval_EvalCode ()
#32 0x080ea818 in PyRun_FileExFlags ()
#33 0x080eaab9 in PyRun_SimpleFileExFlags ()
#34 0x08059335 in Py_Main ()
#35 0x080587f2 in main ()
#0  0xb7fd8410 in __kernel_vsyscall ()
Comment 1 Jonathan Riddell 2008-10-06 21:31:02 UTC
I can confirm this but it's probably a pykde bug.
Comment 2 Dario Andres 2009-05-22 22:18:49 UTC
*** Bug 189896 has been marked as a duplicate of this bug. ***
Comment 3 Dario Andres 2009-07-14 15:11:09 UTC
*** Bug 200135 has been marked as a duplicate of this bug. ***
Comment 4 Johan Thelmen 2009-08-27 13:12:51 UTC
Still in Kubuntu JJ with added KDE4.3
Also added bugs.launchpad.net #171572 for current KK version

Uppdated trace from Kubuntu JJ with recompiled python-qt4 source to make sure it matches.
Application: Miniprogram for skrivare (printer-applet), signal: Segmentation fault
[KCrash Handler]
#5  QSocketNotifier::setEnabled (this=0x1dd0540, enable=true) at kernel/qsocketnotifier.cpp:292
#6  0x00007fb6077d7857 in pyqtDBusHelper::readSocket (this=0x1c46880, fd=10) at /root/dev/python-qt4-4.5.2/dbus/dbus.cpp:274
#7  0x00007fb6077d7c8f in pyqtDBusHelper::qt_metacall (this=0x1c46880, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff1bb3d4b0) at moc_helper.cpp:69
#8  0x00007fb612354ea2 in QMetaObject::activate (sender=0x1dd0540, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x7fb607a07cc1) at kernel/qobject.cpp:3113
#9  0x00007fb61238c0fe in QSocketNotifier::activated (this=0x1dd0540, _t1=10) at .moc/release-shared/moc_qsocketnotifier.cpp:83
#10 0x00007fb612359a73 in QSocketNotifier::event (this=0x1dd0540, e=0x7fff1bb3dab0) at kernel/qsocketnotifier.cpp:316
#11 0x00007fb60fe4bf4d in QApplicationPrivate::notify_helper (this=0x1a60d30, receiver=0x1dd0540, e=0x7fff1bb3dab0) at kernel/qapplication.cpp:4056
#12 0x00007fb60fe5418a in QApplication::notify (this=0x1a60c40, receiver=0x1dd0540, e=0x7fff1bb3dab0) at kernel/qapplication.cpp:4021
#13 0x00007fb60a9a871b in KApplication::notify (this=0x1a60c40, receiver=0x1dd0540, event=0x7fff1bb3dab0) at /build/buildd/kde4libs-4.3.0/kdeui/kernel/kapplication.cpp:302
#14 0x00007fb60b1d8df6 in sipKApplication::notify () from /usr/lib/python2.6/dist-packages/PyKDE4/kdeui.so
#15 0x00007fb61233f6ac in QCoreApplication::notifyInternal (this=0x1a60c40, receiver=0x1dd0540, event=0x7fff1bb3dab0) at kernel/qcoreapplication.cpp:610
#16 0x00007fb612368d09 in socketNotifierSourceDispatch (source=0x1a5c790) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#17 0x00007fb61163a20a in IA__g_main_context_dispatch (context=0x1a5b920) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:1814
#18 0x00007fb61163d8e0 in g_main_context_iterate (context=0x1a5b920, block=1, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2448
#19 0x00007fb61163da7c in IA__g_main_context_iteration (context=0x1a5b920, may_block=1) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2511
#20 0x00007fb612368a8f in QEventDispatcherGlib::processEvents (this=0x15bde00, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#21 0x00007fb60fee4bdf in QGuiEventDispatcherGlib::processEvents (this=0x1dd0540, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#22 0x00007fb61233df42 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 464772304}) at kernel/qeventloop.cpp:149
#23 0x00007fb61233e314 in QEventLoop::exec (this=0x7fff1bb3dd10, flags={i = 464772384}) at kernel/qeventloop.cpp:201
#24 0x00007fb6123405e4 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#25 0x00007fb610d7a241 in ?? () from /var/lib/python-support/python2.6/PyQt4/QtGui.so
#26 0x00000000004a2b03 in PyEval_EvalFrameEx (f=0x131c910, throwflag=<value optimized out>) at ../Python/ceval.c:3706
#27 0x00000000004a4649 in PyEval_EvalCodeEx (co=0x7fb613a42be8, globals=<value optimized out>, locals=<value optimized out>, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0,
    closure=0x0) at ../Python/ceval.c:2968
#28 0x00000000004a4762 in PyEval_EvalCode (co=0x1dd0540, globals=0x1, locals=0x7fb613713378) at ../Python/ceval.c:522
#29 0x00000000004c4c3c in PyRun_FileExFlags (fp=0x12ee590, filename=0x7fff1bb3eb9e "/usr/bin/printer-applet", start=<value optimized out>, globals=0x1295750, locals=0x1295750, closeit=1,
    flags=0x7fff1bb3e380) at ../Python/pythonrun.c:1335
#30 0x00000000004c4f6b in PyRun_SimpleFileExFlags (fp=0x12ee590, filename=0x7fff1bb3eb9e "/usr/bin/printer-applet", closeit=1, flags=0x7fff1bb3e380) at ../Python/pythonrun.c:931
#31 0x00000000004189ce in Py_Main (argc=<value optimized out>, argv=0x7fff1bb3e498) at ../Modules/main.c:599
#32 0x00007fb612b0a5a6 in __libc_start_main (main=0x417bb0 <main>, argc=2, ubp_av=0x7fff1bb3e498, init=0x54a180 <__libc_csu_init>, fini=<value optimized out>, rtld_fini=<value optimized out>,
    stack_end=0x7fff1bb3e488) at libc-start.c:220
#33 0x0000000000417ae9 in _start () at ../sysdeps/x86_64/elf/start.S:113
Comment 5 Dario Andres 2009-11-14 04:05:11 UTC
*** Bug 213176 has been marked as a duplicate of this bug. ***
Comment 6 Dario Andres 2009-11-14 04:05:18 UTC
*** Bug 214415 has been marked as a duplicate of this bug. ***
Comment 7 Jonathan Thomas 2010-02-02 21:52:44 UTC
I've seen this crash in several of our other DBus-using PyKDE4 tools, so this is probably a PyKDE bug as previously stated.
Comment 8 Jonathan Thomas 2010-02-10 21:48:12 UTC
*** Bug 225997 has been marked as a duplicate of this bug. ***
Comment 9 Dario Andres 2010-02-15 17:00:28 UTC
*** Bug 227019 has been marked as a duplicate of this bug. ***
Comment 10 Dario Andres 2010-04-03 14:13:18 UTC
*** Bug 232934 has been marked as a duplicate of this bug. ***
Comment 11 Dario Andres 2010-12-12 15:35:39 UTC
*** Bug 242663 has been marked as a duplicate of this bug. ***
Comment 12 Dario Andres 2010-12-12 15:35:48 UTC
*** Bug 248346 has been marked as a duplicate of this bug. ***
Comment 13 Dario Andres 2010-12-12 15:36:01 UTC
*** Bug 256256 has been marked as a duplicate of this bug. ***
Comment 14 Dario Andres 2011-05-01 16:54:52 UTC
*** Bug 270062 has been marked as a duplicate of this bug. ***
Comment 15 Scott Kitterman 2012-04-14 20:29:59 UTC
The is a PyQt bug that will be fixed in tonight's snapshot and in the next PyQt release.  Someone with appropriate powers should close this bug.