Bug 89629 - crash when showing tabbar with centered background
Summary: crash when showing tabbar with centered background
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash (vote)
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-16 15:46 UTC by Maxime Gamboni
Modified: 2004-09-25 16:56 UTC (History)
0 users

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 Maxime Gamboni 2004-09-16 15:46:32 UTC
Version:            (using KDE KDE 3.3.0)
Installed from:    Gentoo Packages
Compiler:          gcc 3.2.3 
OS:                Linux

Konsole crashes (segfault) when I try to display (unhide) the tab bar (setting the tabbar location to either top or bottom instead of hidden) AND if I am currently using a schema with a background image in centered mode.
It also crashes if the background is transparent.

Showing/hiding the menubar doesn't have that problem. Hiding the tabbar doesn't crash either. Having a background in tiled mode doesn't crash.

I tried generating a stacktrace but it kcrash says it appears unusable. I even tried to recompile kdebase with "-g" but that didn't help.

Tell me if I can provide some other info...
Comment 1 Maxime Gamboni 2004-09-16 16:01:27 UTC
I ran konsole in gdb, triggered the crash and:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 22703)]
0x40066a45 in Konsole::pixmap_menu_activated(int, TEWidget*) ()
   from /usr/kde/3.3/lib/libkdeinit_konsole.so
(gdb) where
#0  0x40066a45 in Konsole::pixmap_menu_activated(int, TEWidget*) ()
   from /usr/kde/3.3/lib/libkdeinit_konsole.so
#1  0x40068a42 in Konsole::notifySize(int, int) ()
   from /usr/kde/3.3/lib/libkdeinit_konsole.so
#2  0x400746ad in Konsole::qt_invoke(int, QUObject*) ()
   from /usr/kde/3.3/lib/libkdeinit_konsole.so
#3  0x40e2a590 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#4  0x40098ab1 in TEmulation::ImageSizeChanged(int, int) ()
   from /usr/kde/3.3/lib/libkdeinit_konsole.so
#5  0x4009aba9 in TEmulation::onImageSizeChange(int, int) ()
   from /usr/kde/3.3/lib/libkdeinit_konsole.so
#6  0x4007fdb3 in TESession::onContentSizeChange(int, int) ()
   from /usr/kde/3.3/lib/libkdeinit_konsole.so
#7  0x40082659 in TESession::qt_invoke(int, QUObject*) ()
   from /usr/kde/3.3/lib/libkdeinit_konsole.so
#8  0x40e2a590 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#9  0x4008c7b7 in TEWidget::changedContentSizeSignal(int, int) ()
   from /usr/kde/3.3/lib/libkdeinit_konsole.so
#10 0x40087900 in TEWidget::updateImageSize() ()
   from /usr/kde/3.3/lib/libkdeinit_konsole.so
#11 0x400876c7 in TEWidget::resizeEvent(QResizeEvent*) ()
   from /usr/kde/3.3/lib/libkdeinit_konsole.so
#12 0x40e5f608 in QWidget::event(QEvent*) () from /usr/qt/3/lib/libqt-mt.so.3
#13 0x4008adac in TEWidget::event(QEvent*) () from /usr/kde/3.3/lib/libkdeinit_konsole.so
#14 0x40dcef35 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#15 0x40dce325 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#16 0x4091c0a6 in KApplication::notify(QObject*, QEvent*) ()
   from /usr/kde/3.3/lib/libkdecore.so.4

hth
Comment 2 Stephan Binner 2004-09-25 16:56:45 UTC
CVS commit by binner: 

Bug 89629: crash when showing tabbar with centered background 
CCMAIL: 89629-done@bugs.kde.org


  M +2 -1      konsole.cpp   1.472.2.5


--- kdebase/konsole/konsole/konsole.cpp  #1.472.2.4:1.472.2.5
@@ -1880,9 +1880,10 @@ void Konsole::switchToTabWidget()
     rootxpms.remove(se_widget);
   }
-  delete se_widget;
   setCentralWidget(tabwidget);
   tabwidget->showPage(se->widget());
   tabwidget->show();
 
+  delete se_widget;
+
   if (se->isMasterMode())
     enableMasterModeConnections();