konsole crashed on login in Konsole::ViewManager::viewProperties()

Bug #350740 reported by mau
168
This bug affects 15 people
Affects Status Importance Assigned to Milestone
KDE Base
Fix Released
High
kdebase (Ubuntu)
Fix Released
Medium
Jonathan Thomas
Lucid
Fix Released
Medium
Jonathan Thomas

Bug Description

Binary package hint: kdebase

First display of desktop konsole window crashed

ProblemType: Crash
Architecture: i386
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/bin/konsole
NonfreeKernelModules: nvidia
Package: konsole 4:4.2.1-0ubuntu6
ProcCmdline: konsole -session 10dce1d6db000123827676200000059180022_1238282676_323214
ProcEnviron:
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
 LANGUAGE=
Signal: 11
SourcePackage: kdebase
StacktraceTop:
 ?? () from /usr/lib/libkdeinit4_konsole.so
 ?? () from /usr/lib/libkdeinit4_konsole.so
 ?? () from /usr/lib/libkdeinit4_konsole.so
 KMainWindow::closeEvent () from /usr/lib/libkdeui.so.5
 QWidget::event () from /usr/lib/libQtGui.so.4
Title: konsole crashed with SIGSEGV in KMainWindow::closeEvent()
Uname: Linux 2.6.28-11-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev sambashare video

Revision history for this message
mau (mauro-ste) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:Konsole::ViewContainer::views (this=0x0)
Konsole::ViewManager::viewProperties (this=0x9792ce0)
Konsole::MainWindow::queryClose (this=0x9765440)
KMainWindow::closeEvent (this=0x9765440, e=0xbff90934)
QWidget::event () from /usr/lib/libQtGui.so.4

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Revision history for this message
Apport retracing service (apport) wrote : Stack trace with source code
Revision history for this message
In , Kdebugs-phobie (kdebugs-phobie) wrote :
Download full text (7.6 KiB)

Application that crashed: konsole
Version of the application: 2.3
KDE Version: 4.3.00 (KDE 4.3.0)
Qt Version: 4.5.2
Operating System: Linux 2.6.30-4.slh.3-sidux-686 i686
Distribution: Debian GNU/Linux unstable (sid)

 -- Backtrace:
Application: Konsole (konsole), signal: Segmentation fault
[KCrash Handler]
#6 QList (this=<value optimized out>) at /usr/include/qt4/QtCore/qlist.h:111
#7 Konsole::ViewContainer::views (this=<value optimized out>) at ../../../../apps/konsole/src/ViewContainer.cpp:191
#8 0x48e12295 in Konsole::ViewManager::viewProperties (this=<value optimized out>) at ../../../../apps/konsole/src/ViewManager.cpp:886
#9 0x476200fd in Konsole::MainWindow::queryClose (this=<value optimized out>) at ../../../../apps/konsole/src/MainWindow.cpp:341
#10 0x48840040 in KMainWindow::closeEvent (this=<value optimized out>, e=<value optimized out>) at ../../kdeui/widgets/kmainwindow.cpp:588
#11 0x47b0e162 in QWidget::event (this=<value optimized out>, event=<value optimized out>) at kernel/qwidget.cpp:7699
#12 0x47ed23d7 in QMainWindow::event (this=<value optimized out>, event=<value optimized out>) at widgets/qmainwindow.cpp:1399
#13 0x4883e5f7 in KMainWindow::event (this=<value optimized out>, ev=<value optimized out>) at ../../kdeui/widgets/kmainwindow.cpp:1094
#14 0x488835bc in KXmlGuiWindow::event (this=<value optimized out>, ev=<value optimized out>) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:131
#15 0x47ab87d4 in QApplicationPrivate::notify_helper (this=<value optimized out>, receiver=<value optimized out>, e=<value optimized out>) at kernel/qapplication.cpp:4056
#16 0x47ac0a12 in QApplication::notify (this=<value optimized out>, receiver=<value optimized out>, e=<value optimized out>) at kernel/qapplication.cpp:4021
#17 0x4875c00d in KApplication::notify (this=<value optimized out>, receiver=<value optimized out>, event=<value optimized out>) at ../../kdeui/kernel/kapplication.cpp:302
#18 0x4751cfcb in QCoreApplication::notifyInternal (this=<value optimized out>, receiver=<value optimized out>, event=<value optimized out>) at kernel/qcoreapplication.cpp:610
#19 0x47534c4e in QCoreApplication::sendEvent(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#20 0x47b137d1 in QWidgetPrivate::close_helper (this=<value optimized out>, mode=<value optimized out>) at kernel/qwidget.cpp:7122
#21 0x47b138d8 in QWidget::close (this=) at kernel/qwidget.cpp:7193
#22 0x47b147d0 in QWidget::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>) at .moc/release-shared/moc_qwidget.cpp:200
#23 0x4813e19a in QMainWindow::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>) at .moc/release-shared/moc_qmainwindow.cpp:111
#24 0x4883f50a in KMainWindow::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>) at ./kmainwindow.moc:84
#25 0x48882a5a in KXmlGuiWindow::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>) at ./kxmlguiwindow.moc:96
#26 0x4761ec8a in Konsole::MainWindow::qt_metacall (this=<v...

Read more...

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 203182 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

This is probably bug 180154 but in KDE4.3.
Thanks

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 204279 has been marked as a duplicate of this bug. ***

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Thank you for your bug report. This bug has been reported to the developers of the software. You can track it and make comments at: https://bugs.kde.org/show_bug.cgi?id=203621

visibility: private → public
summary: - konsole crashed on login
+ konsole crashed on login in Konsole::ViewManager::viewProperties()
Changed in kdebase (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 204949 has been marked as a duplicate of this bug. ***

Changed in kdebase:
status: Unknown → New
Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 205972 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 206175 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 207543 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 208327 has been marked as a duplicate of this bug. ***

Revision history for this message
starslights (starslights) wrote :

hello,

i run Kubuntu Karmic 64 bits and all system have crashed and have reported this bug

my best

2.6.31-11-generic x86 64

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 208908 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Jonathan Thomas (echidnaman-f) wrote :

*** Bug 180154 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 212813 has been marked as a duplicate of this bug. ***

Changed in kdebase (Ubuntu):
importance: Low → Medium
Revision history for this message
In , Jonathan Thomas (echidnaman-f) wrote :

*** Bug 213519 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 215112 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

Updated backtrace from bug 215527:
---
Application: Konsole (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#6 QList (this=0x0) at /usr/include/QtCore/qlist.h:111
#7 Konsole::ViewContainer::views (this=0x0) at
/home/phil/kdemod/core/kdebase/src/kdebase-4.3.3/apps/konsole/src/ViewContainer.cpp:191
#8 0xb40d6005 in Konsole::ViewManager::viewProperties (this=0x8f10e70) at
/home/phil/kdemod/core/kdebase/src/kdebase-4.3.3/apps/konsole/src/ViewManager.cpp:886
#9 0xb52dee8d in Konsole::MainWindow::queryClose (this=0x8f09750) at
/home/phil/kdemod/core/kdebase/src/kdebase-4.3.3/apps/konsole/src/MainWindow.cpp:341
#10 0xb6e8d081 in KMainWindow::closeEvent (this=0x8f09750, e=0xbfc6f0e8) at
/home/phil/kdemod/core/kdelibs/src/kdelibs-4.3.3/kdeui/widgets/kmainwindow.cpp:588

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 215527 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 215701 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Harald Nikolisin (hochglanz) wrote :

I have also a problem with crashed konsole - and it's perfectly reproducable.

1. open konsole - the default profile start
2. open a second tab with your default profile
3. open a third tab with root profile - login and execute e.g. "ll"
4. then close konsole with the close icon on the upper right corner.

What happens:
Before I closed the konsole session "ps -ef" shows me
"kdeinit4: konsole [kdeinit] --profile development"
After closing the session I'm still detection the process. If I want to restart konsole no window appear - "ps -ef" shows now three processes:
kdeinit4: konsole [kdeinit] --profile development
kdeinit4: konsole [kdeinit] --profile development
[konsole] <defunct>

No more konsole at my KDE session - so I logged out and login in KDE again.
Now an konsole windows opens with gray background an no input possibility. I click on the close button and the KDE crash dialog appears....

...tatatata and now the final!
I click in the crash dialog on the button "restart the application". The button grayed out and nothing happens.

Ok, the bug was present in all of my KDE 4.3 and 4.2 versions - and I got everyone from the openSUSE repos. I'm not sure if it was present in 4.1

Revision history for this message
In , Harald Nikolisin (hochglanz) wrote :

*** This bug has been confirmed by popular vote. ***

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 216236 has been marked as a duplicate of this bug. ***

Revision history for this message
sebaestn (sebaestn) wrote :

Hi,

I also get this apport message (with "kdeinit ..." instead of "konsole ...") after an unsuccessful attempt to resume after suspend to diske. During my tries to resume after suspend to disk I see the kubuntu "wake up screen" until this disappears and X11 should be loaded, I guess. However this screen looks somewhat scrambled with mostly black and some colorful lines on it. Then, the caps indication lamp is flashing on my Thinkpad R50e. However, sometimes the resume also works.

I hope this additional information helps...

Best regards,
sebaestn

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 217499 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 218257 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 220253 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 220816 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 222302 has been marked as a duplicate of this bug. ***

Changed in kdebase:
status: New → Confirmed
Revision history for this message
In , Cfeck (cfeck) wrote :

Is this bug 175758?

Revision history for this message
In , Joona-halo (joona-halo) wrote :

(In reply to comment #25)
> Is this bug 175758?

It could be, that's why it says: "This bug may be a duplicate of or related to bug 175758"

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 225342 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 226072 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 228842 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Kurt Hindenburg (kurt-hindenburg) wrote :

All these are from KDE 4.3.x. If anyone can reproduce using a 4.4.x please mention it.

I can't reproduce here on 4.4.x or trunk.

Revision history for this message
In , Harald Nikolisin (hochglanz) wrote :

It's still there and so simple to reproduce.

1. open a konsole session with at least one root profile
2. do what you want with it or do nothing
3. close the konsole window (e.g., with the "close-X-button")

Voila,
- defunct konsole program (not terminated)
- no chance to restart a konsole session (you have to do killall konsole in xterm first)
- if you do no restart konsole but logout from KDE, the next KDE login will startup a broken konsole session with immediately crashes

I wonder why only 40 votes are given...

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 232886 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

From bug 233793:
-- Information about the crash:
When I logged in and KDE restored the session, I got a Konsole window that had
no tabs - just a grey background. Most of the menus were empty - "Edit",
"Scrollback", etc. Then I tried the "split view" feature, just to see what
happens, and konsole crashed.
In case this is related: the last time I logged out, Konsole had a tab open
with "bash" that was stuck in uninterruptable sleep, and Konsole would freeze
for a while when I tried to close the tab.

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

*** Bug 233793 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Jonathan Thomas (echidnaman-f) wrote :

*** Bug 230430 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Jonathan Thomas (echidnaman-f) wrote :

Bug 203621 is a duplicate from KDE 4.4.

This happens whenever the session data is corrupted or missing. This same crash happened on upgrades from 4.2 -> 4.3, when Konsole gained session support in the first place. What Konsole needs to do is check to see if there is valid session data, then if not just load a default session. Currently it's just loading nothing since the data is either not there or invalid, and the crash on exit is a result of it trying to access an empty list of views.

Revision history for this message
In , Jonathan Thomas (echidnaman-f) wrote :

To reproduce this bug at will, edit the konsole file in ~/.kde/share/config/sessions/ (The file name is dynamic, so it will be different for everyone.)

Inside the file, delete all config sections dedicated to sessions. Also, delete the "Sessions=" key in the [1] group, as well as the "NumberOfSessions=" key in the [Numbers] group.

Once this is done, and this is important, you must kill your KDE session in way that KDE will not be able to save the session. I'd suggest either init 0-ing or doing this as a separate user, then killing that user's Xorg.

While it is true that my method of reproducing this crash is quite involved, it is replicating the situation that appeared on upgrades to KDE 4.3, as well as situations that are still arising in KDE 4.4 when the session data becomes corrupt.

Revision history for this message
In , Jonathan Thomas (echidnaman-f) wrote :

...and of course to conclude the crash, you must log back in. You'll then observe that the konsole window has no console views, and that closing the window will trigger this crash.

Revision history for this message
In , Kurt Hindenburg (kurt-hindenburg) wrote :

Thanks for the info #37. You can also just log out and then edit the konsole session file.

I'll see what I can do about it.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Upstream has made a fix for this crash.

Changed in kdebase (Ubuntu):
assignee: nobody → Jonathan Thomas (echidnaman)
milestone: none → ubuntu-10.04
tags: added: kubuntu
Changed in kdebase (Ubuntu Lucid):
status: Triaged → In Progress
Revision history for this message
In , Kurt Hindenburg (kurt-hindenburg) wrote :

SVN commit 1115480 by hindenburg:

Use the default profile if the session management's Konsole file is unusable (corrupt/missing/etc).

CCBUG: 203621

 M +9 -0 ViewManager.cpp

WebSVN link: http://websvn.kde.org/?view=rev&revision=1115480

Revision history for this message
In , Richih-kde (richih-kde) wrote :

Thanks!

Can you add a (non-modal) notification that the session was broken & thus reset?

Changed in kdebase (Ubuntu Lucid):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kdebase - 4:4.4.2-0ubuntu2

---------------
kdebase (4:4.4.2-0ubuntu2) lucid; urgency=low

  * Add kubuntu_21_konsole_session_crash_fix.diff to fix crashes when the
    session data provided to Konsole is either corrupted or missing.
    Fixes LP: #350740
 -- Jonathan Thomas <email address hidden> Fri, 16 Apr 2010 11:44:43 -0400

Changed in kdebase (Ubuntu Lucid):
status: Fix Committed → Fix Released
Revision history for this message
In , Jonathan Thomas (echidnaman-f) wrote :

I can confirm that the fix works, thanks. Did you mean to close that bug with the commit, or was the CCBUG intentional?

Revision history for this message
In , Kurt Hindenburg (kurt-hindenburg) wrote :

Thanks for testing . I'll close it when I backport to 4.4 branch.

Revision history for this message
In , Kurt Hindenburg (kurt-hindenburg) wrote :

SVN commit 1115610 by hindenburg:

Use the default profile if the session management's Konsole file is unusable (corrupt/missing/etc).

BUG: 203621

 M +9 -0 ViewManager.cpp

WebSVN link: http://websvn.kde.org/?view=rev&revision=1115610

Revision history for this message
In , Kurt Hindenburg (kurt-hindenburg) wrote :

#41 - Creating a modal or non-modal dialog would be non-trival for this message.

Changed in kdebase:
status: Confirmed → Fix Released
Revision history for this message
In , Cfeck (cfeck) wrote :

*** Bug 241694 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Cfeck (cfeck) wrote :

*** Bug 237600 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Cfeck (cfeck) wrote :

*** Bug 234480 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Cfeck (cfeck) wrote :

*** Bug 232565 has been marked as a duplicate of this bug. ***

Changed in kdebase:
importance: Unknown → High
Revision history for this message
In , Kurt Hindenburg (kurt-hindenburg) wrote :

*** Bug 211668 has been marked as a duplicate of this bug. ***

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.