Bug 296028

Summary: Ktorrent crashes on suddenly internet connection lost
Product: [Applications] ktorrent Reporter: GenuZ <genuz>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash CC: genuz
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description GenuZ 2012-03-14 23:55:52 UTC
Application: ktorrent (4.2)
KDE Platform Version: 4.8.1 (4.8.1)
Qt Version: 4.8.0
Operating System: Linux 3.0.0-16-generic x86_64
Distribution: Linux Mint 12 KDE

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

Internet connection hangs, no ping etc. Router was power off on on again. Ktorrent crashes.

The crash can be reproduced some of the time.

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

Thread 9 (Thread 0x7f5e0137a700 (LWP 32139)):
#0  0x00007f5e12cf1473 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f5e0e6baf68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5e0e6bb429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5e145d0c06 in QEventDispatcherGlib::processEvents (this=0x20f7760, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f5e145a03e2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f5e145a0637 in QEventLoop::exec (this=0x7f5e01379de0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f5e144a0067 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f5e144a308b in QThreadPrivate::start (arg=0x20f4100) at thread/qthread_unix.cpp:298
#8  0x00007f5e100cfefc in start_thread (arg=0x7f5e0137a700) at pthread_create.c:304
#9  0x00007f5e12cfd59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f5e01be1700 (LWP 32140)):
#0  0x00007f5e12cf1473 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f5e0e6baf68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5e0e6bb429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5e145d0c06 in QEventDispatcherGlib::processEvents (this=0x2d262f0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f5e145a03e2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f5e145a0637 in QEventLoop::exec (this=0x7f5e01be0db0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f5e144a0067 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f5e1458017f in QInotifyFileSystemWatcherEngine::run (this=0x21345c0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f5e144a308b in QThreadPrivate::start (arg=0x21345c0) at thread/qthread_unix.cpp:298
#9  0x00007f5e100cfefc in start_thread (arg=0x7f5e01be1700) at pthread_create.c:304
#10 0x00007f5e12cfd59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f5dea86a700 (LWP 32143)):
#0  QTimerInfoList::timerWait (this=0x3410090, tm=...) at kernel/qeventdispatcher_unix.cpp:463
#1  0x00007f5e145d00dc in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f5dea869c4c) at kernel/qeventdispatcher_glib.cpp:136
#2  0x00007f5e145d0185 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#3  0x00007f5e0e6b9ff2 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f5e0e6badfd in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5e0e6bb429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f5e145d0c06 in QEventDispatcherGlib::processEvents (this=0x340f550, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#7  0x00007f5e145a03e2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007f5e145a0637 in QEventLoop::exec (this=0x7f5dea869de0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007f5e144a0067 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#10 0x00007f5e144a308b in QThreadPrivate::start (arg=0x33e5700) at thread/qthread_unix.cpp:298
#11 0x00007f5e100cfefc in start_thread (arg=0x7f5dea86a700) at pthread_create.c:304
#12 0x00007f5e12cfd59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f5de8482700 (LWP 32144)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f5df7eb3c2c in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f5df7eb3d59 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f5e100cfefc in start_thread (arg=0x7f5de8482700) at pthread_create.c:304
#4  0x00007f5e12cfd59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f5de7b81700 (LWP 32145)):
#0  0x00007f5e0e6b9687 in g_main_context_acquire () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f5e0e6bad81 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5e0e6bb429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5e145d0c06 in QEventDispatcherGlib::processEvents (this=0x350ac70, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f5e145a03e2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f5e145a0637 in QEventLoop::exec (this=0x7f5de7b80de0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f5e144a0067 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f5e144a308b in QThreadPrivate::start (arg=0x350a240) at thread/qthread_unix.cpp:298
#8  0x00007f5e100cfefc in start_thread (arg=0x7f5de7b81700) at pthread_create.c:304
#9  0x00007f5e12cfd59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f5da2bec700 (LWP 32241)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:39
#1  0x00007f5e144a1b5b in _q_futex (val2=0, addr2=0x0, timeout=0x0, val=2, op=0, addr=0x1f8b370) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=0x1f8b370, timeout=<optimized out>) at thread/qmutex_unix.cpp:113
#3  0x00007f5e1449da8d in QMutex::lock (this=<optimized out>) at thread/qmutex.cpp:164
#4  0x00007f5e168bc390 in ?? () from /usr/lib/libktorrent.so.4
#5  0x00007f5e168bc589 in ?? () from /usr/lib/libktorrent.so.4
#6  0x00007f5e144a308b in QThreadPrivate::start (arg=0x1f8a190) at thread/qthread_unix.cpp:298
#7  0x00007f5e100cfefc in start_thread (arg=0x7f5da2bec700) at pthread_create.c:304
#8  0x00007f5e12cfd59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f5da23eb700 (LWP 32242)):
#0  0x00007f5e1449da61 in testAndSetOrdered (newValue=1, expectedValue=0, this=0x7f5dfc8b5180) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:145
#1  testAndSetAcquire (newValue=1, expectedValue=0, this=0x7f5dfc8b5180) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:267
#2  QMutex::lock (this=<optimized out>) at thread/qmutex.cpp:161
#3  0x00007f5e168b7198 in ?? () from /usr/lib/libktorrent.so.4
#4  0x00007f5e168bbb6a in ?? () from /usr/lib/libktorrent.so.4
#5  0x00007f5e168bbca6 in ?? () from /usr/lib/libktorrent.so.4
#6  0x00007f5e168bc589 in ?? () from /usr/lib/libktorrent.so.4
#7  0x00007f5e144a308b in QThreadPrivate::start (arg=0x1f8bd00) at thread/qthread_unix.cpp:298
#8  0x00007f5e100cfefc in start_thread (arg=0x7f5da23eb700) at pthread_create.c:304
#9  0x00007f5e12cfd59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f5da1bea700 (LWP 32243)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f5e144a359b in wait (time=18446744073709551615, this=0x7f5d9c00b2b0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x7f5d9c006e90, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f5e168bef8a in ?? () from /usr/lib/libktorrent.so.4
#4  0x00007f5e144a308b in QThreadPrivate::start (arg=0x7f5d9c006e80) at thread/qthread_unix.cpp:298
#5  0x00007f5e100cfefc in start_thread (arg=0x7f5da1bea700) at pthread_create.c:304
#6  0x00007f5e12cfd59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f5e16dbe7a0 (LWP 32137)):
[KCrash Handler]
#6  data (this=0x8) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:135
#7  qGetPtrHelper<QScopedPointer<QObjectData> > (p=...) at ../../include/QtCore/../../src/corelib/global/qglobal.h:2430
#8  d_func (this=0x0) at qdbusabstractinterface.h:159
#9  QDBusAbstractInterface::callWithArgumentList (this=0x0, mode=QDBus::Block, method=..., args=...) at qdbusabstractinterface.cpp:430
#10 0x00007f5df60c8cc0 in Reset (this=0x0) at ../../dnssd/avahi_entrygroup_interface.h:94
#11 serverStateChanged (this=0x7f5d903e8d10, s=<optimized out>) at ../../dnssd/avahi-publicservice.cpp:203
#12 DNSSD::PublicServicePrivate::serverStateChanged (this=0x7f5d903e8d10, s=<optimized out>) at ../../dnssd/avahi-publicservice.cpp:193
#13 0x00007f5df60c99d2 in DNSSD::PublicServicePrivate::qt_metacall (this=0x7f5d903e8d10, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff428ecd90) at ./avahi-publicservice_p.moc:77
#14 0x00007f5e145b5be9 in QMetaObject::activate (sender=0x7f5d90100900, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff428ecd90) at kernel/qobject.cpp:3566
#15 0x00007f5df60cb5d3 in OrgFreedesktopAvahiServerInterface::StateChanged (this=<optimized out>, _t1=1, _t2=<optimized out>) at ./avahi_server_interface.moc:197
#16 0x00007f5df60cbddc in OrgFreedesktopAvahiServerInterface::qt_metacall (this=0x7f5d90100900, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff428ed620) at ./avahi_server_interface.moc:137
#17 0x00007f5e11ab935b in QDBusConnectionPrivate::deliverCall (this=0x7f5dfc0071d0, object=0x7f5d90100900, msg=..., metaTypes=..., slotIdx=5) at qdbusintegrator.cpp:947
#18 0x00007f5e145baba6 in QObject::event (this=0x7f5d90100900, e=<optimized out>) at kernel/qobject.cpp:1195
#19 0x00007f5e13927104 in notify_helper (e=0x359b6a0, receiver=0x7f5d90100900, this=0x1fc97f0) at kernel/qapplication.cpp:4555
#20 QApplicationPrivate::notify_helper (this=0x1fc97f0, receiver=0x7f5d90100900, e=0x359b6a0) at kernel/qapplication.cpp:4527
#21 0x00007f5e1392bf83 in QApplication::notify (this=0x7fff428ee030, receiver=0x7f5d90100900, e=0x359b6a0) at kernel/qapplication.cpp:4416
#22 0x0000000000438fe1 in ?? ()
#23 0x00007f5e145a15fc in QCoreApplication::notifyInternal (this=0x7fff428ee030, receiver=0x7f5d90100900, event=0x359b6a0) at kernel/qcoreapplication.cpp:876
#24 0x00007f5e145a53ca in sendEvent (event=0x359b6a0, receiver=0x7f5d90100900) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#25 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1f4f670) at kernel/qcoreapplication.cpp:1500
#26 0x00007f5e145d0773 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#27 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#28 0x00007f5e0e6baa5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f5e0e6bb258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f5e0e6bb429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f5e145d0b9f in QEventDispatcherGlib::processEvents (this=0x1f50b30, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#32 0x00007f5e139cc21e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#33 0x00007f5e145a03e2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#34 0x00007f5e145a0637 in QEventLoop::exec (this=0x7fff428edfc0, flags=...) at kernel/qeventloop.cpp:204
#35 0x00007f5e145a56c7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#36 0x0000000000427bf1 in ?? ()
#37 0x00007f5e12c3b30d in __libc_start_main (main=0x425580, argc=1, ubp_av=0x7fff428eeea8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff428eee98) at libc-start.c:226
#38 0x0000000000428dc1 in _start ()

Possible duplicates by query: bug 291606, bug 272318, bug 268435, bug 267270, bug 259992.

Reported using DrKonqi
Comment 1 GenuZ 2012-03-15 01:02:49 UTC
Created attachment 69629 [details]
New crash information added by DrKonqi

ktorrent (4.2) on KDE Platform 4.8.1 (4.8.1) using Qt 4.8.0

- What I was doing when the application crashed:

This bug repeats always, when internet connection suddenly interrupted by turning off router.

-- Backtrace (Reduced):
#6  data (this=0x8) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:135
[...]
#9  QDBusAbstractInterface::callWithArgumentList (this=0x0, mode=QDBus::Block, method=..., args=...) at qdbusabstractinterface.cpp:430
#10 0x00007f6299f68cc0 in Reset (this=0x0) at ../../dnssd/avahi_entrygroup_interface.h:94
#11 serverStateChanged (this=0x7f62a1cc0d80, s=<optimized out>) at ../../dnssd/avahi-publicservice.cpp:203
#12 DNSSD::PublicServicePrivate::serverStateChanged (this=0x7f62a1cc0d80, s=<optimized out>) at ../../dnssd/avahi-publicservice.cpp:193
Comment 2 Joris Guisson 2012-03-16 17:42:18 UTC
Problem is in DNSSD library of KDE. Disable the zeroconf plugin if  you don't need it, that will prevent the crash from happening.

*** This bug has been marked as a duplicate of bug 291606 ***