Bug 110135 - using a tab opened in a SSL session after the session is closed leads to crash
Summary: using a tab opened in a SSL session after the session is closed leads to crash
Status: RESOLVED FIXED
Alias: None
Product: konversation
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-04 00:21 UTC by Emil Obermayr
Modified: 2005-08-04 00:30 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 Emil Obermayr 2005-08-04 00:21:58 UTC
Version:           0.19 CVS #3024 (using KDE KDE 3.4.0)
Installed from:    SuSE RPMs
Compiler:          gcc 3.3.5 suse9.3
OS:                Linux

changed to SSL-connection
log in successfull
clicked on "Mitschnitt" (log) from old non-ssl-connection
crash


Shell-Konsole:

konversation: SSLSocket::readBlock : :lynx.furnet.org 352 nobs #pantherchat Adra
melec p54A3C9E8.dip.t-dialin.net panther.furnet.org PantherWORKS H% :2 Nicolai L
esniewski ( Anthro Leoparden Panther )
:lynx.furnet.org 352 nobs #pantherchat ~pangur localhost lynx.furnet.org FIA G+
:0 http://lynx.furnet.info/~pangur/pantherchat/
:lynx.furnet.org 315 nobs #pantherchat :End of /WHO list.
Hr@ :2 Foh
konversation: SSLSocket::writeBlock : WHOIS taleel
konversation:
konversation: SSLSocket::readBlock : :lynx.furnet.org 311 nobs Taleel taleel too
lnine.argh.org * :Heiko Niemeier
:lynx.furnet.org 307 nobs Taleel :is a registered nick
:lynx.furnet.org 312 nobs Taleel panther.furnet.org :FurNet in Frankfurt, German
y
:lynx.furnet.org 301 nobs Taleel :Busy at work. Msgs will be logged.
:lynx.furnet.org 318 nobs taleel :End of /WHOIS list.
HO list.
konversation:
konversation: SSLSocket::readBlock : :Goddy!~Goddy@dsl-082-083-246-203.arcor-ip.                                                                            net NICK :Goddy|WWP
x
konversation: SSLSocket::readBlock : :Eis2!~eisfuchs@p5493407F.dip.t-dialin.net                                                                             PRIVMSG #pantherchat :Nops.
,
konversation: SSLSocket::readBlock : :Foxy!~Foxy@husky.dasytech.de MODE #panther                                                                            chat +o nobs

konversation: SSLSocket::writeBlock : ISON cheetah cougar lou_wolfskin nifelan s                                                                            kunki taleel
konversation:
konversation: SSLSocket::readBlock : :lynx.furnet.org 303 nobs :lou_wolfskin tal                                                                            eel
 %G� %@
konversation: SSLSocket::readBlock : :Foxy!~Foxy@husky.dasytech.de PRIVMSG #pant                                                                            herchat :ACTION kaut auf Eis2 rum
HI
KCrash: Application 'konversation' crashing...




Debug-Backtrace:


Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 1097049312 (LWP 3349)]
[KCrash handler]
#7  0x4095dd4a in KNetwork::KClientSocketBase::state ()
   from /opt/kde3/lib/libkdecore.so.4
#8  0x0809549c in KonversationMainWindow::updateSSLInfo (this=0x84c1490, 
    server=0x853c0d0)
    at /usr/local/src/konversation/extragear-network/konversation/src/konversationmainwindow.cpp:1176
#9  0x08094408 in KonversationMainWindow::changeView (this=0x84c1490, 
    viewToChange=0x87a9dc8)
    at /usr/local/src/konversation/extragear-network/konversation/src/konversationmainwindow.cpp:982
#10 0x08098c9f in KonversationMainWindow::qt_invoke (this=0x84c1490, _id=107, 
    _o=0xbfffdf10) at konversationmainwindow.moc:431
#11 0x40d0be7e in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#12 0x4107c192 in QTabWidget::currentChanged ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#13 0x40e41893 in QTabWidget::showTab () from /usr/lib/qt3/lib/libqt-mt.so.3
#14 0x4107c089 in QTabWidget::qt_invoke () from /usr/lib/qt3/lib/libqt-mt.so.3
#15 0x405ab815 in KTabWidget::qt_invoke () from /opt/kde3/lib/libkdeui.so.4
#16 0x40d0be7e in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0x40d0c4ad in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x4107b980 in QTabBar::selected () from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0x40e3d620 in QTabBar::setCurrentTab () from /usr/lib/qt3/lib/libqt-mt.so.3
#20 0x40e3c6bf in QTabBar::mousePressEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#21 0x405af46a in KTabBar::mousePressEvent () from /opt/kde3/lib/libkdeui.so.4
#22 0x40d423f6 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0x40e3c222 in QTabBar::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#24 0x40ca8d5f in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0x40cab266 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x409186b1 in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#27 0x40c4628e in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#28 0x40c45146 in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#29 0x40c55c38 in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0x40cc0e51 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#31 0x40cc0c96 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#32 0x40caa94f in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#33 0x08180e8d in main (argc=1, argv=0xbfffefa4)
    at /usr/local/src/konversation/extragear-network/konversation/src/main.cpp:104
Comment 1 Peter Simonsson 2005-08-04 00:30:20 UTC
SVN commit 442806 by psn:

Don't crash when showing a log from a closed connection
BUG:110135


 M  +12 -12    konversationmainwindow.cpp  


--- trunk/extragear/network/konversation/src/konversationmainwindow.cpp #442805:442806
@@ -601,7 +601,7 @@
   if(!file.isEmpty()) {
     LogfileReader* logReader = new LogfileReader(getViewContainer(), file);
     addView(logReader, i18n("Logfile of %1").arg(caption));
-    logReader->setServer(frontServer);
+    logReader->setServer(0);
   }
 }
 
@@ -1297,19 +1297,19 @@
 
 void KonversationMainWindow::goToTab(int page)
 {
-    if ( page >= getViewContainer()->count() )
-        page = 0;
-    else if ( page < 0 )
-        page = getViewContainer()->count() - 1;
+  if(page >= getViewContainer()->count())
+    page = 0;
+  else if(page < 0)
+    page = getViewContainer()->count() - 1;
 
-    if(page>=0)
-    {
-        getViewContainer()->setCurrentPage(page);
-        ChatWindow* newPage=static_cast<ChatWindow*>(getViewContainer()->page(page));
-        newPage->adjustFocus();
-    }
+  if(page >= 0)
+  {
+    getViewContainer()->setCurrentPage(page);
+    ChatWindow* newPage=static_cast<ChatWindow*>(getViewContainer()->page(page));
+    newPage->adjustFocus();
+  }
 
-    m_popupTabIndex = -1;
+  m_popupTabIndex = -1;
 }
 
 void KonversationMainWindow::findText()