Summary: | ktorrent silently dies at times | ||
---|---|---|---|
Product: | [Applications] ktorrent | Reporter: | Ritesh Raj Sarraf <kde-bugs> |
Component: | general | Assignee: | Joris Guisson <joris.guisson> |
Status: | RESOLVED DUPLICATE | ||
Severity: | crash | CC: | kde |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian unstable | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Ritesh Raj Sarraf
2010-07-12 20:36:10 UTC
can you start ktorrent inside gdb and then paste on this bugreport a new backtrace ? Please make sure you have the debuginfo packages installed. (In reply to comment #1) > can you start ktorrent inside gdb and then paste on this bugreport a new > backtrace ? > I knew this was coming. :-) ktorrent, upon crash, is not able to generate the backtrace. I don't know why, weird. It didn't dump the core too. Are you asking me to run it under gdb by default and then see if a trace can be seen ? I can try that too. > > Please make sure you have the debuginfo packages installed. Of course, they are installed. 16:30:20 rrs@champaran:~/Community/Packaging/debian-kernel-git (master)$ apt-cache policy ktorrent-dbg ktorrent-dbg: Installed: 4.0.2-1 Candidate: 4.0.2-1 Version table: *** 4.0.2-1 0 500 http://ftp.debian.org unstable/main Packages 500 http://mirrors.kernel.org unstable/main Packages 100 /var/lib/dpkg/status 4.0.1-1 0 990 http://ftp.debian.org testing/main Packages 990 http://mirrors.kernel.org testing/main Packages Ah!! This looks to be the problem for not generating the backtrace 20:21:56 rrs@champaran:~ $ gdb `which ktorrent` GNU gdb (GDB) 7.0.1-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/bin/ktorrent...Reading symbols from /usr/lib/debug/usr/bin/ktorrent...done. (no debugging symbols found)...done. (gdb) quit Does this backtrace help ? [New Thread 0x7fffd6525710 (LWP 23239)] [Thread 0x7fffd6525710 (LWP 23239) exited] [New Thread 0x7fffd6525710 (LWP 23278)] [New Thread 0x7fffdeb9c710 (LWP 23355)] [Thread 0x7fffd6525710 (LWP 23278) exited] [Thread 0x7fffdeb9c710 (LWP 23355) exited] [New Thread 0x7fffdeb9c710 (LWP 23492)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffe5107710 (LWP 2486)] QCoreApplication::notifyInternal (this=0x7fffffffd3d0, receiver=0x164ee90, event=0x7fffe5106b70) at kernel/qcoreapplication.cpp:714 714 kernel/qcoreapplication.cpp: No such file or directory. in kernel/qcoreapplication.cpp (gdb) bt #0 QCoreApplication::notifyInternal (this=0x7fffffffd3d0, receiver=0x164ee90, event=0x7fffe5106b70) at kernel/qcoreapplication.cpp:714 #1 0x00007ffff5640ed2 in QCoreApplication::sendEvent (this=0x7fffe0003ed0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #2 QTimerInfoList::activateTimers (this=0x7fffe0003ed0) at kernel/qeventdispatcher_unix.cpp:603 #3 0x00007ffff563da48 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184 #4 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231 #5 0x00007ffff01ee1f2 in g_main_dispatch (context=0x712130) at /glib2.0-2.25.11/glib/gmain.c:2119 #6 g_main_context_dispatch (context=0x712130) at /glib2.0-2.25.11/glib/gmain.c:2672 #7 0x00007ffff01f2148 in g_main_context_iterate (context=0x712130, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at /glib2.0-2.25.11/glib/gmain.c:2750 #8 0x00007ffff01f22fc in g_main_context_iteration (context=0x712130, may_block=1) at /glib2.0-2.25.11/glib/gmain.c:2813 #9 0x00007ffff563d713 in QEventDispatcherGlib::processEvents (this=0x876ef0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412 #10 0x00007ffff5612a82 in QEventLoop::processEvents (this=<value optimized out>, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece. ) at kernel/qeventloop.cpp:149 #11 0x00007ffff5612e5c in QEventLoop::exec (this=0x7fffe5106de0, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece. ) at kernel/qeventloop.cpp:201 #12 0x00007ffff552279b in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487 #13 0x00007ffff7b6c38e in utp::UTPServerThread::run() () from /usr/lib/libktorrent.so.2 #14 0x00007ffff5524e35 in QThreadPrivate::start (arg=0x7b10c0) at thread/qthread_unix.cpp:248 #15 0x00007ffff0ed48ba in start_thread (arg=<value optimized out>) at pthread_create.c:300 #16 0x00007ffff3d7e01d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #17 0x0000000000000000 in ?? () (gdb) That is something to go on Which Qt version are you using ? (In reply to comment #6) > Which Qt version are you using ? 4.6.3-1 packaged for Debian This is a better back trace. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffe8847710 (LWP 13397)] 0x00007ffff5612550 in QPointer<QObject>::operator QObject* (this=0x70c1b0, receiver=0x7fffd0100210, event=0x7fffd0073360) at ../../include/QtCore/../../src/corelib/kernel/qpointer.h:78 78 ../../include/QtCore/../../src/corelib/kernel/qpointer.h: No such file or directory. in ../../include/QtCore/../../src/corelib/kernel/qpointer.h (gdb) (gdb) (gdb) (gdb) (gdb) threads apply all Undefined command: "threads". Try "help". (gdb) thread apply all Please specify a command following the thread ID list (gdb) thread apply all bt Thread 21 (Thread 0x7fffd5bd4710 (LWP 13520)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162 #1 0x00007ffff5524e8b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x1246920, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87 #2 QWaitCondition::wait (this=<value optimized out>, mutex=0x1246920, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159 #3 0x00007ffff7ad9252 in net::ReverseResolverThread::run (this=0x1246910) at ../../src/net/reverseresolver.cpp:123 #4 0x00007ffff5523e35 in QThreadPrivate::start (arg=0x1246910) at thread/qthread_unix.cpp:248 #5 0x00007ffff0ed38ba in start_thread (arg=<value optimized out>) at pthread_create.c:300 #6 0x00007ffff3d7d01d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #7 0x0000000000000000 in ?? () Thread 20 (Thread 0x7fffdf7fe710 (LWP 13519)): #0 0x00007ffff3d72103 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87 #1 0x00007ffff7ad97ec in net::Poll::poll (this=0x6e08c0, timeout=<value optimized out>) at ../../src/net/poll.cpp:99 #2 0x00007ffff7ad5016 in net::UploadThread::waitForSocketsReady (this=0x6e08b0) at ../../src/net/uploadthread.cpp:129 #3 0x00007ffff7ad50f6 in net::UploadThread::update (this=0x7fffe0083b00) at ../../src/net/uploadthread.cpp:45 #4 0x00007ffff7ad6529 in net::NetworkThread::run (this=0x6e08b0) at ../../src/net/networkthread.cpp:48 #5 0x00007ffff5523e35 in QThreadPrivate::start (arg=0x6e08b0) at thread/qthread_unix.cpp:248 #6 0x00007ffff0ed38ba in start_thread (arg=<value optimized out>) at pthread_create.c:300 #7 0x00007ffff3d7d01d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #8 0x0000000000000000 in ?? () Thread 19 (Thread 0x7fffe6cc8710 (LWP 13518)): #0 0x00007ffff3d72103 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87 #1 0x00007ffff7ad97ec in net::Poll::poll (this=0x6e0270, timeout=<value optimized out>) at ../../src/net/poll.cpp:99 #2 0x00007ffff7ad5970 in net::DownloadThread::waitForSocketReady (this=0x6e0260) at ../../src/net/downloadthread.cpp:128 #3 0x00007ffff7ad5a46 in net::DownloadThread::update (this=0x7fffe0155350) at ../../src/net/downloadthread.cpp:48 #4 0x00007ffff7ad6529 in net::NetworkThread::run (this=0x6e0260) at ../../src/net/networkthread.cpp:48 #5 0x00007ffff5523e35 in QThreadPrivate::start (arg=0x6e0260) at thread/qthread_unix.cpp:248 #6 0x00007ffff0ed38ba in start_thread (arg=<value optimized out>) at pthread_create.c:300 #7 0x00007ffff3d7d01d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #8 0x0000000000000000 in ?? () Thread 4 (Thread 0x7fffe8046710 (LWP 13398)): #0 0x00007ffff3d768b3 in select () at ../sysdeps/unix/syscall-template.S:82 #1 0x00007ffff7b34b22 in dht::RPCServerThread::run (this=0x71e210) at ../../src/dht/rpcserver.cpp:107 #2 0x00007ffff5523e35 in QThreadPrivate::start (arg=0x71e210) at thread/qthread_unix.cpp:248 #3 0x00007ffff0ed38ba in start_thread (arg=<value optimized out>) at pthread_create.c:300 #4 0x00007ffff3d7d01d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #5 0x0000000000000000 in ?? () Thread 3 (Thread 0x7fffe8847710 (LWP 13397)): #0 0x00007ffff5612550 in QPointer<QObject>::operator QObject* (this=0x70c1b0, receiver=0x7fffd0100210, event=0x7fffd0073360) at ../../include/QtCore/../../src/corelib/kernel/qpointer.h:78 #1 QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x70c1b0, receiver=0x7fffd0100210, event=0x7fffd0073360) at kernel/qcoreapplication.cpp:834 #2 0x00007ffff49b32fc in QApplicationPrivate::notify_helper (this=0x70c1b0, receiver=0x7fffd0100210, e=0x7fffd0073360) at kernel/qapplication.cpp:4298 #3 0x00007ffff49b980b in QApplication::notify (this=0x7fffffffd0a0, receiver=0x7fffd0100210, e=0x7fffd0073360) at kernel/qapplication.cpp:4185 #4 0x0000000000439a0a in kt::App::notify (this=0x70c1b0, receiver=0x7fffd0000078, event=0xffffffffd00000ca) at ../../ktorrent/app.cpp:97 #5 0x00007ffff561315c in QCoreApplication::notifyInternal (this=0x7fffffffd0a0, receiver=0x7fffd0100210, event=0x7fffd0073360) at kernel/qcoreapplication.cpp:726 #6 0x00007ffff5616804 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x8155a0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #7 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x8155a0) at kernel/qcoreapplication.cpp:1367 #8 0x00007ffff563cbd3 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220 #9 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276 #10 0x00007ffff01ed1f2 in g_main_dispatch (context=0x81bcc0) at /glib2.0-2.25.11/glib/gmain.c:2119 #11 g_main_context_dispatch (context=0x81bcc0) at /glib2.0-2.25.11/glib/gmain.c:2672 #12 0x00007ffff01f1148 in g_main_context_iterate (context=0x81bcc0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at /glib2.0-2.25.11/glib/gmain.c:2750 #13 0x00007ffff01f12fc in g_main_context_iteration (context=0x81bcc0, may_block=1) at /glib2.0-2.25.11/glib/gmain.c:2813 #14 0x00007ffff563c713 in QEventDispatcherGlib::processEvents (this=0x7744b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412 #15 0x00007ffff5611a82 in QEventLoop::processEvents (this=<value optimized out>, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece. ) at kernel/qeventloop.cpp:149 #16 0x00007ffff5611e5c in QEventLoop::exec (this=0x7fffe8846de0, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece. ) at kernel/qeventloop.cpp:201 #17 0x00007ffff552179b in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487 #18 0x00007ffff7b6c38e in utp::UTPServerThread::run (this=0x815490) at ../../src/utp/utpserverthread.cpp:44 #19 0x00007ffff5523e35 in QThreadPrivate::start (arg=0x815490) at thread/qthread_unix.cpp:248 #20 0x00007ffff0ed38ba in start_thread (arg=<value optimized out>) at pthread_create.c:300 #21 0x00007ffff3d7d01d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #22 0x0000000000000000 in ?? () Thread 1 (Thread 0x7ffff7fb6760 (LWP 13387)): #0 0x00007ffff556843a in replaceArgEscapes (s=..., d=..., field_width=0, arg=..., larg=..., fillChar=...) at tools/qstring.cpp:6189 #1 0x00007ffff556a2ed in QString::arg (this=0x7fffffffbd70, a=..., fieldWidth=0, fillChar=...) at tools/qstring.cpp:6319 #2 0x00007ffff7b72c69 in bt::PeerIDPrefix () at ../../src/version.cpp:45 #3 0x00007ffff7ae339b in PeerID (this=0x7fffd01002e8) at ../../src/peer/peerid.cpp:44 #4 0x00007ffff7adf123 in Authenticate (this=0x7fffd0100210, ip=..., port=12532, proto=bt::TCP, info_hash=..., peer_id=..., pcon= 0x7fffd00b05c0) at ../../src/peer/authenticate.cpp:33 #5 0x00007ffff7af263f in bt::PeerConnector::start (this=0x7fffd00b05c0, method=<value optimized out>) at ../../src/peer/peerconnector.cpp:116 #6 0x00007ffff7af2aed in bt::PeerConnector::authenticationFinished (this=<value optimized out>, auth=<value optimized out>, ok=<value optimized out>) at ../../src/peer/peerconnector.cpp:105 #7 0x00007ffff7adf2ff in Authenticate (this=0x7fffd02a7660, ip=..., port=<value optimized out>, proto=bt::UTP, info_hash=<value optimized out>, peer_id=<value optimized out>, pcon=0x7fffd00b05c0) at ../../src/peer/authenticate.cpp:76 #8 0x00007ffff7af263f in bt::PeerConnector::start (this=0x7fffd00b05c0, method=<value optimized out>) at ../../src/peer/peerconnector.cpp:116 #9 0x00007ffff7af2aed in bt::PeerConnector::authenticationFinished (this=<value optimized out>, auth=<value optimized out>, ok=<value optimized out>) at ../../src/peer/peerconnector.cpp:105 #10 0x00007ffff7adf67f in Authenticate (this=0x7fffd07de140, ip=..., port=<value optimized out>, proto=bt::TCP, info_hash=<value optimized out>, peer_id=<value optimized out>, pcon=0x7fffd00b05c0) at ../../src/peer/authenticate.cpp:76 #11 0x00007ffff7add14d in EncryptedAuthenticate (this=0x7fffffffbd60, ip=..., port=48208, proto=bt::TCP, info_hash=..., peer_id=..., pcon=0x7fffd00b05c0) at ../../src/mse/encryptedauthenticate.cpp:46 #12 0x00007ffff7af25ae in bt::PeerConnector::start (this=0x7fffd00b05c0, method=<value optimized out>) at ../../src/peer/peerconnector.cpp:114 #13 0x00007ffff7af2aed in bt::PeerConnector::authenticationFinished (this=<value optimized out>, auth=<value optimized out>, ok=<value optimized out>) at ../../src/peer/peerconnector.cpp:105 #14 0x00007ffff7adf67f in Authenticate (this=0x7fffd0102010, ip=..., port=<value optimized out>, proto=bt::UTP, info_hash=<value optimized out>, peer_id=<value optimized out>, pcon=0x7fffd00b05c0) at ../../src/peer/authenticate.cpp:76 #15 0x00007ffff7add14d in EncryptedAuthenticate (this=0x7fffffffbd60, ip=..., port=48208, proto=bt::TCP, info_hash=..., peer_id=..., pcon=0x7fffd00b05c0) at ../../src/mse/encryptedauthenticate.cpp:46 #16 0x00007ffff7af25ae in bt::PeerConnector::start (this=0x7fffd00b05c0, method=<value optimized out>) at ../../src/peer/peerconnector.cpp:114 #17 0x00007ffff7aea0d7 in bt::PeerManager::connectToPeers (this=0x2263b50) at ../../src/peer/peermanager.cpp:434 #18 0x00007ffff7b19226 in bt::TorrentControl::update (this=0x1773320) at ../../src/torrent/torrentcontrol.cpp:170 #19 0x000000000042adfb in kt::Core::update (this=0x7f35d0) at ../../ktorrent/core.cpp:1023 #20 0x0000000000433322 in kt::Core::qt_metacall (this=0x7f35d0, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fffffffc640) at ./core.moc:167 #21 0x00007ffff5626346 in QMetaObject::activate (sender=0x7f35f8, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3295 #22 0x00007ffff5622ba3 in QObject::event (this=0x7f35f8, e=0x7fffffffcd70) at kernel/qobject.cpp:1212 #23 0x00007ffff49b332c in QApplicationPrivate::notify_helper (this=0x70c1b0, receiver=0x7f35f8, e=0x7fffffffcd70) at kernel/qapplication.cpp:4302 #24 0x00007ffff49b980b in QApplication::notify (this=0x7fffffffd0a0, receiver=0x7f35f8, e=0x7fffffffcd70) at kernel/qapplication.cpp:4185 #25 0x0000000000439a0a in kt::App::notify (this=0x7fffffffbd60, receiver=0x7fffffffbd70, event=0x7fffffffbc50) at ../../ktorrent/app.cpp:97 #26 0x00007ffff561315c in QCoreApplication::notifyInternal (this=0x7fffffffd0a0, receiver=0x7f35f8, event=0x7fffffffcd70) at kernel/qcoreapplication.cpp:726 #27 0x00007ffff563fed2 in QCoreApplication::sendEvent (this=0x70f9e0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #28 QTimerInfoList::activateTimers (this=0x70f9e0) at kernel/qeventdispatcher_unix.cpp:603 #29 0x00007ffff563ca48 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184 #30 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231 #31 0x00007ffff01ed1f2 in g_main_dispatch (context=0x70e880) at /glib2.0-2.25.11/glib/gmain.c:2119 #32 g_main_context_dispatch (context=0x70e880) at /glib2.0-2.25.11/glib/gmain.c:2672 #33 0x00007ffff01f1148 in g_main_context_iterate (context=0x70e880, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at /glib2.0-2.25.11/glib/gmain.c:2750 #34 0x00007ffff01f12fc in g_main_context_iteration (context=0x70e880, may_block=1) at /glib2.0-2.25.11/glib/gmain.c:2813 #35 0x00007ffff563c713 in QEventDispatcherGlib::processEvents (this=0x6de1d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412 #36 0x00007ffff4a6314e in QGuiEventDispatcherGlib::processEvents (this=0x7fffffffbd60, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204 #37 0x00007ffff5611a82 in QEventLoop::processEvents (this=<value optimized out>, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece. ) at kernel/qeventloop.cpp:149 #38 0x00007ffff5611e5c in QEventLoop::exec (this=0x7fffffffd010, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece. ) at kernel/qeventloop.cpp:201 #39 0x00007ffff5616aeb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003 #40 0x0000000000428f5b in main (argc=<value optimized out>, argv=<value optimized out>) at ../../ktorrent/main.cpp:176 *** This bug has been marked as a duplicate of bug 247654 *** |