Bug 360884 - KTorrent crash when opening magnet link
Summary: KTorrent crash when opening magnet link
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: ktorrent
Classification: Applications
Component: general (other bugs)
Version First Reported In: 4.3.1
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-03-23 03:44 UTC by Filipe
Modified: 2017-12-10 14:03 UTC (History)
2 users (show)

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 Filipe 2016-03-23 03:44:14 UTC
Application: ktorrent (4.3.1)
KDE Platform Version: 4.14.9
Qt Version: 4.8.6
Operating System: Linux 3.16.7-35-desktop x86_64
Distribution: "openSUSE 13.2 (Harlequin) (x86_64)"

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

I just clicked on a magnet link inside  Firefox. KTorrent opened and crashed.

-- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f23202d9800 (LWP 15183))]

Thread 8 (Thread 0x7f230b158700 (LWP 15185)):
#0  0x00007f231de8d79c in __lll_lock_wait () at /lib64/libpthread.so.0
#1  0x00007f231de894a4 in _L_lock_952 () at /lib64/libpthread.so.0
#2  0x00007f231de89306 in pthread_mutex_lock () at /lib64/libpthread.so.0
#3  0x00007f232015e28e in _dl_open () at /lib64/ld-linux-x86-64.so.2
#4  0x00007f231bfdf3b2 in do_dlopen () at /lib64/libc.so.6
#5  0x00007f232015a7a4 in _dl_catch_error () at /lib64/ld-linux-x86-64.so.2
#6  0x00007f231bfdf44f in dlerror_run () at /lib64/libc.so.6
#7  0x00007f231bfdf4c1 in __libc_dlopen_mode () at /lib64/libc.so.6
#8  0x00007f231bfc932c in nss_load_library () at /lib64/libc.so.6
#9  0x00007f231bfc9a38 in __nss_lookup_function () at /lib64/libc.so.6
#10 0x00007f231bfc9b2e in __nss_lookup () at /lib64/libc.so.6
#11 0x00007f231bfbb728 in gethostbyname2_r@@GLIBC_2.2.5 () at /lib64/libc.so.6
#12 0x00007f231bf966e6 in gaih_inet () at /lib64/libc.so.6
#13 0x00007f231bf9799a in getaddrinfo () at /lib64/libc.so.6
#14 0x00007f231ec73545 in  () at /usr/lib64/libQtNetwork.so.4
#15 0x00007f231ec68dbc in  () at /usr/lib64/libQtNetwork.so.4
#16 0x00007f231cb026ae in  () at /usr/lib64/libQtCore.so.4
#17 0x00007f231cb0e79f in  () at /usr/lib64/libQtCore.so.4
#18 0x00007f231de870a4 in start_thread () at /lib64/libpthread.so.0
#19 0x00007f231bfaa00d in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7f230987b700 (LWP 15186)):
#0  0x00007f231de8b3e8 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f231cb0ec64 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQtCore.so.4
#2  0x00007f231cb027ba in  () at /usr/lib64/libQtCore.so.4
#3  0x00007f231cb0e79f in  () at /usr/lib64/libQtCore.so.4
#4  0x00007f231de870a4 in start_thread () at /lib64/libpthread.so.0
#5  0x00007f231bfaa00d in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7f230907a700 (LWP 15187)):
#0  0x00007f231de8b3e8 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f231cb0ec64 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQtCore.so.4
#2  0x00007f231cb027ba in  () at /usr/lib64/libQtCore.so.4
#3  0x00007f231cb0e79f in  () at /usr/lib64/libQtCore.so.4
#4  0x00007f231de870a4 in start_thread () at /lib64/libpthread.so.0
#5  0x00007f231bfaa00d in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7f2308850700 (LWP 15188)):
#0  0x00007f231de8b3e8 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f231cb0ec64 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQtCore.so.4
#2  0x00007f231cb027ba in  () at /usr/lib64/libQtCore.so.4
#3  0x00007f231cb0e79f in  () at /usr/lib64/libQtCore.so.4
#4  0x00007f231de870a4 in start_thread () at /lib64/libpthread.so.0
#5  0x00007f231bfaa00d in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7f2303fff700 (LWP 15189)):
#0  0x00007f231de8b3e8 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f231cb0ec64 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQtCore.so.4
#2  0x00007f231cb027ba in  () at /usr/lib64/libQtCore.so.4
#3  0x00007f231cb0e79f in  () at /usr/lib64/libQtCore.so.4
#4  0x00007f231de870a4 in start_thread () at /lib64/libpthread.so.0
#5  0x00007f231bfaa00d in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7f2303774700 (LWP 15194)):
[KCrash Handler]
#5  0x00007f231fe15f12 in  () at /usr/lib64/libktorrent.so.5
#6  0x00007f231fe16036 in  () at /usr/lib64/libktorrent.so.5
#7  0x00007f231fe16239 in  () at /usr/lib64/libktorrent.so.5
#8  0x00007f231cb0e79f in  () at /usr/lib64/libQtCore.so.4
#9  0x00007f231de870a4 in start_thread () at /lib64/libpthread.so.0
#10 0x00007f231bfaa00d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f2302f73700 (LWP 15195)):
#0  0x00007f231bfa5f99 in syscall () at /lib64/libc.so.6
#1  0x00007f231cb0d243 in  () at /usr/lib64/libQtCore.so.4
#2  0x00007f231cb0980d in QMutex::lock() () at /usr/lib64/libQtCore.so.4
#3  0x00007f231fe156da in  () at /usr/lib64/libktorrent.so.5
#4  0x00007f231fe15956 in  () at /usr/lib64/libktorrent.so.5
#5  0x00007f231fe16239 in  () at /usr/lib64/libktorrent.so.5
#6  0x00007f231cb0e79f in  () at /usr/lib64/libQtCore.so.4
#7  0x00007f231de870a4 in start_thread () at /lib64/libpthread.so.0
#8  0x00007f231bfaa00d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f23202d9800 (LWP 15183)):
#0  0x00007f231bfb657b in __lll_lock_wait_private () at /lib64/libc.so.6
#1  0x00007f231bf42b4a in _L_lock_10389 () at /lib64/libc.so.6
#2  0x00007f231bf40685 in malloc () at /lib64/libc.so.6
#3  0x00007f23201587ee in _dl_map_object_deps () at /lib64/ld-linux-x86-64.so.2
#4  0x00007f232015e93c in dl_open_worker () at /lib64/ld-linux-x86-64.so.2
#5  0x00007f232015a7a4 in _dl_catch_error () at /lib64/ld-linux-x86-64.so.2
#6  0x00007f232015e2fb in _dl_open () at /lib64/ld-linux-x86-64.so.2
#7  0x00007f231bfdf3b2 in do_dlopen () at /lib64/libc.so.6
#8  0x00007f232015a7a4 in _dl_catch_error () at /lib64/ld-linux-x86-64.so.2
#9  0x00007f231bfdf44f in dlerror_run () at /lib64/libc.so.6
#10 0x00007f231bfdf4c1 in __libc_dlopen_mode () at /lib64/libc.so.6
#11 0x00007f231bfb6e25 in init () at /lib64/libc.so.6
#12 0x00007f231de8c400 in pthread_once () at /lib64/libpthread.so.0
#13 0x00007f231bfb6f3c in backtrace () at /lib64/libc.so.6
#14 0x00007f231bee4d52 in backtrace_and_maps () at /lib64/libc.so.6
#15 0x00007f231bf3778f in __libc_message () at /lib64/libc.so.6
#16 0x00007f231bf3cffe in malloc_printerr () at /lib64/libc.so.6
#17 0x00007f231bf3ec79 in _int_malloc () at /lib64/libc.so.6
#18 0x00007f231bf40690 in malloc () at /lib64/libc.so.6
#19 0x00007f231cb53d6c in QString::fromLatin1_helper(char const*, int) () at /usr/lib64/libQtCore.so.4
#20 0x00007f231cb57a4d in QString::fromAscii_helper(char const*, int) () at /usr/lib64/libQtCore.so.4
#21 0x00007f231fe06406 in bt::Log::operator<<(char const*) () at /usr/lib64/libktorrent.so.5
#22 0x00007f231fead630 in  () at /usr/lib64/libktorrent.so.5
#23 0x00007f231fead8ed in  () at /usr/lib64/libktorrent.so.5
#24 0x00007f231feadc38 in  () at /usr/lib64/libktorrent.so.5
#25 0x00007f231fe3587b in bt::UTMetaData::data(bt::BDictNode*, QByteArray const&) () at /usr/lib64/libktorrent.so.5
#26 0x00007f231fe36117 in bt::UTMetaData::handlePacket(unsigned char const*, unsigned int) () at /usr/lib64/libktorrent.so.5
#27 0x00007f231fe2b3fb in bt::Peer::handleExtendedPacket(unsigned char const*, unsigned int) () at /usr/lib64/libktorrent.so.5
#28 0x00007f231fe33b2d in bt::PacketReader::update(bt::PeerInterface&) () at /usr/lib64/libktorrent.so.5
#29 0x00007f231fe28543 in bt::Peer::update() () at /usr/lib64/libktorrent.so.5
#30 0x00007f231fe2f7eb in bt::PeerManager::Private::update() () at /usr/lib64/libktorrent.so.5
#31 0x000000000044e90f in _start ()

Reported using DrKonqi
Comment 1 Nick Shaforostoff 2016-03-28 22:48:19 UTC
please try reproducing this with KTorrent for KF5. also, could you please send me the magnet link you tried to download?
Comment 2 Andrius Štikonas 2017-06-29 00:26:44 UTC
(In reply to Nick Shaforostoff from comment #1)
> please try reproducing this with KTorrent for KF5. also, could you please
> send me the magnet link you tried to download?

Also note that KF5 Ktorrent crashes if botan crypto library is compiled with gmp support. (Can also be avoided by compiling qca without libbotan).