Bug 429070 - Application: KGet (kget), signal: Segmentation fault when downloading a torrent
Summary: Application: KGet (kget), signal: Segmentation fault when downloading a torrent
Status: RESOLVED WORKSFORME
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords: drkonqi
: 429430 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-11-13 21:35 UTC by john4deidre2013
Modified: 2022-11-30 05:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (10.55 KB, patch)
2020-11-26 09:30 UTC, guenter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description john4deidre2013 2020-11-13 21:35:06 UTC
Application: kget (20.8.3)

Qt Version: 5.15.1
Frameworks Version: 5.75.0
Operating System: Linux 5.9.1-2-default x86_64
Windowing system: X11
Distribution: "openSUSE Tumbleweed"

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

I was downloading a torrent iso from arch linux and it crashed unexpectantly

-- Backtrace:
Application: KGet (kget), signal: Segmentation fault

[New LWP 13047]
[New LWP 13048]
[New LWP 13049]
[New LWP 13050]
[New LWP 13051]
[New LWP 13052]
[New LWP 13053]
[New LWP 13054]
[New LWP 13059]
[New LWP 13096]
[New LWP 13097]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007f1b0548ad7f in wait4 () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7f1b07072880 (LWP 13045))]

Thread 12 (Thread 0x7f1aa9ff3640 (LWP 13097)):
#0  0x00007f1afa813d58 in net::UploadThread::waitForSocketsReady (this=<optimized out>) at /usr/src/debug/libktorrent-2.2.0-1.3.x86_64/src/net/uploadthread.cpp:122
#1  net::UploadThread::update (this=0x5635ec210870) at /usr/src/debug/libktorrent-2.2.0-1.3.x86_64/src/net/uploadthread.cpp:45
#2  0x00007f1afa8138c9 in net::NetworkThread::run (this=0x5635ec210870) at /usr/src/debug/libktorrent-2.2.0-1.3.x86_64/src/net/networkthread.cpp:48
#3  0x00007f1b05a2ade1 in QThreadPrivate::start (arg=0x5635ec210870) at thread/qthread_unix.cpp:329
#4  0x00007f1b040d63e9 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f1b054beb73 in clone () from /lib64/libc.so.6

Thread 11 (Thread 0x7f1aaa7f4640 (LWP 13096)):
#0  0x00007f1b054b957d in syscall () from /lib64/libc.so.6
#1  0x00007f1b05a2b105 in QtLinuxFutex::_q_futex (val3=0, addr2=0x0, val2=0, val=3, op=0, addr=0x5635ec272608) at thread/qfutex_p.h:133
#2  QtLinuxFutex::futexWait<QBasicAtomicPointer<QMutexData> > (expectedValue=0x3, futex=...) at thread/qfutex_p.h:135
#3  lockInternal_helper<false> (timeout=-1, elapsedTimer=0x0, d_ptr=...) at thread/qmutex_linux.cpp:142
#4  QBasicMutex::lockInternal (this=0x5635ec272608) at thread/qmutex_linux.cpp:159
#5  0x00007f1b05a2b403 in QBasicMutex::lock (this=0x5635ec272608) at thread/qmutex.h:81
#6  QRecursiveMutexPrivate::lock (this=0x5635ec2725f0, timeout=timeout@entry=-1) at thread/qmutex.cpp:778
#7  0x00007f1b05a2b2f5 in QMutex::lock (this=<optimized out>) at thread/qmutex.cpp:233
#8  0x00007f1afa810299 in net::SocketMonitor::lock (this=<optimized out>) at /usr/src/debug/libktorrent-2.2.0-1.3.x86_64/src/net/socketmonitor.cpp:108
#9  0x00007f1afa8141cc in net::DownloadThread::update (this=0x5635ec1cfaf0) at /usr/src/debug/libktorrent-2.2.0-1.3.x86_64/src/net/downloadthread.cpp:51
#10 net::DownloadThread::update (this=0x5635ec1cfaf0) at /usr/src/debug/libktorrent-2.2.0-1.3.x86_64/src/net/downloadthread.cpp:46
#11 0x00007f1afa8138c9 in net::NetworkThread::run (this=0x5635ec1cfaf0) at /usr/src/debug/libktorrent-2.2.0-1.3.x86_64/src/net/networkthread.cpp:48
#12 0x00007f1b05a2ade1 in QThreadPrivate::start (arg=0x5635ec1cfaf0) at thread/qthread_unix.cpp:329
#13 0x00007f1b040d63e9 in start_thread () from /lib64/libpthread.so.0
#14 0x00007f1b054beb73 in clone () from /lib64/libc.so.6

Thread 10 (Thread 0x7f1ad67fc640 (LWP 13059)):
#0  0x00007f1b054b3a6f in poll () from /lib64/libc.so.6
#1  0x00007f1b03521fbe in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f1b035220df in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f1b05c61a9b in QEventDispatcherGlib::processEvents (this=0x7f1ab8000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f1b05c08eeb in QEventLoop::exec (this=this@entry=0x7f1ad67fbc80, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f1b05a29c9e in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f1b05a2ade1 in QThreadPrivate::start (arg=0x5635ec61b4a0) at thread/qthread_unix.cpp:329
#7  0x00007f1b040d63e9 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f1b054beb73 in clone () from /lib64/libc.so.6

Thread 9 (Thread 0x7f1acf7fe640 (LWP 13054)):
#0  0x00007f1b040dc6b2 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1af8c6c0ab in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f1af8c6b567 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f1b040d63e9 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f1b054beb73 in clone () from /lib64/libc.so.6

Thread 8 (Thread 0x7f1ad7fff640 (LWP 13053)):
#0  0x00007f1b040dc6b2 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1af8c6c0ab in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f1af8c6b567 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f1b040d63e9 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f1b054beb73 in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7f1aecb38640 (LWP 13052)):
#0  0x00007f1b040dc6b2 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1af8c6c0ab in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f1af8c6b567 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f1b040d63e9 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f1b054beb73 in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f1aed339640 (LWP 13051)):
#0  0x00007f1b040dc6b2 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1af8c6c0ab in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f1af8c6b567 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f1b040d63e9 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f1b054beb73 in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f1aedb3a640 (LWP 13050)):
#0  0x00007f1b040dc6b2 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1af8c6c0ab in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f1af8c6b567 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f1b040d63e9 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f1b054beb73 in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f1aee33b640 (LWP 13049)):
#0  0x00007f1b040dc6b2 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1af8c6c0ab in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f1af8c6b567 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f1b040d63e9 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f1b054beb73 in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f1aeeb3c640 (LWP 13048)):
#0  0x00007f1b040dc6b2 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1af8c6c0ab in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f1af8c6b567 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f1b040d63e9 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f1b054beb73 in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f1afbc4c640 (LWP 13047)):
#0  0x00007f1b054af48c in read () from /lib64/libc.so.6
#1  0x00007f1b0356e3ff in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f1b03521b0e in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f1b03521f65 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f1b035220df in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f1b05c61a9b in QEventDispatcherGlib::processEvents (this=0x7f1af4000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f1b05c08eeb in QEventLoop::exec (this=this@entry=0x7f1afbc4bc30, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#7  0x00007f1b05a29c9e in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#8  0x00007f1b060307c7 in QDBusConnectionManager::run (this=0x7f1b0609e420 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:179
#9  0x00007f1b05a2ade1 in QThreadPrivate::start (arg=0x7f1b0609e420 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:329
#10 0x00007f1b040d63e9 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f1b054beb73 in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f1b07072880 (LWP 13045)):
[KCrash Handler]
#4  0x00007f1afa82ccc3 in bt::WebSeed::disable (this=0x0, reason=...) at /usr/src/debug/libktorrent-2.2.0-1.3.x86_64/src/download/webseed.cpp:108
#5  0x00007f1afa83f499 in bt::Downloader::onChunkReady (this=0x7fff579acb48, c=0x5635ec561ff0) at /usr/include/KF5/KI18n/klocalizedstring.h:1347
#6  0x00007f1b05c40b06 in QtPrivate::QSlotObjectBase::call (a=0x7fff579accb0, r=0x5635ec603d30, this=0x5635ec6d3800) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#7  doActivate<false> (sender=0x5635ec6d35d0, signal_index=3, argv=argv@entry=0x7fff579accb0) at kernel/qobject.cpp:3886
#8  0x00007f1b05c39e60 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f1afa901820 <bt::WebSeed::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff579accb0) at kernel/qobject.cpp:3946
#9  0x00007f1afa7f0d4f in bt::WebSeed::chunkReady (this=<optimized out>, _t1=<optimized out>) at /usr/src/debug/libktorrent-2.2.0-1.3.x86_64/build/src/KF5Torrent_autogen/WU5H7VG4RY/moc_webseed.cpp:189
#10 0x00007f1afa832cbd in bt::WebSeed::handleData (this=0x5635ec6d35d0, tmp=...) at /usr/src/debug/libktorrent-2.2.0-1.3.x86_64/src/download/webseed.cpp:456
#11 0x00007f1afa832fca in bt::WebSeed::readData (this=0x5635ec6d35d0) at /usr/src/debug/libktorrent-2.2.0-1.3.x86_64/src/download/webseed.cpp:412
#12 0x00007f1afa835fb5 in bt::WebSeed::update (this=0x5635ec6d35d0) at /usr/src/debug/libktorrent-2.2.0-1.3.x86_64/src/download/webseed.cpp:367
#13 0x00007f1afa8375e2 in bt::Downloader::update (this=0x5635ec603d30) at /usr/src/debug/libktorrent-2.2.0-1.3.x86_64/src/download/downloader.cpp:201
#14 0x00007f1afa84cbc1 in bt::TorrentControl::update (this=0x7f1afc008b60) at /usr/src/debug/libktorrent-2.2.0-1.3.x86_64/src/torrent/torrentcontrol.cpp:167
#15 0x00007f1afa96e95c in BTTransfer::updateTorrent (this=0x5635ec5f2720) at /usr/src/debug/kget-20.08.3-1.1.x86_64/transfer-plugins/bittorrent/bttransfer.cpp:321
#16 BTTransfer::update (this=0x5635ec5f2720) at /usr/src/debug/kget-20.08.3-1.1.x86_64/transfer-plugins/bittorrent/bttransfer.cpp:214
#17 BTTransfer::qt_static_metacall (_o=0x5635ec5f2720, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/kget-20.08.3-1.1.x86_64/build/transfer-plugins/bittorrent/kget_bittorrent_autogen/EWIEGA46WW/moc_bttransfer.cpp:104
#18 0x00007f1b05c40b40 in doActivate<false> (sender=0x5635ec5f2858, signal_index=3, argv=argv@entry=0x7fff579ad090) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:395
#19 0x00007f1b05c39e60 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f1b05eeeba0, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff579ad090) at kernel/qobject.cpp:3946
#20 0x00007f1b05c44a1a in QTimer::timeout (this=<optimized out>, _t1=...) at .moc/moc_qtimer.cpp:205
#21 0x00007f1b05c3648f in QObject::event (this=0x5635ec5f2858, e=0x7fff579ad200) at kernel/qobject.cpp:1291
#22 0x00007f1b069c94ff in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5635ec5f2858, e=0x7fff579ad200) at kernel/qapplication.cpp:3630
#23 0x00007f1b05c0a52a in QCoreApplication::notifyInternal2 (receiver=0x5635ec5f2858, event=0x7fff579ad200) at ../../include/QtCore/5.15.1/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#24 0x00007f1b05c60e43 in QTimerInfoList::activateTimers (this=0x5635ec1b2de0) at kernel/qtimerinfo_unix.cpp:643
#25 0x00007f1b05c616c4 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:183
#26 0x00007f1b03521ca7 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#27 0x00007f1b03522028 in ?? () from /usr/lib64/libglib-2.0.so.0
#28 0x00007f1b035220df in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#29 0x00007f1b05c61a7f in QEventDispatcherGlib::processEvents (this=0x5635ec1b41c0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#30 0x00007f1b05c08eeb in QEventLoop::exec (this=this@entry=0x7fff579ad440, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#31 0x00007f1b05c11160 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#32 0x00005635eaaeb24c in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kget-20.08.3-1.1.x86_64/main.cpp:186
[Inferior 1 (process 13045) detached]

Possible duplicates by query: bug 428691, bug 427575, bug 426596, bug 426090, bug 425786.

Reported using DrKonqi
Comment 1 Wolfgang Bauer 2020-11-16 11:33:53 UTC
I was able to reproduce it once (kget crashed with the same backtrace when the download was finished), but it didn't crash on further tries.

I tried with ktorrent as well, it didn't crash, but the download never finished, it kept staying in "Running" state forever after finishing the download... (although the downloaded file apparently was ok)
I'm not sure that's the same problem, but changing the component for now, the crash seems to be in libktorrent anyway AFAICS (although that doesn't necessarily mean it's not kget's fault of course).
Comment 2 guenter 2020-11-26 09:30:39 UTC
Created attachment 133663 [details]
New crash information added by DrKonqi

ktorrent (5.1.2) using Qt 5.12.8

- What I was doing when the application crashed:
As the original reporter I downloaded Arch Linux iso.

-- Backtrace (Reduced):
#6  bt::WebSeed::disable (this=this@entry=0x0, reason=...) at ./src/download/webseed.cpp:109
#7  0x00007f162ab9fffc in bt::Downloader::onChunkReady (this=<optimized out>, c=0x55582dcfaa60) at /usr/include/KF5/KI18n/klocalizedstring.h:1362
#8  0x00007f1628edf458 in QtPrivate::QSlotObjectBase::call (a=0x7ffd3cab7650, r=0x55582e3ddfc0, this=0x55582e685330) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
[...]
#10 0x00007f162ab43e13 in bt::WebSeed::chunkReady (this=this@entry=0x55582e685090, _t1=<optimized out>, _t1@entry=0x55582dcfaa60) at ./obj-x86_64-linux-gnu/src/KF5Torrent_autogen/WU5H7VG4RY/moc_webseed.cpp:188
#11 0x00007f162ab97225 in bt::WebSeed::handleData (this=0x55582e685090, tmp=...) at ./src/download/webseed.cpp:456
Comment 3 Wolfgang Bauer 2020-11-30 13:08:58 UTC
*** Bug 429430 has been marked as a duplicate of this bug. ***
Comment 4 Justin Zobel 2022-10-31 04:33:28 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 5 Bug Janitor Service 2022-11-15 05:15:37 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 6 Bug Janitor Service 2022-11-30 05:17:05 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!