Bug 228443 - konsole crashed when clicking on a tab
Summary: konsole crashed when clicking on a tab
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.4.99
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 229017 229491 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-25 13:02 UTC by Dmitry Suzdalev
Modified: 2011-04-24 17:08 UTC (History)
3 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 Dmitry Suzdalev 2010-02-25 13:02:40 UTC
Application: konsole (2.4.99)
KDE Platform Version: 4.4.65 (KDE 4.4.65 (KDE 4.5 >= 20100224)) (Compiled from sources)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-ARCH i686
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:

I was running a konsole window with several sessions in it.
Maybe it does matter that one session had a TightVNC's vncviewer run in it.
I switched to a konsole by Alt-Tab from other app and clicked one of konsole's tabs.
=> it crashed.

Version info:
KDE SC: compiled from trunk, revision 1095562
Qt: kde-qt/master (4.6.2)


 -- Backtrace:
Application: Konsole (kdeinit4), signal: Aborted
[KCrash Handler]
#6  0xb76fd424 in __kernel_vsyscall ()
#7  0xb5b0f571 in raise () from /lib/libc.so.6
#8  0xb5b10d72 in abort () from /lib/libc.so.6
#9  0xb68d8aa4 in qt_message_output (msgType=QtFatalMsg, buf=0x8955d70 "ASSERT: \"false\" in file /home/archuser/kdesvn/kdebase/apps/konsole/src/CharacterColor.h, line 281")
    at global/qglobal.cpp:2250
#10 0xb68d8c5a in qt_message (msgType=<value optimized out>, msg=0xb6a4a8dc "ASSERT: \"%s\" in file %s, line %d", ap=0xbfa26f84 "$\367e\263\344\366e\263\031\001") at global/qglobal.cpp:2296
#11 0xb68d8d69 in qFatal (msg=0xb6a4a8dc "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2479
#12 0xb68d8df5 in qt_assert (assertion=0xb365f724 "false", file=0xb365f6e4 "/home/archuser/kdesvn/kdebase/apps/konsole/src/CharacterColor.h", line=281) at global/qglobal.cpp:2013
#13 0xb3621dc0 in Konsole::CharacterColor::color (this=0x8ab0d2b, base=0x860246c) at /home/archuser/kdesvn/kdebase/apps/konsole/src/CharacterColor.h:281
#14 0xb362480e in Konsole::TerminalDisplay::drawTextFragment (this=0x8602400, painter=..., rect=..., text=..., style=0x8ab0d28)
    at /home/archuser/kdesvn/kdebase/apps/konsole/src/TerminalDisplay.cpp:727
#15 0xb3627bc1 in Konsole::TerminalDisplay::drawContents (this=0x8602400, paint=..., rect=...) at /home/archuser/kdesvn/kdebase/apps/konsole/src/TerminalDisplay.cpp:1486
#16 0xb3626620 in Konsole::TerminalDisplay::paintEvent (this=0x8602400, pe=0xbfa27804) at /home/archuser/kdesvn/kdebase/apps/konsole/src/TerminalDisplay.cpp:1211
#17 0xb5f19766 in QWidget::event (this=0x8602400, event=0xbfa27804) at kernel/qwidget.cpp:8144
#18 0xb362c3ef in Konsole::TerminalDisplay::event (this=0x8602400, event=0xbfa27804) at /home/archuser/kdesvn/kdebase/apps/konsole/src/TerminalDisplay.cpp:2649
#19 0xb5ebb72c in QApplicationPrivate::notify_helper (this=0x8369440, receiver=0x8602400, e=0xbfa27804) at kernel/qapplication.cpp:4300
#20 0xb5ec2419 in QApplication::notify (this=0xbfa28578, receiver=0x8602400, e=0xbfa27804) at kernel/qapplication.cpp:4265
#21 0xb6d4deb4 in KApplication::notify (this=0xbfa28578, receiver=0x8602400, event=0xbfa27804) at /home/archuser/kdesvn/kdelibs/kdeui/kernel/kapplication.cpp:302
#22 0xb69e2eeb in QCoreApplication::notifyInternal (this=0xbfa28578, receiver=0x8602400, event=0xbfa27804) at kernel/qcoreapplication.cpp:704
#23 0xb5f22a56 in QCoreApplication::sendSpontaneousEvent (this=0x85feda0, pdev=0x84c3004, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x84c2fc8)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#24 QWidgetPrivate::drawWidget (this=0x85feda0, pdev=0x84c3004, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x84c2fc8) at kernel/qwidget.cpp:5339
#25 0xb60f69fb in QWidgetBackingStore::sync (this=0x84c2fc8) at painting/qbackingstore.cpp:1283
#26 0xb5f12c23 in QWidgetPrivate::syncBackingStore (this=0x848bd28) at kernel/qwidget.cpp:1672
#27 0xb5f19f26 in QWidget::event (this=0x8483f50, event=0x89c9020) at kernel/qwidget.cpp:8291
#28 0xb632fc17 in QMainWindow::event (this=0x8483f50, event=0x89c9020) at widgets/qmainwindow.cpp:1433
#29 0xb6e43f4f in KMainWindow::event (this=0x8483f50, ev=0x89c9020) at /home/archuser/kdesvn/kdelibs/kdeui/widgets/kmainwindow.cpp:1103
#30 0xb6e870a3 in KXmlGuiWindow::event (this=0x8483f50, ev=0x89c9020) at /home/archuser/kdesvn/kdelibs/kdeui/xmlgui/kxmlguiwindow.cpp:131
#31 0xb5ebb72c in QApplicationPrivate::notify_helper (this=0x8369440, receiver=0x8483f50, e=0x89c9020) at kernel/qapplication.cpp:4300
#32 0xb5ec2419 in QApplication::notify (this=0xbfa28578, receiver=0x8483f50, e=0x89c9020) at kernel/qapplication.cpp:4265
#33 0xb6d4deb4 in KApplication::notify (this=0xbfa28578, receiver=0x8483f50, event=0x89c9020) at /home/archuser/kdesvn/kdelibs/kdeui/kernel/kapplication.cpp:302
#34 0xb69e2eeb in QCoreApplication::notifyInternal (this=0xbfa28578, receiver=0x8483f50, event=0x89c9020) at kernel/qcoreapplication.cpp:704
#35 0xb69e58c3 in QCoreApplication::sendEvent (receiver=0x0, event_type=0, data=0x82fc968) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#36 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x82fc968) at kernel/qcoreapplication.cpp:1345
#37 0xb69e5a2d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1238
#38 0xb6a0ee3f in QCoreApplication::sendPostedEvents (s=0x836b518) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#39 postEventSourceDispatch (s=0x836b518) at kernel/qeventdispatcher_glib.cpp:276
#40 0xb574f378 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#41 0xb5752bf0 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#42 0xb5752d23 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#43 0xb6a0e935 in QEventDispatcherGlib::processEvents (this=0x82fd468, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#44 0xb5f786a5 in QGuiEventDispatcherGlib::processEvents (this=0x82fd468, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#45 0xb69e1509 in QEventLoop::processEvents (this=0xbfa284f4, flags=) at kernel/qeventloop.cpp:149
#46 0xb69e195a in QEventLoop::exec (this=0xbfa284f4, flags=...) at kernel/qeventloop.cpp:201
#47 0xb69e5aef in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#48 0xb5ebb7c7 in QApplication::exec () at kernel/qapplication.cpp:3579
#49 0xb3e695cb in kdemain (argc=3, argv=0x83592e8) at /home/archuser/kdesvn/kdebase/apps/konsole/src/main.cpp:77
#50 0x0804d868 in launch (argc=3, _name=0x835864c "/home/archuser/kde/bin/konsole", args=0x83586ad "", cwd=0x0, envc=0, envs=0x83586b1 "", reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x80524d7 "0") at /home/archuser/kdesvn/kdelibs/kinit/kinit.cpp:719
#51 0x0804e8fd in handle_launcher_request (sock=8, who=0x8052770 "launcher") at /home/archuser/kdesvn/kdelibs/kinit/kinit.cpp:1211
#52 0x0804f028 in handle_requests (waitForPid=0) at /home/archuser/kdesvn/kdelibs/kinit/kinit.cpp:1404
#53 0x080504a3 in main (argc=4, argv=0xbfa28c54, envp=0xbfa28c68) at /home/archuser/kdesvn/kdelibs/kinit/kinit.cpp:1843

Reported using DrKonqi
Comment 1 Anne-Marie Mahfouf 2010-02-27 16:42:30 UTC
In KDE 4.4 branch when I restore session, Konsole crashes when I click on a tab, not sure exactly when as I can use the first tab OK.
Using 4.4 branch with kde-qt master Qt 4.6.2

The crash can be reproduced every time.

 -- Backtrace:
Application: Konsole (kdeinit4), signal: Aborted
[KCrash Handler]
#6  0xffffe424 in __kernel_vsyscall ()
#7  0xb6280c00 in raise () from /lib/i686/libc.so.6
#8  0xb6282668 in abort () from /lib/i686/libc.so.6
#9  0xb7235d8e in qt_message_output (msgType=QtFatalMsg, buf=0x89c4120 "ASSERT: \"false\" in file /usr/local/branch-src/kdebase/apps/konsole/src/CharacterColor.h, line 281")
    at global/qglobal.cpp:2250
#10 0xb7235f98 in qt_message (msgType=QtFatalMsg, msg=0xb73f2f54 "ASSERT: \"%s\" in file %s, line %d", ap=0xbfaea464 "lÌâ³,Ìâ³\031\001") at global/qglobal.cpp:2296
#11 0xb7236006 in qFatal (msg=0xb73f2f54 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2479
#12 0xb723625a in qt_assert (assertion=0xb3e2cc6c "false", file=0xb3e2cc2c "/usr/local/branch-src/kdebase/apps/konsole/src/CharacterColor.h", line=281) at global/qglobal.cpp:2013
#13 0xb3deed80 in Konsole::CharacterColor::color (this=0x8b59c93, base=0x8816a34) at /usr/local/branch-src/kdebase/apps/konsole/src/CharacterColor.h:281
#14 0xb3df8fd4 in Konsole::TerminalDisplay::drawTextFragment (this=0x88169c8, painter=@0xbfaea6f4, rect=@0xbfaea594, text=@0xbfaea5ac, style=0x8b59c90)
    at /usr/local/branch-src/kdebase/apps/konsole/src/TerminalDisplay.cpp:727
#15 0xb3df9ad9 in Konsole::TerminalDisplay::drawContents (this=0x88169c8, paint=@0xbfaea6f4, rect=@0x8b1cb20) at /usr/local/branch-src/kdebase/apps/konsole/src/TerminalDisplay.cpp:1486
#16 0xb3df9ca2 in Konsole::TerminalDisplay::paintEvent (this=0x88169c8, pe=0xbfaeaef4) at /usr/local/branch-src/kdebase/apps/konsole/src/TerminalDisplay.cpp:1211
#17 0xb66b6eda in QWidget::event (this=0x88169c8, event=0xbfaeaef4) at kernel/qwidget.cpp:8144
#18 0xb3df15b2 in Konsole::TerminalDisplay::event (this=0x88169c8, event=0xbfaeaef4) at /usr/local/branch-src/kdebase/apps/konsole/src/TerminalDisplay.cpp:2649
#19 0xb66381e6 in QApplicationPrivate::notify_helper (this=0x85cd988, receiver=0x88169c8, e=0xbfaeaef4) at kernel/qapplication.cpp:4300
#20 0xb663b301 in QApplication::notify (this=0xbfaebe58, receiver=0x88169c8, e=0xbfaeaef4) at kernel/qapplication.cpp:4265
#21 0xb771988f in KApplication::notify (this=0xbfaebe58, receiver=0x88169c8, event=0xbfaeaef4) at /usr/local/branch-src/kdelibs/kdeui/kernel/kapplication.cpp:302
#22 0xb736c238 in QCoreApplication::notifyInternal (this=0xbfaebe58, receiver=0x88169c8, event=0xbfaeaef4) at kernel/qcoreapplication.cpp:704
#23 0xb664d1dd in QCoreApplication::sendSpontaneousEvent (receiver=0x88169c8, event=0xbfaeaef4) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#24 0xb66b3560 in QWidgetPrivate::drawWidget (this=0x8744e68, pdev=0x86bf64c, rgn=@0xbfaeb0f4, offset=@0xbfaeb0ec, flags=68, sharedPainter=0x0, backingStore=0x86c2da8) at kernel/qwidget.cpp:5339
#25 0xb68e2b15 in QWidgetBackingStore::sync (this=0x86c2da8) at painting/qbackingstore.cpp:1283
#26 0xb66ab98e in QWidgetPrivate::syncBackingStore (this=0x86987b8) at kernel/qwidget.cpp:1672
#27 0xb66b74d8 in QWidget::event (this=0x86971d8, event=0x8af1ce0) at kernel/qwidget.cpp:8291
#28 0xb6b9147d in QMainWindow::event (this=0x86971d8, event=0x8af1ce0) at widgets/qmainwindow.cpp:1433
#29 0xb780d4e0 in KMainWindow::event (this=0x86971d8, ev=0x8af1ce0) at /usr/local/branch-src/kdelibs/kdeui/widgets/kmainwindow.cpp:1103
#30 0xb78538bd in KXmlGuiWindow::event (this=0x86971d8, ev=0x8af1ce0) at /usr/local/branch-src/kdelibs/kdeui/xmlgui/kxmlguiwindow.cpp:131
#31 0xb66381e6 in QApplicationPrivate::notify_helper (this=0x85cd988, receiver=0x86971d8, e=0x8af1ce0) at kernel/qapplication.cpp:4300
#32 0xb663b301 in QApplication::notify (this=0xbfaebe58, receiver=0x86971d8, e=0x8af1ce0) at kernel/qapplication.cpp:4265
#33 0xb771988f in KApplication::notify (this=0xbfaebe58, receiver=0x86971d8, event=0x8af1ce0) at /usr/local/branch-src/kdelibs/kdeui/kernel/kapplication.cpp:302
#34 0xb736c238 in QCoreApplication::notifyInternal (this=0xbfaebe58, receiver=0x86971d8, event=0x8af1ce0) at kernel/qcoreapplication.cpp:704
#35 0xb73712d3 in QCoreApplication::sendEvent (receiver=0x86971d8, event=0x8af1ce0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#36 0xb736c7c2 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x858aae0) at kernel/qcoreapplication.cpp:1345
#37 0xb736ca57 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1238
#38 0xb73a8812 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#39 0xb73a77fd in postEventSourceDispatch (s=0x85cfad8) at kernel/qeventdispatcher_glib.cpp:276
#40 0xb5efb7ca in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#41 0xb5efeee8 in ?? () from /usr/lib/libglib-2.0.so.0
#42 0xb5eff0a8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#43 0xb73a67c6 in QEventDispatcherGlib::processEvents (this=0x85cc478, flags={i = -1079067368}) at kernel/qeventdispatcher_glib.cpp:412
#44 0xb672a6fa in QGuiEventDispatcherGlib::processEvents (this=0x85cc478, flags={i = -1079067320}) at kernel/qguieventdispatcher_glib.cpp:204
#45 0xb73685ae in QEventLoop::processEvents (this=0xbfaebde8, flags={i = -1079067244}) at kernel/qeventloop.cpp:149
#46 0xb7368820 in QEventLoop::exec (this=0xbfaebde8, flags={i = -1079067152}) at kernel/qeventloop.cpp:201
#47 0xb736cb8d in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#48 0xb663b348 in QApplication::exec () at kernel/qapplication.cpp:3579
#49 0xb44093ec in kdemain (argc=3, argv=0x85bec08) at /usr/local/branch-src/kdebase/apps/konsole/src/main.cpp:77
#50 0x0804e5f9 in launch (argc=3, _name=0x85bdc0c "/usr/local/branch/bin/konsole", args=0x85bdc6c "", cwd=0x0, envc=0, envs=0x85bdc70 "", reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x805232a "0") at /usr/local/branch-src/kdelibs/kinit/kinit.cpp:717
#51 0x0804ed68 in handle_launcher_request (sock=8, who=0x80525e0 "launcher") at /usr/local/branch-src/kdelibs/kinit/kinit.cpp:1209
#52 0x0804f691 in handle_requests (waitForPid=0) at /usr/local/branch-src/kdelibs/kinit/kinit.cpp:1402
#53 0x080500d1 in main (argc=4, argv=0xbfaec524, envp=0xbfaec538) at /usr/local/branch-src/kdelibs/kinit/kinit.cpp:1841
Comment 2 David Nadlinger 2010-02-28 17:31:15 UTC
I am also experiencing this crash (same backtrace) when I try to switch tabs in a Konsole instance restored by the session manager. In a newly started instance, however, everything seems fine.

KDE trunk from yesterday and kde-qt 4.6.2 on x86_32 Arch (compiled from sources).
Comment 3 Kurt Hindenburg 2010-02-28 23:02:20 UTC
SVN commit 1097311 by hindenburg:

Revert a fix for 199161 which is causing an ASSERT to crash.

CCBUG: 228443


 M  +3 -0      TerminalDisplay.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1097311
Comment 4 Kurt Hindenburg 2010-02-28 23:04:46 UTC
SVN commit 1097313 by hindenburg:

Revert a fix for 199161 which is causing an ASSERT to crash.

CCBUG: 228443


 M  +3 -0      TerminalDisplay.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1097313
Comment 5 Kurt Hindenburg 2010-03-01 05:11:00 UTC
SVN commit 1097379 by hindenburg:

Correct where new Hotspots are calculated upon resize.

CCBUG: 228443


 M  +1 -0      Session.cpp  
 M  +0 -4      TerminalDisplay.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1097379
Comment 6 Kurt Hindenburg 2010-03-01 05:26:47 UTC
SVN commit 1097380 by hindenburg:

Correct where new Hotspots are calculated upon resize.

CCBUG: 228443


 M  +1 -0      Session.cpp  
 M  +0 -4      TerminalDisplay.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1097380
Comment 7 Anne-Marie Mahfouf 2010-03-02 10:47:38 UTC
*** Bug 229017 has been marked as a duplicate of this bug. ***
Comment 8 Anne-Marie Mahfouf 2010-03-02 10:47:59 UTC
This fixes the crash for me!
Comment 9 Kurt Hindenburg 2010-09-19 01:17:27 UTC
I believe this was fixed w/ the last commit.
Comment 10 Kurt Hindenburg 2011-04-24 17:08:37 UTC
*** Bug 229491 has been marked as a duplicate of this bug. ***