Bug 298569 - Ktorrent crashed while checking data
Summary: Ktorrent crashed while checking data
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-21 20:45 UTC by garik.djachenko
Modified: 2012-04-22 10:06 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 garik.djachenko 2012-04-21 20:45:01 UTC
Application: ktorrent (4.1.1)
KDE Platform Version: 4.7.4 (4.7.4)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-17-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
- What I was doing when the application crashed:
I was starting some torrents that were already downloaded and they were checking data. An error occured when I tried to close the first tab.
- Custom settings of the application:
Maybе it's connected with that I launch Ktorrent on Xubuntu with required libraries, without whole KDE installed.

The crash can be reproduced some of the time.

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

Thread 7 (Thread 0x7f538d0ab700 (LWP 12399)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f5387625c2c in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f5387625d59 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f539d797efc in start_thread (arg=0x7f538d0ab700) at pthread_create.c:304
#4  0x00007f53a03cf59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f538558c700 (LWP 12400)):
#0  0x00007f53a1ca56c3 in postEventSourcePrepare (s=0x7f53880053e0, timeout=0x7f538558bc6c) at kernel/qeventdispatcher_glib.cpp:261
#1  0x00007f539bd81ff2 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f539bd82dfd in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f539bd83429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f53a1ca5f3e in QEventDispatcherGlib::processEvents (this=0x2260bf0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f53a1c79cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f53a1c79ef7 in QEventLoop::exec (this=0x7f538558be00, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007f53a1b9127f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#8  0x00007f53a1b93d05 in QThreadPrivate::start (arg=0x225fd90) at thread/qthread_unix.cpp:331
#9  0x00007f539d797efc in start_thread (arg=0x7f538558c700) at pthread_create.c:304
#10 0x00007f53a03cf59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f537ceff700 (LWP 12424)):
#0  0x00007f53a03c3473 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f53a3f5758a in net::Poll::poll (this=0x18ad680, timeout=<optimized out>) at ../../src/net/poll.cpp:99
#2  0x00007f53a3f54229 in net::DownloadThread::waitForSocketReady (this=0x18ad670) at ../../src/net/downloadthread.cpp:128
#3  0x00007f53a3f54336 in net::DownloadThread::update (this=0x18ad670) at ../../src/net/downloadthread.cpp:48
#4  0x00007f53a3f54549 in net::NetworkThread::run (this=0x18ad670) at ../../src/net/networkthread.cpp:48
#5  0x00007f53a1b93d05 in QThreadPrivate::start (arg=0x18ad670) at thread/qthread_unix.cpp:331
#6  0x00007f539d797efc in start_thread (arg=0x7f537ceff700) at pthread_create.c:304
#7  0x00007f53a03cf59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f5337fff700 (LWP 12425)):
#0  0x00007f53a03c3473 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f53a3f5758a in net::Poll::poll (this=0x18af270, timeout=<optimized out>) at ../../src/net/poll.cpp:99
#2  0x00007f53a3f53b27 in net::UploadThread::waitForSocketsReady (this=0x18af260) at ../../src/net/uploadthread.cpp:129
#3  0x00007f53a3f53c36 in net::UploadThread::update (this=0x18af260) at ../../src/net/uploadthread.cpp:45
#4  0x00007f53a3f54549 in net::NetworkThread::run (this=0x18af260) at ../../src/net/networkthread.cpp:48
#5  0x00007f53a1b93d05 in QThreadPrivate::start (arg=0x18af260) at thread/qthread_unix.cpp:331
#6  0x00007f539d797efc in start_thread (arg=0x7f5337fff700) at pthread_create.c:304
#7  0x00007f53a03cf59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f53377fe700 (LWP 12426)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f53a1b941ab in wait (time=18446744073709551615, this=0x7f53881218c0) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x7f538812a930, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f53a3f570da in net::ReverseResolverThread::run (this=0x7f538812a920) at ../../src/net/reverseresolver.cpp:123
#4  0x00007f53a1b93d05 in QThreadPrivate::start (arg=0x7f538812a920) at thread/qthread_unix.cpp:331
#5  0x00007f539d797efc in start_thread (arg=0x7f53377fe700) at pthread_create.c:304
#6  0x00007f53a03cf59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f537e40b700 (LWP 12600)):
#0  0x00007f53a1ca6a47 in QTimerInfoList::timerWait (this=0x273e1c0, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#1  0x00007f53a1ca544c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f537e40ac3c) at kernel/qeventdispatcher_glib.cpp:136
#2  0x00007f53a1ca54f5 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#3  0x00007f539bd81ff2 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f539bd82dfd in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f539bd83429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f53a1ca5f3e in QEventDispatcherGlib::processEvents (this=0x232d4e0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#7  0x00007f53a1c79cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007f53a1c79ef7 in QEventLoop::exec (this=0x7f537e40add0, flags=...) at kernel/qeventloop.cpp:201
#9  0x00007f53a1b9127f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#10 0x00007f53a1c5ccbf in QInotifyFileSystemWatcherEngine::run (this=0x237c120) at io/qfilesystemwatcher_inotify.cpp:248
#11 0x00007f53a1b93d05 in QThreadPrivate::start (arg=0x237c120) at thread/qthread_unix.cpp:331
#12 0x00007f539d797efc in start_thread (arg=0x7f537e40b700) at pthread_create.c:304
#13 0x00007f53a03cf59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f53a4462780 (LWP 12393)):
[KCrash Handler]
#6  0x0000000000000000 in ?? ()
#7  0x00007f53a3cac04c in kt::JobTracker::description (this=<optimized out>, job=<optimized out>, title=..., field1=..., field2=...) at ../../libktcore/torrent/jobtracker.cpp:89
#8  0x00007f53a20e1d30 in KJobTrackerInterface::qt_metacall (this=0x2000430, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff2ab99180) at ./kjobtrackerinterface.moc:100
#9  0x0000000000499170 in kt::ViewManager::qt_metacall (this=0x2000430, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff2ab99180) at ./viewmanager.moc:116
#10 0x00007f53a1c8deba in QMetaObject::activate (sender=0x3ba94d0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff2ab99180) at kernel/qobject.cpp:3278
#11 0x00007f53a20e0751 in KJob::description (this=<optimized out>, _t1=0x3ba94d0, _t2=<optimized out>, _t3=<optimized out>, _t4=<optimized out>) at ./kjob.moc:201
#12 0x00007f53a3fe32f7 in bt::DataCheckerJob::status (this=0x3ba94d0, num_failed=0, num_found=<optimized out>, num_downloaded=0, num_not_downloaded=<optimized out>) at ../../src/datachecker/datacheckerjob.cpp:135
#13 0x00007f53a3f3d209 in bt::DataCheckerJob::qt_metacall (this=0x3ba94d0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7f5330010e60) at moc_datacheckerjob.cpp:83
#14 0x00007f53a1c91a5e in QObject::event (this=0x3ba94d0, e=<optimized out>) at kernel/qobject.cpp:1217
#15 0x00007f53a102a474 in notify_helper (e=0x7f53300100a0, receiver=0x3ba94d0, this=0x18d4a30) at kernel/qapplication.cpp:4486
#16 QApplicationPrivate::notify_helper (this=0x18d4a30, receiver=0x3ba94d0, e=0x7f53300100a0) at kernel/qapplication.cpp:4458
#17 0x00007f53a102f2e1 in QApplication::notify (this=0x7fff2ab99a60, receiver=0x3ba94d0, e=0x7f53300100a0) at kernel/qapplication.cpp:4365
#18 0x0000000000439921 in kt::App::notify (this=<optimized out>, receiver=<optimized out>, event=<optimized out>) at ../../ktorrent/app.cpp:99
#19 0x00007f53a1c7aafc in QCoreApplication::notifyInternal (this=0x7fff2ab99a60, receiver=0x3ba94d0, event=0x7f53300100a0) at kernel/qcoreapplication.cpp:787
#20 0x00007f53a1c7e51f in sendEvent (event=0x7f53300100a0, receiver=0x3ba94d0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#21 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x18748b0) at kernel/qcoreapplication.cpp:1428
#22 0x00007f53a1ca5a73 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#23 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#24 0x00007f539bd82a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f539bd83258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f539bd83429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f53a1ca5ed6 in QEventDispatcherGlib::processEvents (this=0x1875fa0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#28 0x00007f53a10d210e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#29 0x00007f53a1c79cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#30 0x00007f53a1c79ef7 in QEventLoop::exec (this=0x7fff2ab999f0, flags=...) at kernel/qeventloop.cpp:201
#31 0x00007f53a1c7e789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#32 0x0000000000428362 in main (argc=5, argv=0x7fff2ab9a8d8) at ../../ktorrent/main.cpp:177

Reported using DrKonqi
Comment 1 Joris Guisson 2012-04-22 10:06:16 UTC
This is fixed in 4.2.0