[konsole] [Bug 375540] Seg fault on startup

Orivej Desh bugzilla_noreply at kde.org
Wed Mar 8 03:00:11 UTC 2017


https://bugs.kde.org/show_bug.cgi?id=375540

Orivej Desh <orivej at gmx.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |orivej at gmx.fr

--- Comment #7 from Orivej Desh <orivej at gmx.fr> ---
Created attachment 104445
  --> https://bugs.kde.org/attachment.cgi?id=104445&action=edit
backtrace with some debuginfo

I encountered the same bug after upgrading Konsole from the version that used
~/.kde/share/apps/konsole/konsoleui.rc to 16.12.2.  I collected the traceback
with some debuginfo (attached), noticed container = 0x0, recompiled with the
following patch, and the konsole succesfully launched and allowed me to delete
conflicting keybindings in the settings. After that I was unable to reproduce
the bug, even by deleting ~/.local/share/kxmlgui5/konsole/konsoleui.rc.

diff --git a/src/ViewManager.cpp b/src/ViewManager.cpp
index c187e64..b656ef2 100644
--- a/src/ViewManager.cpp
+++ b/src/ViewManager.cpp
@@ -904,6 +904,8 @@ void ViewManager::saveSessions(KConfigGroup& group)

     // first: sessions in the active container, preserving the order
     ViewContainer* container = _viewSplitter->activeContainer();
+    if (!container) {
+         return;
+    }
-    Q_ASSERT(container);
     TerminalDisplay* activeview =
qobject_cast<TerminalDisplay*>(container->activeView());

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list