Bug 256639 - ktorrent crash when exiting
Summary: ktorrent crash when exiting
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-11 23:32 UTC by Ron Bombard
Modified: 2011-01-27 18:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ron Bombard 2010-11-11 23:32:24 UTC
Application: ktorrent (4.0.4)
KDE Platform Version: 4.4.2 (KDE 4.4.2) (Compiled from sources)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-26-generic x86_64
Distribution: Ubuntu 10.04.1 LTS

-- Information about the crash:
every time I exit ktorrent, the application crashes with a Signal: 11 (Segmentation fault).
If I run from the command line, I get the following output:

Warning: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
Warning: QFileSystemWatcher: failed to add paths: /home/ronb/.config/ibus/bus
Warning: Bus::open: Can not get ibus-daemon's address. 
Warning: Calling appendChild() on a null node does nothing.
Warning: Calling appendChild() on a null node does nothing.
Warning: Calling appendChild() on a null node does nothing.
Warning: Calling appendChild() on a null node does nothing.
Warning: Calling appendChild() on a null node does nothing.
Warning: Calling appendChild() on a null node does nothing.
Warning: Calling appendChild() on a null node does nothing.
KCrash: Application 'ktorrent' crashing...
sock_file=/home/ronb/.kde/socket-vulcan/kdeinit4__0
Warning: QSocketNotifier: Invalid socket 22 and type 'Read', disabling...


The crash can be reproduced every time.

 -- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f387cf21760 (LWP 12697))]

Thread 3 (Thread 0x7f386ffdc710 (LWP 12699)):
#0  0x00007f3878b12ff3 in select () from /lib/libc.so.6
#1  0x00007f387caa30e2 in dht::RPCServerThread::run (this=0x1171d40) at /home/ronb/Programs/libktorrent-1.0.4/src/dht/rpcserver.cpp:107
#2  0x00007f387a492775 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f387a2029ca in start_thread () from /lib/libpthread.so.0
#4  0x00007f3878b1a70d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f386d34c710 (LWP 12700)):
#0  0x00007fff177ff904 in clock_gettime ()
#1  0x00007f387544009f in clock_gettime () from /lib/librt.so.1
#2  0x00007f387a5ad99f in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f387a5b26ad in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f387a5b26d5 in ?? () from /usr/lib/libQtCore.so.4
#5  0x00007f387a5b075d in ?? () from /usr/lib/libQtCore.so.4
#6  0x00007f387a5b0805 in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007f387519feb1 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0x00007f38751a0318 in ?? () from /lib/libglib-2.0.so.0
#9  0x00007f38751a08fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0x00007f387a5b0566 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#11 0x00007f387a585992 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#12 0x00007f387a585d6c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#13 0x00007f387a48fd59 in QThread::exec() () from /usr/lib/libQtCore.so.4
#14 0x00007f387a566178 in ?? () from /usr/lib/libQtCore.so.4
#15 0x00007f387a492775 in ?? () from /usr/lib/libQtCore.so.4
#16 0x00007f387a2029ca in start_thread () from /lib/libpthread.so.0
#17 0x00007f3878b1a70d in clone () from /lib/libc.so.6
#18 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f387cf21760 (LWP 12697)):
[KCrash Handler]
#5  0x00007f387ca4245a in net::UploadThread::signalDataReady (this=<value optimized out>) at /home/ronb/Programs/libktorrent-1.0.4/src/net/uploadthread.cpp:96
#6  0x00007f387ca419e9 in net::SocketMonitor::shutdown (this=0x6d70e0) at /home/ronb/Programs/libktorrent-1.0.4/src/net/socketmonitor.cpp:53
#7  0x000000000042e93c in kt::Core::onExit (this=0x7f386804e060) at /home/ronb/Programs/ktorrent-4.0.4/ktorrent/core.cpp:877
#8  0x0000000000436214 in kt::GUI::queryExit (this=0x7f3868000b10) at /home/ronb/Programs/ktorrent-4.0.4/ktorrent/gui.cpp:563
#9  0x00007f387bca41c4 in ?? () from /usr/lib/libkdeui.so.5
#10 0x00007f387bca8539 in KMainWindow::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdeui.so.5
#11 0x00007f387bce3c25 in KXmlGuiWindow::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdeui.so.5
#12 0x00000000004397a0 in kt::GUI::qt_metacall (this=0x103ae40, _c=4294967295, _id=-32, _a=0xfffffffffff69988) at /home/ronb/Programs/ktorrent-4.0.4/build/ktorrent/gui.moc:102
#13 0x00007f387a599e3f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#14 0x00007f387a589ad3 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#15 0x000000000042930b in main (argc=<value optimized out>, argv=<value optimized out>) at /home/ronb/Programs/ktorrent-4.0.4/ktorrent/main.cpp:176

Reported using DrKonqi
Comment 1 Joris Guisson 2011-01-27 18:48:11 UTC
Git commit 376c30979cd4d1d668c26daf5e0266d2d46dc259 by Joris.
Pushed by guisson into branch 'master'.

Fix crashes at exit

BUG: 264378
BUG: 256639

M  +1    -0    ChangeLog     
M  +74   -36   src/net/socketmonitor.cpp     
M  +9    -11   src/net/socketmonitor.h     

http://commits.kde.org/003b774d/376c30979cd4d1d668c26daf5e0266d2d46dc259
Comment 2 Joris Guisson 2011-01-27 18:49:57 UTC
Git commit ca5d0595bf9bf826207cddacc03cc9eb9349efd8 by Joris.
Pushed by guisson into branch '1.1'.

Backport to 1.1: Fix crashes at exit

CCBUG: 264378
CCBUG: 256639

M  +1    -0    ChangeLog     
M  +74   -36   src/net/socketmonitor.cpp     
M  +9    -11   src/net/socketmonitor.h     

http://commits.kde.org/003b774d/ca5d0595bf9bf826207cddacc03cc9eb9349efd8