Bug 395069

Summary: Ktorrent crashed unknown reason
Product: [Applications] ktorrent Reporter: ponchorat1968
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED WORKSFORME    
Severity: crash CC: justin.zobel
Priority: NOR Keywords: drkonqi
Version First Reported In: 4.3.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description ponchorat1968 2018-06-05 23:30:16 UTC
Application: ktorrent (4.3.1)
KDE Platform Version: 4.14.22
Qt Version: 4.8.7
Operating System: Linux 4.13.0-43-generic x86_64
Distribution: Ubuntu 16.04.4 LTS

-- Information about the crash:
- What I was doing when the application crashed:

I was downloading quite a number of torrents and one had just finished at 99.99% complete. I had torrent checking on and had clicked on close to hide toe progress when Ktorrent just crashed.

-- Backtrace:
Application: KTorrent (ktorrent), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
[Current thread is 1 (Thread 0x7fdff5f9d900 (LWP 27515))]

Thread 6 (Thread 0x7fdf58e0e700 (LWP 8056)):
[KCrash Handler]
#6  0x00007fdff1cdc428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#7  0x00007fdff1cde02a in __GI_abort () at abort.c:89
#8  0x00007fdff261f84d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#9  0x00007fdff261d6b6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#10 0x00007fdff261d701 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#11 0x00007fdff261d919 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#12 0x00007fdff2981b32 in qBadAlloc () at global/qglobal.cpp:2113
#13 0x00007fdff29dcbfa in QString::realloc (this=this@entry=0x2181e90, alloc=-1073741684) at tools/qstring.cpp:1371
#14 0x00007fdff29e0413 in QString::append (this=this@entry=0x2181e90, str=...) at tools/qstring.cpp:1587
#15 0x00007fdff2a3a42c in QString::operator+= (s=..., this=0x2181e90) at ../../include/QtCore/../../src/corelib/tools/qstring.h:274
#16 QTextStreamPrivate::write (data=..., this=0x2181e00) at io/qtextstream.cpp:922
#17 QTextStreamPrivate::putString (number=false, s=..., this=0x2181e00) at io/qtextstream.cpp:1000
#18 QTextStream::operator<< (this=0x217fd30, string=...) at io/qtextstream.cpp:2533
#19 0x00007fdff5b1af02 in bt::Log::Private::finishLine (this=0x1fbc2c0) at ../../src/util/log.cpp:139
#20 bt::Log::Private::endline (this=0x1fbc2c0) at ../../src/util/log.cpp:161
#21 bt::endl (lg=...) at ../../src/util/log.cpp:224
#22 0x00007fdff5bb769e in bt::Log::operator<< (func=<optimized out>, this=<optimized out>) at ../../src/util/log.h:140
#23 bt::CacheFile::preallocate (this=this@entry=0x112386f0, prealloc=prealloc@entry=0xfa5dd10) at ../../src/diskio/cachefile.cpp:463
#24 0x00007fdff5bb1a18 in bt::PreallocationThread::run (this=0xfa5dd10) at ../../src/diskio/preallocationthread.cpp:67
#25 0x00007fdff298ce3c in QThreadPrivate::start (arg=0xfa5dd10) at thread/qthread_unix.cpp:352
#26 0x00007fdfeecc96ba in start_thread (arg=0x7fdf58e0e700) at pthread_create.c:333
#27 0x00007fdff1dae41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7fdfabfff700 (LWP 27544)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fdff298d3a6 in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x226e230) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x3f5f588, mutex=mutex@entry=0x3f5f580, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fdff5b2f1b2 in net::ReverseResolverThread::run (this=0x3f5f570) at ../../src/net/reverseresolver.cpp:124
#4  0x00007fdff298ce3c in QThreadPrivate::start (arg=0x3f5f570) at thread/qthread_unix.cpp:352
#5  0x00007fdfeecc96ba in start_thread (arg=0x7fdfabfff700) at pthread_create.c:333
#6  0x00007fdff1dae41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7fdfb09e9700 (LWP 27543)):
#0  0x00007fdff5b2730c in QMutex::lockInline (this=0x2f3fef0) at /usr/include/qt4/QtCore/qmutex.h:187
#1  QMutexLocker::QMutexLocker (m=0x2f3fef0, this=<synthetic pointer>) at /usr/include/qt4/QtCore/qmutex.h:109
#2  net::PacketSocket::bytesReadyToWrite (this=0x2f3fec0) at ../../src/net/packetsocket.cpp:160
#3  0x00007fdff5b2bea3 in net::UploadThread::waitForSocketsReady (this=this@entry=0x1fb8260) at ../../src/net/uploadthread.cpp:122
#4  0x00007fdff5b2c006 in net::UploadThread::update (this=0x1fb8260) at ../../src/net/uploadthread.cpp:45
#5  0x00007fdff5b2c8c9 in net::NetworkThread::run (this=0x1fb8260) at ../../src/net/networkthread.cpp:48
#6  0x00007fdff298ce3c in QThreadPrivate::start (arg=0x1fb8260) at thread/qthread_unix.cpp:352
#7  0x00007fdfeecc96ba in start_thread (arg=0x7fdfb09e9700) at pthread_create.c:333
#8  0x00007fdff1dae41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7fdfb11ea700 (LWP 27542)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fdff298b672 in _q_futex (val2=0, addr2=0x0, timeout=0x0, val=2, op=0, addr=0x1fbc310) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=this@entry=0x1fbc310, timeout=timeout@entry=-1) at thread/qmutex_unix.cpp:113
#3  0x00007fdff2987925 in QMutex::lockInternal (this=<optimized out>) at thread/qmutex.cpp:450
#4  0x00007fdff2987a1b in QMutex::lock (this=<optimized out>) at thread/qmutex.cpp:177
#5  0x00007fdff5b1a42d in bt::Log::lock (this=<optimized out>) at ../../src/util/log.cpp:264
#6  0x00007fdff5b1a46e in bt::Out (arg=arg@entry=23) at ../../src/util/log.cpp:272
#7  0x00007fdff5b2eb5a in net::WakeUpPipe::handleData (this=0x1fb8200) at ../../src/net/wakeuppipe.cpp:57
#8  0x00007fdff5b2f720 in net::Poll::poll (this=this@entry=0x1fb7e80, timeout=timeout@entry=-1) at ../../src/net/poll.cpp:108
#9  0x00007fdff5b2c594 in net::DownloadThread::waitForSocketReady (this=this@entry=0x1fb7e70) at ../../src/net/downloadthread.cpp:128
#10 0x00007fdff5b2c6c6 in net::DownloadThread::update (this=0x1fb7e70) at ../../src/net/downloadthread.cpp:48
#11 0x00007fdff5b2c8c9 in net::NetworkThread::run (this=0x1fb7e70) at ../../src/net/networkthread.cpp:48
#12 0x00007fdff298ce3c in QThreadPrivate::start (arg=0x1fb7e70) at thread/qthread_unix.cpp:352
#13 0x00007fdfeecc96ba in start_thread (arg=0x7fdfb11ea700) at pthread_create.c:333
#14 0x00007fdff1dae41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7fdfe08a1700 (LWP 27541)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fdff298b672 in _q_futex (val2=0, addr2=0x0, timeout=0x0, val=2, op=0, addr=0x1fbc310) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=this@entry=0x1fbc310, timeout=timeout@entry=-1) at thread/qmutex_unix.cpp:113
#3  0x00007fdff2987925 in QMutex::lockInternal (this=<optimized out>) at thread/qmutex.cpp:450
#4  0x00007fdff2987a1b in QMutex::lock (this=<optimized out>) at thread/qmutex.cpp:177
#5  0x00007fdff5b1a42d in bt::Log::lock (this=<optimized out>) at ../../src/util/log.cpp:264
#6  0x00007fdff5b1a46e in bt::Out (arg=arg@entry=19) at ../../src/util/log.cpp:272
#7  0x00007fdff5b1b4ca in bt::QtMessageOutput (type=<optimized out>, msg=0x7fdfdc003768 "QSocketNotifier: Invalid socket 113 and type 'Read', disabling...") at ../../src/util/log.cpp:300
#8  0x00007fdff2981e9f in qt_message_output (msgType=msgType@entry=QtWarningMsg, buf=0x7fdfdc003768 "QSocketNotifier: Invalid socket 113 and type 'Read', disabling...") at global/qglobal.cpp:2372
#9  0x00007fdff2982371 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtWarningMsg, msg=msg@entry=0x7fdff2b836d0 "QSocketNotifier: Invalid socket %d and type '%s', disabling...", ap=ap@entry=0x7fdfe08a09a0) at global/qglobal.cpp:2493
#10 0x00007fdff29825e1 in qWarning (msg=msg@entry=0x7fdff2b836d0 "QSocketNotifier: Invalid socket %d and type '%s', disabling...") at global/qglobal.cpp:2575
#11 0x00007fdff2acca73 in socketNotifierSourceCheck (source=0x7fdfdc001190) at kernel/qeventdispatcher_glib.cpp:94
#12 0x00007fdfedd4ddc1 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007fdfedd4e330 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007fdfedd4e49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007fdff2acd23e in QEventDispatcherGlib::processEvents (this=0x7fdfdc003200, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#16 0x00007fdff2a9b13f in QEventLoop::processEvents (this=this@entry=0x7fdfe08a0c80, flags=...) at kernel/qeventloop.cpp:149
#17 0x00007fdff2a9b4a5 in QEventLoop::exec (this=this@entry=0x7fdfe08a0c80, flags=...) at kernel/qeventloop.cpp:204
#18 0x00007fdff298a549 in QThread::exec (this=this@entry=0x40fe3a0) at thread/qthread.cpp:538
#19 0x00007fdff2a7b1d3 in QInotifyFileSystemWatcherEngine::run (this=0x40fe3a0) at io/qfilesystemwatcher_inotify.cpp:265
#20 0x00007fdff298ce3c in QThreadPrivate::start (arg=0x40fe3a0) at thread/qthread_unix.cpp:352
#21 0x00007fdfeecc96ba in start_thread (arg=0x7fdfe08a1700) at pthread_create.c:333
#22 0x00007fdff1dae41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fdff5f9d900 (LWP 27515)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fdff298b672 in _q_futex (val2=0, addr2=0x0, timeout=0x0, val=2, op=0, addr=0x1fbc310) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=this@entry=0x1fbc310, timeout=timeout@entry=-1) at thread/qmutex_unix.cpp:113
#3  0x00007fdff2987925 in QMutex::lockInternal (this=<optimized out>) at thread/qmutex.cpp:450
#4  0x00007fdff2987a1b in QMutex::lock (this=<optimized out>) at thread/qmutex.cpp:177
#5  0x00007fdff5b1a42d in bt::Log::lock (this=<optimized out>) at ../../src/util/log.cpp:264
#6  0x00007fdff5b1a46e in bt::Out (arg=arg@entry=19) at ../../src/util/log.cpp:272
#7  0x00007fdff5b1b4ca in bt::QtMessageOutput (type=<optimized out>, msg=0x7578358 "QSocketNotifier: Invalid socket 13 and type 'Read', disabling...") at ../../src/util/log.cpp:300
#8  0x00007fdff2981e9f in qt_message_output (msgType=msgType@entry=QtWarningMsg, buf=0x7578358 "QSocketNotifier: Invalid socket 13 and type 'Read', disabling...") at global/qglobal.cpp:2372
#9  0x00007fdff2982371 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtWarningMsg, msg=msg@entry=0x7fdff2b836d0 "QSocketNotifier: Invalid socket %d and type '%s', disabling...", ap=ap@entry=0x7ffe2ec6c500) at global/qglobal.cpp:2493
#10 0x00007fdff29825e1 in qWarning (msg=msg@entry=0x7fdff2b836d0 "QSocketNotifier: Invalid socket %d and type '%s', disabling...") at global/qglobal.cpp:2575
#11 0x00007fdff2acca73 in socketNotifierSourceCheck (source=0x1fee4f0) at kernel/qeventdispatcher_glib.cpp:94
#12 0x00007fdfedd4ddc1 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007fdfedd4e330 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007fdfedd4e49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007fdff2acd21e in QEventDispatcherGlib::processEvents (this=0x1fb32b0, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#16 0x00007fdff3076616 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#17 0x00007fdff2a9b13f in QEventLoop::processEvents (this=this@entry=0x7ffe2ec6c810, flags=...) at kernel/qeventloop.cpp:149
#18 0x00007fdff2a9b4a5 in QEventLoop::exec (this=this@entry=0x7ffe2ec6c810, flags=...) at kernel/qeventloop.cpp:204
#19 0x00007fdff2aa1469 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#20 0x00007fdff2fc722c in QApplication::exec () at kernel/qapplication.cpp:3828
#21 0x0000000000427c52 in main (argc=5, argv=0x7ffe2ec6d628) at ../../ktorrent/main.cpp:186

Possible duplicates by query: bug 277629, bug 269746, bug 265865, bug 254903, bug 250301.

Reported using DrKonqi
Comment 1 Christoph Feck 2018-06-21 12:06:08 UTC
Looks like bt::Log grew over 2 GiB. Not sure why it tries to keep the complete log in memory.
Comment 2 Justin Zobel 2020-12-02 05:29:20 UTC
Thank you for the report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thank you.
Comment 3 Bug Janitor Service 2020-12-17 04:34:16 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2021-01-01 04:39:38 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!