Hello to everyone,
for the last few weeks, I've randomly encountered what I assume is a bug in 
Konqueror: I'd like to fix it, because it's rather annoying, but I don't know 
how to debug it to find its cause.

The issue is that sometimes Konqueror completely freezes: none of its windows 
respond to mouse or keyboard. The only way to go on is to kill it. It's not a 
frequent issue: it usually happens once a day or so. Once it has happened, 
however, it's likely to happen again in a short time.

I attach a backtrace by attaching gdb to the Konqueror instance once the 
freeze happens. As you can see, it contains almost nothing from Konqueror 
itself: just two calls near the bottom, the last of which is a call to 
QApplication::exec(). All other function calls are either inside KDE 
Frameworks or Qt: I'd almost think this is not a problem with Konqueror if it 
were not for the fact that I'm only experiencing the issue with Konqueror.

Given the randomness of the freezes and the fact that the backtrace contains 
almost no Konqueror-specific calls, I really have no ideas on how to proceed to 
debug the issue, and I really don't even know what to search on the web. Do 
you have any advice?

Thanks in advance

Stefano

#0  0x00007f624dbfaff2 in __syscall_cancel_arch () at /lib64/libc.so.6
#1  0x00007f624dbef9a8 in __internal_syscall_cancel () at /lib64/libc.so.6
#2  0x00007f624dbef9f1 in __syscall_cancel () at /lib64/libc.so.6
#3  0x00007f624dc6724a in poll () at /lib64/libc.so.6
#4  0x00007f624b4ab49a in _xcb_conn_wait () at /usr/lib64/libxcb.so.1
#5  0x00007f624b4ad962 in xcb_wait_for_special_event () at 
/usr/lib64/libxcb.so.1
#6  0x00007f61fe63a398 in dri3_wait_for_event_locked () at 
/usr/lib64/libgallium-26.1.4.so
#7  0x00007f61fe63c62a in loader_dri3_swap_buffers_msc () at 
/usr/lib64/libgallium-26.1.4.so
#8  0x00007f621c6ca875 in dri3_swap_buffers () at /usr/lib64/libGLX_mesa.so.0
#9  0x00007f621c6bb419 in glXSwapBuffers () at /usr/lib64/libGLX_mesa.so.0
#10 0x00007f623c069891 in QGLXContext::swapBuffers (this=0x55f981407430, 
surface=0x55f981fc0180) at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp:549
#11 0x00007f624f2a3cac in QRhiGles2::endFrame (this=0x55f989bb8ca0, 
swapChain=0x55f97f7b0dc0, flags=...) at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/gui/rhi/qrhigles2.cpp:2382
#12 0x00007f624f119d11 in QRhi::endFrame (this=this@entry=0x55f989bbb980, 
swapChain=0x55f97f7b0dc0, flags=..., flags@entry=...) at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/gui/rhi/qrhi.cpp:11600
#13 0x00007f624ef8023e in QBackingStoreDefaultCompositor::flush
    (this=this@entry=0x55f981dbaed8, 
backingStore=backingStore@entry=0x55f988e69660, rhi=0x55f989bbb980, 
swapchain=<optimized out>, window=window@entry=0x55f97f1cad80, 
sourceDevicePixelRatio=sourceDevicePixelRatio@entry=1, region=..., offset=..., 
textures=<optimized out>, translucentBackground=false, 
sourceTransformFactor=<optimized out>, sourceTransformFactor@entry=0) at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/gui/painting/qbackingstoredefaultcompositor.cpp:685
#14 0x00007f624f0c9d51 in QPlatformBackingStore::rhiFlush
    (this=this@entry=0x55f988e69660, window=window@entry=0x55f97f1cad80, 
sourceDevicePixelRatio=sourceDevicePixelRatio@entry=1, region=..., offset=..., 
textures=textures@entry=0x55f98327f510, 
translucentBackground=translucentBackground@entry=false, 
sourceTransformFactor=0) at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/gui/painting/qplatformbackingstore.cpp:220
#15 0x00007f6245dfad17 in QXcbBackingStore::rhiFlush (this=0x55f988e69660, 
window=0x55f97f1cad80, sourceDevicePixelRatio=1, region=..., offset=..., 
textures=0x55f98327f510, translucentBackground=false, sourceTransformFactor=0)
    at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/plugins/platforms/xcb/qxcbbackingstore.cpp:882
#16 QXcbBackingStore::rhiFlush (this=0x55f988e69660, window=0x55f97f1cad80, 
sourceDevicePixelRatio=1, region=..., offset=..., textures=0x55f98327f510, 
translucentBackground=false, sourceTransformFactor=0)
    at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/plugins/platforms/xcb/qxcbbackingstore.cpp:869
#17 0x00007f624fd4f5c5 in QWidgetRepaintManager::flush 
(this=this@entry=0x55f989b390b0, widget=0x55f97f1263e0, region=..., 
widgetTextures=widgetTextures@entry=0x55f98327f510)
    at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/widgets/kernel/qwidgetrepaintmanager.cpp:1074
#18 0x00007f624fd4fd6a in QWidgetRepaintManager::flush (this=0x55f989b390b0) at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/widgets/kernel/qwidgetrepaintmanager.cpp:995
#19 0x00007f624fd72c51 in QWidgetRepaintManager::paintAndFlush 
(this=0x55f989b390b0) at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/widgets/kernel/qwidgetrepaintmanager.cpp:846
#20 0x00007f624fd8fd1b in QWidget::event (this=0x55f97f1263e0, 
event=event@entry=0x7f623804ea80) at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/widgets/kernel/qwidget.cpp:9353
#21 0x00007f624fbb42f5 in QMainWindow::event (this=this@entry=0x55f97f1263e0, 
event=event@entry=0x7f623804ea80) at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/widgets/widgets/qmainwindow.cpp:1269
#22 0x00007f62506e66e3 in KMainWindow::event (this=this@entry=0x55f97f1263e0, 
ev=ev@entry=0x7f623804ea80) at 
/usr/src/debug/kde-frameworks/kxmlgui-6.27.0/kxmlgui-6.27.0/src/kmainwindow.cpp:909
#23 0x00007f625073a7bf in KXmlGuiWindow::event (this=0x55f97f1263e0, 
ev=0x7f623804ea80) at 
/usr/src/debug/kde-frameworks/kxmlgui-6.27.0/kxmlgui-6.27.0/src/kxmlguiwindow.cpp:265
#24 0x00007f624fd7e78f in QApplicationPrivate::notify_helper (this=<optimized 
out>, receiver=0x55f97f1263e0, e=0x7f623804ea80) at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/widgets/kernel/qapplication.cpp:3276
#25 0x00007f624e497c08 in QCoreApplication::notifyInternal2 
(receiver=0x55f97f1263e0, event=event@entry=0x7f623804ea80) at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/corelib/kernel/qcoreapplication.cpp:1114
#26 0x00007f624e4b505c in QCoreApplication::sendEvent (receiver=<optimized 
out>, event=0x7f623804ea80) at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/corelib/kernel/qcoreapplication.cpp:1559
#27 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, 
data=0x55f945ade750) at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/corelib/kernel/qcoreapplication.cpp:1914
#28 0x00007f624e1ebd67 in postEventSourceDispatch (s=0x55f945b12880) at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/corelib/kernel/qeventdispatcher_glib.cpp:248
#29 0x00007f624c0008f3 in g_main_dispatch () at /usr/lib64/libglib-2.0.so.0
#30 0x00007f624c00411f in g_main_context_iterate_unlocked.isra () at 
/usr/lib64/libglib-2.0.so.0
#31 0x00007f624c004940 in g_main_context_iteration () at 
/usr/lib64/libglib-2.0.so.0
#32 0x00007f624e1ebde8 in QEventDispatcherGlib::processEvents 
(this=0x55f945c2ce30, flags=...) at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/corelib/kernel/qeventdispatcher_glib.cpp:402
#33 0x00007f624e4b93ea in QEventLoop::exec (this=this@entry=0x7ffea55d3f70, 
flags=..., flags@entry=...) at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/corelib/global/qflags.h:78
#34 0x00007f624e4b95a2 in QCoreApplication::exec () at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/corelib/kernel/qcoreapplication.cpp:1457
#35 0x00007f624eee4850 in QGuiApplication::exec () at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/gui/kernel/qguiapplication.cpp:2005
#36 0x00007f624fcf83b9 in QApplication::exec () at 
/var/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/widgets/kernel/qapplication.cpp:2546
#37 0x000055f9437ced5d in KonquerorApplication::startFirstInstance 
(this=this@entry=0x7ffea55d4140) at 
/usr/src/debug/kde-apps/konqueror-9999/konqueror-9999/src/konqapplication.cpp:277
#38 0x000055f9437cf78e in KonquerorApplication::start 
(this=this@entry=0x7ffea55d4140) at 
/usr/src/debug/kde-apps/konqueror-9999/konqueror-9999/src/konqapplication.cpp:348
#39 0x000055f9437b1839 in main (argc=<optimized out>, argv=0x7ffea55d42a8) at 
/usr/src/debug/kde-apps/konqueror-9999/konqueror-9999/src/konqmain.cpp:14
(gdb) 

Reply via email to