Bug 202239 - When auto-re-join with konvi, always get SIGABRT
Summary: When auto-re-join with konvi, always get SIGABRT
Status: RESOLVED FIXED
Alias: None
Product: konversation
Classification: Applications
Component: protocol (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-01 20:08 UTC by Yoshinari Takaoka
Modified: 2009-08-01 22:10 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 Yoshinari Takaoka 2009-08-01 20:08:08 UTC
Version:           Version 1.2-alpha4+ #3423 (the latest SVN code) (using KDE 4.2.4)
Compiler:          gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3 
OS:                Linux
Installed from:    Ubuntu Packages

Description: When connection close and konvi tries to auto-re-join, get SIGABRT.

How Reproducible: Always.

How to Reproduce:
1. Click [Configure Konversation] from [Settings] menu.
2. In [Behavior] -> [Connection], set [Enable Automatic Reconnect] ON.
3. Connect to an IRC server. 
4. Wait for close IRC connection.

Supplement Info: trace is as follows.

Application: Konversation (konversation), signal SIGABRT
[Current thread is 0 (LWP 19293)]

Thread 3 (Thread 0xb388db90 (LWP 19294)):
#0  0xb7f55430 in __kernel_vsyscall ()
#1  0xb5d9d0e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb60f72ed in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb6cd29b2 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#4  0xb75dd152 in ?? () from /usr/lib/libQtNetwork.so.4
#5  0xb6cd196e in ?? () from /usr/lib/libQtCore.so.4
#6  0xb5d994ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0xb60e849e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xaf247b90 (LWP 20142)):
#0  0xb7f55430 in __kernel_vsyscall ()
#1  0xb60e07b1 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0xb6da3380 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb6cd196e in ?? () from /usr/lib/libQtCore.so.4
#4  0xb5d994ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0xb60e849e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb5794700 (LWP 19293)):
[KCrash Handler]
#6  0xb7f55430 in __kernel_vsyscall ()
#7  0xb602f6d0 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb6031098 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb6cc9595 in qt_message_output () from /usr/lib/libQtCore.so.4
#10 0xb6cc9681 in qFatal () from /usr/lib/libQtCore.so.4
#11 0xb6cc9775 in qt_assert () from /usr/lib/libQtCore.so.4
#12 0x080d57ea in Server::updateAutoJoin (this=0x9c0da48, channel=
      {m_name = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 64079}, alloc = 0, size = 0, data = 0x82896a2, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 152}, alloc = 0, size = 0, data = 0xb6ebaa6e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0xbff71f4c, static codecForCStrings = 0x0}, m_password = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 64079}, alloc = 0, size = 0, data = 0x82896a2, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 152}, alloc = 0, size = 0, data = 0xb6ebaa6e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0xbff71f7c, static codecForCStrings = 0x0}, m_enableNotifications = true})
    at /usr/include/qt4/QtCore/qlist.h:254
#13 0x080e357c in Server::broken (this=0x9c0da48, state=QAbstractSocket::UnknownSocketError) at /home/mumumu/build/konversation/src/irc/server.cpp:625
#14 0x080e3811 in Server::closed (this=0x9c0da48) at /home/mumumu/build/konversation/src/irc/server.cpp:1312
#15 0x080e8447 in Server::qt_metacall (this=0x9c0da48, _c=QMetaObject::InvokeMetaMethod, _id=79, _a=0xbff720a8) at /home/mumumu/build/konversation/build/src/server.moc:376
#16 0xb6ddbca8 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#17 0xb6ddc932 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#18 0xb75f7197 in QAbstractSocket::disconnected () from /usr/lib/libQtNetwork.so.4
#19 0xb76127cd in ?? () from /usr/lib/libQtNetwork.so.4
#20 0xb7616fd6 in QSslSocket::qt_metacall () from /usr/lib/libQtNetwork.so.4
#21 0xb6ddbca8 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#22 0xb6ddc932 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#23 0xb75f7197 in QAbstractSocket::disconnected () from /usr/lib/libQtNetwork.so.4
#24 0xb75fde32 in QAbstractSocket::disconnectFromHostImplementation () from /usr/lib/libQtNetwork.so.4
#25 0xb75fe3bb in QAbstractSocket::qt_metacall () from /usr/lib/libQtNetwork.so.4
#26 0xb7625d42 in QTcpSocket::qt_metacall () from /usr/lib/libQtNetwork.so.4
#27 0xb6dce7a9 in QMetaMethod::invoke () from /usr/lib/libQtCore.so.4
#28 0xb6dcef2f in QMetaObject::invokeMethod () from /usr/lib/libQtCore.so.4
#29 0xb75f74bf in QAbstractSocket::disconnectFromHost () from /usr/lib/libQtNetwork.so.4
#30 0xb7612770 in QSslSocket::disconnectFromHostImplementation () from /usr/lib/libQtNetwork.so.4
#31 0xb761701b in QSslSocket::qt_metacall () from /usr/lib/libQtNetwork.so.4
#32 0xb6dce7a9 in QMetaMethod::invoke () from /usr/lib/libQtCore.so.4
#33 0xb6dcef2f in QMetaObject::invokeMethod () from /usr/lib/libQtCore.so.4
#34 0xb75f74bf in QAbstractSocket::disconnectFromHost () from /usr/lib/libQtNetwork.so.4
#35 0xb75f8d37 in QAbstractSocket::close () from /usr/lib/libQtNetwork.so.4
#36 0xb761332d in QSslSocket::close () from /usr/lib/libQtNetwork.so.4
#37 0x080e81aa in Server::qt_metacall (this=0x9c0da48, _c=QMetaObject::InvokeMetaMethod, _id=106, _a=0xbff72e48) at /home/mumumu/build/konversation/build/src/server.moc:403
#38 0xb6ddbca8 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#39 0xb6ddc932 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#40 0xb6e17717 in QTimer::timeout () from /usr/lib/libQtCore.so.4
#41 0xb6de16fe in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
#42 0xb6dd615f in QObject::event () from /usr/lib/libQtCore.so.4
#43 0xb63cde9c in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#44 0xb63d619e in QApplication::notify () from /usr/lib/libQtGui.so.4
#45 0xb7368e0d in KApplication::notify () from /usr/lib/libkdeui.so.5
#46 0xb6dc5a3b in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#47 0xb6df4d71 in ?? () from /usr/lib/libQtCore.so.4
#48 0xb6df14e0 in ?? () from /usr/lib/libQtCore.so.4
#49 0xb5c6cb88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#50 0xb5c700eb in ?? () from /usr/lib/libglib-2.0.so.0
#51 0xb5c70268 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#52 0xb6df1438 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#53 0xb646f365 in ?? () from /usr/lib/libQtGui.so.4
#54 0xb6dc406a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#55 0xb6dc44aa in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#56 0xb6dc6959 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#57 0xb63cdd17 in QApplication::exec () from /usr/lib/libQtGui.so.4
#58 0x080a3b19 in main (argc=5, argv=0xbff73914) at /home/mumumu/build/konversation/src/main.cpp:100
Comment 1 Peter Simonsson 2009-08-01 22:10:52 UTC
SVN commit 1005706 by psn:

Fix crash when auto reconnecting to server.
Make sure to check if the list is empty when cleaning up the password list while creating the autojoin list.
BUG: 202239


 M  +1 -1      server.cpp  


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