Bug 393601

Summary: KTorrent crashes when port changes
Product: [Applications] ktorrent Reporter: Mayeul C. <oss+kde+bugzilla>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED WORKSFORME    
Severity: crash CC: justin.zobel
Priority: NOR Keywords: drkonqi
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mayeul C. 2018-04-28 08:43:41 UTC
Application: ktorrent (5.1.0)

Qt Version: 5.10.1
Frameworks Version: 5.45.0
Operating System: Linux 4.16.3-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:
* I opened KTorrent (a few torrents were there, downloading)
* I opened the settings window
* I changed the port KTorrent was listening on
* I hit "Apply"
* KTorrent crashed.

I can always reproduce this bug. The settings seem to be remembered when I restart KTorrent. DHT is enabled, if that matters at all.

The crash can be reproduced every time.

-- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Thread 0x7fc7a635a700 (LWP 14105) exited]
[Current thread is 1 (Thread 0x7fc81e469380 (LWP 14070))]

Thread 7 (Thread 0x7fc7a5b59700 (LWP 14106)):
#0  0x00007fc818553dd6 in ppoll () at /usr/lib/libc.so.6
#1  0x00007fc7a7bd84b0 in  () at /usr/lib/libnss_resolve.so.2
#2  0x00007fc7a7bdaba9 in  () at /usr/lib/libnss_resolve.so.2
#3  0x00007fc7a7bc8c0d in _nss_resolve_gethostbyaddr2_r () at /usr/lib/libnss_resolve.so.2
#4  0x00007fc7a7bc9064 in _nss_resolve_gethostbyaddr_r () at /usr/lib/libnss_resolve.so.2
#5  0x00007fc818570071 in gethostbyaddr_r@@GLIBC_2.2.5 () at /usr/lib/libc.so.6
#6  0x00007fc818578550 in gni_host_inet_name.isra () at /usr/lib/libc.so.6
#7  0x00007fc818578c83 in getnameinfo () at /usr/lib/libc.so.6
#8  0x00007fc81dc95308 in  () at /usr/lib/libKF5Torrent.so.6
#9  0x00007fc81dc95a41 in  () at /usr/lib/libKF5Torrent.so.6
#10 0x00007fc819203acd in  () at /usr/lib/libQt5Core.so.5
#11 0x00007fc813e250bc in start_thread () at /usr/lib/libpthread.so.0
#12 0x00007fc81855e2ff in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7fc7a6b5b700 (LWP 14104)):
#0  0x00007fc818553cd9 in poll () at /usr/lib/libc.so.6
#1  0x00007fc81dc95fc5 in net::Poll::poll(int) () at /usr/lib/libKF5Torrent.so.6
#2  0x00007fc81dc9217c in  () at /usr/lib/libKF5Torrent.so.6
#3  0x00007fc81dc92216 in  () at /usr/lib/libKF5Torrent.so.6
#4  0x00007fc81dc92449 in  () at /usr/lib/libKF5Torrent.so.6
#5  0x00007fc819203acd in  () at /usr/lib/libQt5Core.so.5
#6  0x00007fc813e250bc in start_thread () at /usr/lib/libpthread.so.0
#7  0x00007fc81855e2ff in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7fc7fe5ed700 (LWP 14075)):
[KCrash Handler]
#6  0x00007fc81942e0b4 in QSocketNotifier::type() const () at /usr/lib/libQt5Core.so.5
#7  0x00007fc81944d0bd in  () at /usr/lib/libQt5Core.so.5
#8  0x00007fc811719f22 in g_main_context_check () at /usr/lib/libglib-2.0.so.0
#9  0x00007fc81171a4c6 in  () at /usr/lib/libglib-2.0.so.0
#10 0x00007fc81171a63e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#11 0x00007fc81944d264 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#12 0x00007fc8193ef32b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#13 0x00007fc8191fe72e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#14 0x00007fc819203acd in  () at /usr/lib/libQt5Core.so.5
#15 0x00007fc813e250bc in start_thread () at /usr/lib/libpthread.so.0
#16 0x00007fc81855e2ff in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7fc7fedee700 (LWP 14074)):
#0  0x00007fc818553cd9 in poll () at /usr/lib/libc.so.6
#1  0x00007fc81171a523 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fc81171a63e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007fc81944d264 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fc8193ef32b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007fc8191fe72e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007fc819203acd in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fc813e250bc in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fc81855e2ff in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7fc807795700 (LWP 14071)):
#0  0x00007fc818553cd9 in poll () at /usr/lib/libc.so.6
#1  0x00007fc814465180 in  () at /usr/lib/libxcb.so.1
#2  0x00007fc814466e4b in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007fc80a32f82a in  () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007fc819203acd in  () at /usr/lib/libQt5Core.so.5
#5  0x00007fc813e250bc in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007fc81855e2ff in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7fc81e469380 (LWP 14070)):
#0  0x00007fc813e2b07c in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fc819204fac in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007fc819203697 in QThread::wait(unsigned long) () at /usr/lib/libQt5Core.so.5
#3  0x00007fc81dc90a4c in net::SocketMonitor::Private::shutdown() () at /usr/lib/libKF5Torrent.so.6
#4  0x00007fc81dc90ac9 in net::SocketMonitor::~SocketMonitor() () at /usr/lib/libKF5Torrent.so.6
#5  0x00007fc81849ede5 in __cxa_finalize () at /usr/lib/libc.so.6
#6  0x00007fc81dc70193 in  () at /usr/lib/libKF5Torrent.so.6
#7  0x00007ffc25a3b810 in  ()
#8  0x00007fc81e2c7363 in _dl_fini () at /lib64/ld-linux-x86-64.so.2

Reported using DrKonqi
Comment 1 Justin Zobel 2020-12-02 05:30:37 UTC
Thank you for the report, Mayeul.

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 2 Bug Janitor Service 2020-12-17 04:34:15 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 3 Bug Janitor Service 2021-01-01 04:39:36 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!