Bug 152493 - spurious crash in Konsole::TerminalDisplay::paintFilters
Summary: spurious crash in Konsole::TerminalDisplay::paintFilters
Status: RESOLVED DUPLICATE of bug 199161
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.9.2
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-18 00:49 UTC by Matthias Kretz
Modified: 2009-09-04 05:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Kretz 2007-11-18 00:49:03 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.1.3 
OS:                Linux

Sorry I have no idea what the crash could relate to. It just happened. Backtrace:

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1240525120 (LWP 6622)]
[KCrash handler]
#6  0xb7f5c098 in Konsole::TerminalDisplay::paintFilters (this=0x863b5c0, 
    painter=@0xbfd751e4)
    at /home/kdevel/KDE/src/kdebase/apps/konsole/src/TerminalDisplay.cpp:1124
#7  0xb7f5fc2e in Konsole::TerminalDisplay::paintEvent (this=0x863b5c0, 
    pe=0xbfd757f0)
    at /home/kdevel/KDE/src/kdebase/apps/konsole/src/TerminalDisplay.cpp:1053
#8  0xb6784fb4 in QWidget::event (this=0x863b5c0, event=0xbfd757f0)
    at /home/kdevel/KDE/src/qt-copy/src/gui/kernel/qwidget.cpp:6261
#9  0xb6ad11b2 in QFrame::event (this=0x863b5c0, e=0xbfd757f0)
    at /home/kdevel/KDE/src/qt-copy/src/gui/widgets/qframe.cpp:657
#10 0xb7f58324 in Konsole::TerminalDisplay::event (this=0x863b5c0, 
    e=0xbfd757f0)
    at /home/kdevel/KDE/src/kdebase/apps/konsole/src/TerminalDisplay.cpp:2379
#11 0xb6733341 in QApplicationPrivate::notify_helper (this=0x8062f78, 
    receiver=0x863b5c0, e=0xbfd757f0)
    at /home/kdevel/KDE/src/qt-copy/src/gui/kernel/qapplication.cpp:3558
#12 0xb6735053 in QApplication::notify (this=0xbfd76dc0, receiver=0x863b5c0, 
    e=0xbfd757f0)
    at /home/kdevel/KDE/src/qt-copy/src/gui/kernel/qapplication.cpp:3499
#13 0xb7531b13 in KApplication::notify (this=0xbfd76dc0, receiver=0x863b5c0, 
    event=0xbfd757f0)
    at /home/kdevel/KDE/src/kdelibs/kdeui/kernel/kapplication.cpp:319
#14 0xb6eaeb76 in QCoreApplication::notifyInternal (this=0xbfd76dc0, 
    receiver=0x863b5c0, event=0xbfd757f0)
    at /home/kdevel/KDE/src/qt-copy/src/corelib/kernel/qcoreapplication.cpp:532
#15 0xb673e66d in QCoreApplication::sendSpontaneousEvent (receiver=0x863b5c0, 
    event=0xbfd757f0)
    at ../../include/QtCore/../../../../src/qt-copy/src/corelib/kernel/qcoreapplication.h:205
#16 0xb6790bba in qt_sendSpontaneousEvent (receiver=0x863b5c0, 
    event=0xbfd757f0)
    at /home/kdevel/KDE/src/qt-copy/src/gui/kernel/qapplication_x11.cpp:4399
#17 0xb68cbcd9 in QWidgetPrivate::drawWidget (this=0x863b890, pdev=0x807368c, 
    rgn=@0xbfd759a4, offset=@0xbfd75994, flags=4)
    at /home/kdevel/KDE/src/qt-copy/src/gui/painting/qbackingstore.cpp:1212
#18 0xb68cc39d in QWidgetBackingStore::paintSiblingsRecursive (
    pdev=0x807368c, siblings=@0xbfd75af8, index=4, rgn=@0xbfd75bd4, 
    offset=@0xbfd75bc4, flags=4)
    at /home/kdevel/KDE/src/qt-copy/src/gui/painting/qbackingstore.cpp:1115
#19 0xb68cbfbe in QWidgetPrivate::drawWidget (this=0x816b1f8, pdev=0x807368c, 
    rgn=@0xbfd75bd4, offset=@0xbfd75bc4, flags=4)
    at /home/kdevel/KDE/src/qt-copy/src/gui/painting/qbackingstore.cpp:1248
#20 0xb68cc39d in QWidgetBackingStore::paintSiblingsRecursive (
    pdev=0x807368c, siblings=@0xbfd75d28, index=1, rgn=@0xbfd75e04, 
    offset=@0xbfd75df4, flags=4)
    at /home/kdevel/KDE/src/qt-copy/src/gui/painting/qbackingstore.cpp:1115
#21 0xb68cbfbe in QWidgetPrivate::drawWidget (this=0x8150f28, pdev=0x807368c, 
    rgn=@0xbfd75e04, offset=@0xbfd75df4, flags=4)
    at /home/kdevel/KDE/src/qt-copy/src/gui/painting/qbackingstore.cpp:1248
#22 0xb68cc39d in QWidgetBackingStore::paintSiblingsRecursive (
    pdev=0x807368c, siblings=@0xbfd75f58, index=1, rgn=@0xbfd76034, 
    offset=@0xbfd76024, flags=4)
    at /home/kdevel/KDE/src/qt-copy/src/gui/painting/qbackingstore.cpp:1115
#23 0xb68cbfbe in QWidgetPrivate::drawWidget (this=0x8132b20, pdev=0x807368c, 
    rgn=@0xbfd76034, offset=@0xbfd76024, flags=4)
    at /home/kdevel/KDE/src/qt-copy/src/gui/painting/qbackingstore.cpp:1248
#24 0xb68cc39d in QWidgetBackingStore::paintSiblingsRecursive (
    pdev=0x807368c, siblings=@0xbfd76188, index=1, rgn=@0xbfd76264, 
    offset=@0xbfd76254, flags=4)
    at /home/kdevel/KDE/src/qt-copy/src/gui/painting/qbackingstore.cpp:1115
#25 0xb68cbfbe in QWidgetPrivate::drawWidget (this=0x8130800, pdev=0x807368c, 
    rgn=@0xbfd76264, offset=@0xbfd76254, flags=4)
    at /home/kdevel/KDE/src/qt-copy/src/gui/painting/qbackingstore.cpp:1248
#26 0xb68cc39d in QWidgetBackingStore::paintSiblingsRecursive (
    pdev=0x807368c, siblings=@0xbfd763b8, index=10, rgn=@0xbfd764e4, 
    offset=@0x810c54c, flags=4)
    at /home/kdevel/KDE/src/qt-copy/src/gui/painting/qbackingstore.cpp:1115
#27 0xb68cbfbe in QWidgetPrivate::drawWidget (this=0x8129cf0, pdev=0x807368c, 
    rgn=@0xbfd764e4, offset=@0x810c54c, flags=5)
    at /home/kdevel/KDE/src/qt-copy/src/gui/painting/qbackingstore.cpp:1248
#28 0xb68cc786 in QWidgetBackingStore::cleanRegion (this=0x810c540, 
    rgn=@0xbfd76534, widget=0x863b5c0, recursiveCopyToScreen=true)
    at /home/kdevel/KDE/src/qt-copy/src/gui/painting/qbackingstore.cpp:1014
#29 0xb68ccf0b in qt_syncBackingStore (widget=0x863b5c0)
    at /home/kdevel/KDE/src/qt-copy/src/gui/painting/qbackingstore.cpp:327
#30 0xb67854bd in QWidget::event (this=0x863b5c0, event=0x8195a90)
    at /home/kdevel/KDE/src/qt-copy/src/gui/kernel/qwidget.cpp:6403
#31 0xb6ad11b2 in QFrame::event (this=0x863b5c0, e=0x8195a90)
    at /home/kdevel/KDE/src/qt-copy/src/gui/widgets/qframe.cpp:657
#32 0xb7f58324 in Konsole::TerminalDisplay::event (this=0x863b5c0, 
    e=0x8195a90)
    at /home/kdevel/KDE/src/kdebase/apps/konsole/src/TerminalDisplay.cpp:2379
#33 0xb6733341 in QApplicationPrivate::notify_helper (this=0x8062f78, 
    receiver=0x863b5c0, e=0x8195a90)
    at /home/kdevel/KDE/src/qt-copy/src/gui/kernel/qapplication.cpp:3558
#34 0xb6735053 in QApplication::notify (this=0xbfd76dc0, receiver=0x863b5c0, 
    e=0x8195a90)
    at /home/kdevel/KDE/src/qt-copy/src/gui/kernel/qapplication.cpp:3499
#35 0xb7531b13 in KApplication::notify (this=0xbfd76dc0, receiver=0x863b5c0, 
    event=0x8195a90)
    at /home/kdevel/KDE/src/kdelibs/kdeui/kernel/kapplication.cpp:319
#36 0xb6eaeb76 in QCoreApplication::notifyInternal (this=0xbfd76dc0, 
    receiver=0x863b5c0, event=0x8195a90)
    at /home/kdevel/KDE/src/qt-copy/src/corelib/kernel/qcoreapplication.cpp:532
#37 0xb6eb1e87 in QCoreApplication::sendEvent (receiver=0x863b5c0, 
    event=0x8195a90)
    at ../../include/QtCore/../../../../src/qt-copy/src/corelib/kernel/qcoreapplication.h:202
#38 0xb6eaf044 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, 
    event_type=0, data=0x804bfa8)
    at /home/kdevel/KDE/src/qt-copy/src/corelib/kernel/qcoreapplication.cpp:1115
#39 0xb6eaf199 in QCoreApplication::sendPostedEvents (receiver=0x0, 
    event_type=0)
    at /home/kdevel/KDE/src/qt-copy/src/corelib/kernel/qcoreapplication.cpp:1003
#40 0xb67cadfa in QCoreApplication::sendPostedEvents ()
    at ../../include/QtCore/../../../../src/qt-copy/src/corelib/kernel/qcoreapplication.h:207
#41 0xb67ca202 in QEventDispatcherX11::processEvents (this=0x80620c0, 
    flags=@0xbfd76cec)
    at /home/kdevel/KDE/src/qt-copy/src/gui/kernel/qeventdispatcher_x11.cpp:70
#42 0xb6eabb3c in QEventLoop::processEvents (this=0xbfd76d60, 
    flags=@0xbfd76d24)
    at /home/kdevel/KDE/src/qt-copy/src/corelib/kernel/qeventloop.cpp:142
#43 0xb6eabcbe in QEventLoop::exec (this=0xbfd76d60, flags=@0xbfd76d68)
    at /home/kdevel/KDE/src/qt-copy/src/corelib/kernel/qeventloop.cpp:184
#44 0xb6eaf2b7 in QCoreApplication::exec ()
    at /home/kdevel/KDE/src/qt-copy/src/corelib/kernel/qcoreapplication.cpp:761
#45 0xb6732ecc in QApplication::exec ()
    at /home/kdevel/KDE/src/qt-copy/src/gui/kernel/qapplication.cpp:3055
#46 0xb7f783a0 in kdemain (argc=1, argv=0xbfd76ee4)
    at /home/kdevel/KDE/src/kdebase/apps/konsole/src/main.cpp:81
#47 0x08048806 in main (argc=16777248, argv=0x1000000)
    at /home/kdevel/KDE/obj/kdebase/apps/konsole/src/konsole_dummy.cpp:3
#0  0xffffe410 in __kernel_vsyscall ()
Comment 1 Robert Knight 2007-12-07 19:46:45 UTC
Hello,

The code has changed since the original report so the line numbers in the backtrace are no longer correct.

Can you get a version of the backtrace from a more recent build?
Comment 2 Matthias Kretz 2007-12-07 19:51:44 UTC
No, I was not able to reproduce the crash again.

Either look at the old code or close this bug until somebody can reproduce it.
Comment 3 Robert Knight 2007-12-08 00:42:19 UTC
Okay.  I found a possible out of bounds array access in TerminalDisplay::paintFilters(), fixed by revision #746132, although I don't know if it was the cause of the problem.

Closing as REMIND.  Please re-open if it happens again.
Comment 4 Jonathan Thomas 2009-04-26 14:24:54 UTC
This has been reported to us at Ubuntu in KDE 4.2.2 (https://launchpad.net/bugs/367262)

The reporter reported this happening when returning from fullscreen mode.

Anwendung: Konsole (konsole), Signal SIGSEGV
0x00007f12c00dfd21 in nanosleep () from /lib/libc.so.6
Current language: auto; currently c
[Current thread is 0 (LWP 9563)]

Thread 2 (Thread 0x7f12b67f6950 (LWP 9567)):
#0 0x00007f12c0116742 in select () from /lib/libc.so.6
#1 0x00007f12c2c82f06 in QProcessManager::run (this=0x1380bc0) at io/qprocess_unix.cpp:305
#2 0x00007f12c2bbb952 in QThreadPrivate::start (arg=0x1380bc0) at thread/qthread_unix.cpp:189
#3 0x00007f12bec773ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#4 0x00007f12c011dfcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f12c4f72750 (LWP 9563)):
[KCrash Handler]
#5 0x00007f12c4b51564 in Konsole::TerminalDisplay::paintFilters (this=0x1649bf0, painter=@0x7fffccfb6a70) at /usr/include/qt4/QtCore/qchar.h:81
#6 0x00007f12c4b52bac in Konsole::TerminalDisplay::paintEvent (this=0x1649bf0, pe=<value optimized out>) at /build/buildd/kdebase-4.2.2/apps/konsole/src/TerminalDisplay.cpp:1212
#7 0x00007f12c1edf796 in QWidget::event (this=0x1649bf0, event=0x7fffccfb7100) at kernel/qwidget.cpp:7654
#8 0x00007f12c1e8e83d in QApplicationPrivate::notify_helper (this=0x13814b0, receiver=0x1649bf0, e=0x7fffccfb7100) at kernel/qapplication.cpp:4084
#9 0x00007f12c1e96a2a in QApplication::notify (this=0x7fffccfb96b0, receiver=0x1649bf0, e=0x7fffccfb7100) at kernel/qapplication.cpp:4049
#10 0x00007f12c387f26b in KApplication::notify (this=0x7fffccfb96b0, receiver=0x1649bf0, event=0x7fffccfb7100) at /build/buildd/kde4libs-4.2.2/kdeui/kernel/kapplication.cpp:307
#11 0x00007f12c2ca475c in QCoreApplication::notifyInternal (this=0x7fffccfb96b0, receiver=0x1649bf0, event=0x7fffccfb7100) at kernel/qcoreapplication.cpp:602
#12 0x00007f12c1ee6a55 in QWidgetPrivate::drawWidget (this=0x1649f80, pdev=0x14a4d88, rgn=@0x7fffccfb7330, offset=@0x7fffccfb7320, flags=4, sharedPainter=0x0, backingStore=0x1498070)
    at kernel/qwidget.cpp:5046
#13 0x00007f12c1ee71c7 in QWidgetPrivate::paintSiblingsRecursive (this=0x155dec0, pdev=0x14a4d88, siblings=@0x155ded8, index=2, rgn=@0x7fffccfb7640, offset=@0x7fffccfb7630, flags=4,
    sharedPainter=0x0, backingStore=0x1498070) at kernel/qwidget.cpp:5156
#14 0x00007f12c1ee66c7 in QWidgetPrivate::drawWidget (this=0x155dec0, pdev=0x14a4d88, rgn=@0x7fffccfb7640, offset=@0x7fffccfb7630, flags=4, sharedPainter=0x0, backingStore=0x1498070)
    at kernel/qwidget.cpp:5095
#15 0x00007f12c1ee71c7 in QWidgetPrivate::paintSiblingsRecursive (this=0x155d870, pdev=0x14a4d88, siblings=@0x155d888, index=5, rgn=@0x7fffccfb7950, offset=@0x7fffccfb7940, flags=4,
    sharedPainter=0x0, backingStore=0x1498070) at kernel/qwidget.cpp:5156
#16 0x00007f12c1ee66c7 in QWidgetPrivate::drawWidget (this=0x155d870, pdev=0x14a4d88, rgn=@0x7fffccfb7950, offset=@0x7fffccfb7940, flags=4, sharedPainter=0x0, backingStore=0x1498070)
    at kernel/qwidget.cpp:5095
#17 0x00007f12c1ee71c7 in QWidgetPrivate::paintSiblingsRecursive (this=0x14e6d30, pdev=0x14a4d88, siblings=@0x14e6d48, index=0, rgn=@0x7fffccfb7c60, offset=@0x7fffccfb7c50, flags=4,
    sharedPainter=0x0, backingStore=0x1498070) at kernel/qwidget.cpp:5156
#18 0x00007f12c1ee66c7 in QWidgetPrivate::drawWidget (this=0x14e6d30, pdev=0x14a4d88, rgn=@0x7fffccfb7c60, offset=@0x7fffccfb7c50, flags=4, sharedPainter=0x0, backingStore=0x1498070)
    at kernel/qwidget.cpp:5095
#19 0x00007f12c1ee71c7 in QWidgetPrivate::paintSiblingsRecursive (this=0x150daf0, pdev=0x14a4d88, siblings=@0x150db08, index=1, rgn=@0x7fffccfb7f70, offset=@0x7fffccfb7f60, flags=4,
    sharedPainter=0x0, backingStore=0x1498070) at kernel/qwidget.cpp:5156
#20 0x00007f12c1ee66c7 in QWidgetPrivate::drawWidget (this=0x150daf0, pdev=0x14a4d88, rgn=@0x7fffccfb7f70, offset=@0x7fffccfb7f60, flags=4, sharedPainter=0x0, backingStore=0x1498070)
    at kernel/qwidget.cpp:5095
#21 0x00007f12c1ee71c7 in QWidgetPrivate::paintSiblingsRecursive (this=0x1498340, pdev=0x14a4d88, siblings=@0x1498358, index=10, rgn=@0x7fffccfb83e0, offset=@0x14980b4, flags=4, sharedPainter=0x0,
    backingStore=0x1498070) at kernel/qwidget.cpp:5156
#22 0x00007f12c1ee66c7 in QWidgetPrivate::drawWidget (this=0x1498340, pdev=0x14a4d88, rgn=@0x7fffccfb83e0, offset=@0x14980b4, flags=4, sharedPainter=0x0, backingStore=0x1498070)
    at kernel/qwidget.cpp:5095
#23 0x00007f12c208a412 in QWidgetBackingStore::sync (this=0x1498070) at painting/qbackingstore.cpp:1266
#24 0x00007f12c1ed8100 in QWidgetPrivate::syncBackingStore (this=0x1498340) at kernel/qwidget.cpp:1603
#25 0x00007f12c1eefb38 in QETWidget::translateConfigEvent (this=0x14908d0, event=<value optimized out>) at kernel/qapplication_x11.cpp:5291
#26 0x00007f12c1eff001 in QApplication::x11ProcessEvent (this=0x7fffccfb96b0, event=0x7fffccfb92d0) at kernel/qapplication_x11.cpp:3448
#27 0x00007f12c1f27514 in x11EventSourceDispatch (s=0x1384820, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#28 0x00007f12bdb9920a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#29 0x00007f12bdb9c8e0 in ?? () from /usr/lib/libglib-2.0.so.0
#30 0x00007f12bdb9ca7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#31 0x00007f12c2ccde6f in QEventDispatcherGlib::processEvents (this=0x13486c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:323
#32 0x00007f12c1f26c9f in QGuiEventDispatcherGlib::processEvents (this=0x7fffccfb69b0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#33 0x00007f12c2ca3002 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -855927360}) at kernel/qeventloop.cpp:149
#34 0x00007f12c2ca33cd in QEventLoop::exec (this=0x7fffccfb9600, flags={i = -855927280}) at kernel/qeventloop.cpp:200
#35 0x00007f12c2ca5694 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
#36 0x00007f12c4b6d874 in kdemain (argc=5, argv=0x7fffccfb9908) at /build/buildd/kdebase-4.2.2/apps/konsole/src/main.cpp:104
#37 0x00007f12c00565a6 in __libc_start_main (main=0x400860 <main>, argc=5, ubp_av=0x7fffccfb9908, init=0x400890 <__libc_csu_init>, fini=<value optimized out>, rtld_fini=<value optimized out>,
    stack_end=0x7fffccfb98f8) at libc-start.c:220
#38 0x0000000000400799 in _start () at ../sysdeps/x86_64/elf/start.S:113
Comment 5 Kurt Hindenburg 2009-09-04 05:14:42 UTC

*** This bug has been marked as a duplicate of bug 199161 ***