Bug 286623

Summary: Crash when using KTorrent
Product: [Applications] ktorrent Reporter: Birjukov Dmitrij Aleksandrovich <mirvana-dmitry>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash CC: mirvana-dmitry
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi

Description Birjukov Dmitrij Aleksandrovich 2011-11-14 20:20:07 UTC
Application: ktorrent (4.1.2)
KDE Platform Version: 4.6.5 (4.6.5)
Qt Version: 4.7.4
Operating System: Linux 2.6.35.14-103.fc14.i686.PAE i686
Distribution: "Fedora release 14 (Laughlin)"

-- Information about the crash:
- What I was doing when the application crashed:
Before the failure was put about that "too much open files" and a torrent-Uploads a suspension (each time a different distribution). After some time, an error message appears. I apologize for my English. English is not my native language.

-- Backtrace:
Application: KTorrent (ktorrent), signal: Aborted
[Current thread is 1 (Thread 0xb782a780 (LWP 21939))]

Thread 9 (Thread 0xb744fb70 (LWP 21945)):
#0  0x00a9b424 in __kernel_vsyscall ()
#1  0x00746c36 in __poll (fds=0xb6b029c0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x00e4edac in g_poll (fds=0xb6b029c0, nfds=1, timeout=-1) at gpoll.c:132
#3  0x00e3e8b7 in g_main_context_poll (context=0x9c405b0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3093
#4  g_main_context_iterate (context=0x9c405b0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2775
#5  0x00e3f04b in g_main_loop_run (loop=0x9c40630) at gmain.c:2988
#6  0x00fe6ed5 in gdbus_shared_thread_func (data=0x0) at gdbusprivate.c:277
#7  0x00e67bd0 in g_thread_create_proxy (data=0x9c40640) at gthread.c:1897
#8  0x00837e99 in start_thread (arg=0xb744fb70) at pthread_create.c:301
#9  0x00751d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 8 (Thread 0xb42ffb70 (LWP 21953)):
#0  0x00a9b424 in __kernel_vsyscall ()
#1  0x00746c36 in __poll (fds=0xb3901af8, nfds=2, timeout=500) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x026425ae in net::Poll::poll (this=0xb42ff1fc, timeout=500) at /usr/src/debug/libktorrent-1.1.2/src/net/poll.cpp:99
#3  0x026ae24b in dht::RPCServer::Private::run (this=0x9d482e8) at /usr/src/debug/libktorrent-1.1.2/src/dht/rpcserver.cpp:95
#4  0x04026603 in QThreadPrivate::start (arg=0x9d482e8) at thread/qthread_unix.cpp:331
#5  0x00837e99 in start_thread (arg=0xb42ffb70) at pthread_create.c:301
#6  0x00751d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 7 (Thread 0xb4cb7b70 (LWP 21989)):
#0  0x00a9b424 in __kernel_vsyscall ()
#1  0x0083c39b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:169
#2  0x427471d7 in scavengerThread (context=0x42cf3380) at wtf/FastMalloc.cpp:2378
#3  WTF::TCMalloc_PageHeap::runScavengerThread (context=0x42cf3380) at wtf/FastMalloc.cpp:1497
#4  0x00837e99 in start_thread (arg=0xb4cb7b70) at pthread_create.c:301
#5  0x00751d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 6 (Thread 0xb35bab70 (LWP 21990)):
#0  0x00203e56 in clock_gettime (clock_id=1, tp=0xb35b9fd0) at ../sysdeps/unix/clock_gettime.c:100
#1  0x0407dc29 in do_gettime () at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0x0414c836 in QTimerInfoList::updateCurrentTime (this=0xb43017f4) at kernel/qeventdispatcher_unix.cpp:339
#4  0x0414c26e in timerSourceCheckHelper (src=0xb43017c0) at kernel/qeventdispatcher_glib.cpp:150
#5  0x00e3de07 in g_main_context_check (context=0xb43004e8, max_priority=2147483647, fds=0xb4301948, n_fds=1) at gmain.c:2658
#6  0x00e3e742 in g_main_context_iterate (context=0xb43004e8, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2777
#7  0x00e3ec35 in g_main_context_iteration (context=0xb43004e8, may_block=1) at gmain.c:2843
#8  0x0414bc07 in QEventDispatcherGlib::processEvents (this=0xb4300468, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#9  0x0411cfca in QEventLoop::processEvents (this=0xb35ba260, flags=...) at kernel/qeventloop.cpp:149
#10 0x0411d27a in QEventLoop::exec (this=0xb35ba260, flags=...) at kernel/qeventloop.cpp:201
#11 0x04023ab3 in QThread::exec (this=0xaf50ff0) at thread/qthread.cpp:498
#12 0x04023b4e in QThread::run (this=0xaf50ff0) at thread/qthread.cpp:565
#13 0x04026603 in QThreadPrivate::start (arg=0xaf50ff0) at thread/qthread_unix.cpp:331
#14 0x00837e99 in start_thread (arg=0xb35bab70) at pthread_create.c:301
#15 0x00751d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 5 (Thread 0xaffdab70 (LWP 21998)):
#0  0x00a9b424 in __kernel_vsyscall ()
#1  0x00746c36 in __poll (fds=0xb3909518, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x026425ae in net::Poll::poll (this=0x9bd0600, timeout=-1) at /usr/src/debug/libktorrent-1.1.2/src/net/poll.cpp:99
#3  0x0263e992 in net::DownloadThread::waitForSocketReady (this=0x9bd05f8) at /usr/src/debug/libktorrent-1.1.2/src/net/downloadthread.cpp:128
#4  0x0263eaa0 in net::DownloadThread::update (this=0x9bd05f8) at /usr/src/debug/libktorrent-1.1.2/src/net/downloadthread.cpp:48
#5  0x0263ed38 in net::NetworkThread::run (this=0x9bd05f8) at /usr/src/debug/libktorrent-1.1.2/src/net/networkthread.cpp:48
#6  0x04026603 in QThreadPrivate::start (arg=0x9bd05f8) at thread/qthread_unix.cpp:331
#7  0x00837e99 in start_thread (arg=0xaffdab70) at pthread_create.c:301
#8  0x00751d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 4 (Thread 0xaf7d9b70 (LWP 21999)):
#0  0x00a9b424 in __kernel_vsyscall ()
#1  0x00746c36 in __poll (fds=0xb6b054f0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x026425ae in net::Poll::poll (this=0x9bd0960, timeout=-1) at /usr/src/debug/libktorrent-1.1.2/src/net/poll.cpp:99
#3  0x0263e160 in net::UploadThread::waitForSocketsReady (this=0x9bd0958) at /usr/src/debug/libktorrent-1.1.2/src/net/uploadthread.cpp:129
#4  0x0263e270 in net::UploadThread::update (this=0x9bd0958) at /usr/src/debug/libktorrent-1.1.2/src/net/uploadthread.cpp:45
#5  0x0263ed38 in net::NetworkThread::run (this=0x9bd0958) at /usr/src/debug/libktorrent-1.1.2/src/net/networkthread.cpp:48
#6  0x04026603 in QThreadPrivate::start (arg=0x9bd0958) at thread/qthread_unix.cpp:331
#7  0x00837e99 in start_thread (arg=0xaf7d9b70) at pthread_create.c:301
#8  0x00751d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 3 (Thread 0xaefd8b70 (LWP 22000)):
#0  0x00a9b424 in __kernel_vsyscall ()
#1  0x0083c39b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:169
#2  0x04026cf7 in wait (this=0xa614f3c, mutex=0xa614f38, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#3  QWaitCondition::wait (this=0xa614f3c, mutex=0xa614f38, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#4  0x026420a7 in net::ReverseResolverThread::run (this=0xa614f30) at /usr/src/debug/libktorrent-1.1.2/src/net/reverseresolver.cpp:123
#5  0x04026603 in QThreadPrivate::start (arg=0xa614f30) at thread/qthread_unix.cpp:331
#6  0x00837e99 in start_thread (arg=0xaefd8b70) at pthread_create.c:301
#7  0x00751d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 2 (Thread 0xb20deb70 (LWP 24503)):
[KCrash Handler]
#7  0x00a9b424 in __kernel_vsyscall ()
#8  0x006a52f1 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#9  0x006a6d5e in abort () at abort.c:92
#10 0x00e47487 in g_logv (log_domain=0xea7ca6 "GLib", log_level=<value optimized out>, format=0xead8c4 "Cannot create pipe main loop wake-up: %s\n", args1=0xb20de17c "\364;|") at gmessages.c:557
#11 0x00e474c3 in g_log (log_domain=0xea7ca6 "GLib", log_level=G_LOG_LEVEL_ERROR, format=0xead8c4 "Cannot create pipe main loop wake-up: %s\n") at gmessages.c:577
#12 0x00e3adbc in g_main_context_init_pipe (context=0xb4f8548) at gmain.c:520
#13 0x00e3b1c5 in g_main_context_new () at gmain.c:615
#14 0x0414b9b6 in QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate (this=0xb4e8d80, context=0x0) at kernel/qeventdispatcher_glib.cpp:310
#15 0x0414baac in QEventDispatcherGlib::QEventDispatcherGlib (this=0xa25e998, parent=0x0) at kernel/qeventdispatcher_glib.cpp:357
#16 0x0402592d in QThreadPrivate::createEventDispatcher (data=0xb460d30) at thread/qthread_unix.cpp:272
#17 0x040265da in QThreadPrivate::start (arg=0xb3dc6e8) at thread/qthread_unix.cpp:324
#18 0x00837e99 in start_thread (arg=0xb20deb70) at pthread_create.c:301
#19 0x00751d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 1 (Thread 0xb782a780 (LWP 21939)):
#0  0x00a9b424 in __kernel_vsyscall ()
#1  0x0083c39b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:169
#2  0x04026cf7 in wait (this=0xb45baec, mutex=0xb45bad8, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#3  QWaitCondition::wait (this=0xb45baec, mutex=0xb45bad8, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#4  0x0401a414 in QThreadPoolPrivate::waitForDone (this=0xb45ba88) at concurrent/qthreadpool.cpp:295
#5  0x0401b306 in QThreadPool::waitForDone (this=0xb321a80) at concurrent/qthreadpool.cpp:616
#6  0x0224d2fa in QHostInfoLookupManager::clear (this=0xb321a40) at kernel/qhostinfo.cpp:521
#7  0x0224e1ff in QHostInfoLookupManager::~QHostInfoLookupManager (this=0xb321a40, __in_chrg=<value optimized out>) at kernel/qhostinfo.cpp:506
#8  0x0224e4b3 in QHostInfoLookupManager::~QHostInfoLookupManager (this=0xb321a40, __in_chrg=<value optimized out>) at kernel/qhostinfo.cpp:507
#9  0x0224e50b in QGlobalStaticDeleter<QHostInfoLookupManager>::~QGlobalStaticDeleter (this=0x22e45c8, __in_chrg=<value optimized out>) at ../../src/corelib/global/qglobal.h:1823
#10 0x006a8cdf in __run_exit_handlers (status=1) at exit.c:78
#11 exit (status=1) at exit.c:100
#12 0x01851621 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#13 0x02ea3e9b in KApplication::xioErrhandler (this=0xbf98e740, dpy=0x9c1f318) at /usr/src/debug/kdelibs-4.6.5/kdeui/kernel/kapplication.cpp:419
#14 0x02ea3ed7 in kde_xio_errhandler (dpy=0x9c1f318) at /usr/src/debug/kdelibs-4.6.5/kdeui/kernel/kapplication.cpp:126
#15 0x008c5d57 in _XIOError () from /usr/lib/libX11.so.6
#16 0x008cd12f in _XEventsQueued () from /usr/lib/libX11.so.6
#17 0x008b5cdb in XEventsQueued () from /usr/lib/libX11.so.6
#18 0x05a34c5f in x11EventSourcePrepare (s=0x9be96f0, timeout=0xbf98e4ac) at kernel/qguieventdispatcher_glib.cpp:77
#19 0x00e3d6b6 in g_main_context_prepare (context=<value optimized out>, priority=0xbf98e51c) at gmain.c:2469
#20 0x00e3e55b in g_main_context_iterate (context=0x9be8a80, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2760
#21 0x00e3ec35 in g_main_context_iteration (context=0x9be8a80, may_block=1) at gmain.c:2843
#22 0x0414bbcd in QEventDispatcherGlib::processEvents (this=0x9bce400, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#23 0x05a34df6 in QGuiEventDispatcherGlib::processEvents (this=0x9bce400, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#24 0x0411cfca in QEventLoop::processEvents (this=0xbf98e6b4, flags=...) at kernel/qeventloop.cpp:149
#25 0x0411d27a in QEventLoop::exec (this=0xbf98e6b4, flags=...) at kernel/qeventloop.cpp:201
#26 0x04121e27 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#27 0x0597ec98 in QApplication::exec () at kernel/qapplication.cpp:3755
#28 0x0806931a in main (argc=) at /usr/src/debug/ktorrent-4.1.2/ktorrent/main.cpp:177

This bug may be a duplicate of or related to bug 286620.

Possible duplicates by query: bug 286620, bug 277494.

Reported using DrKonqi
Comment 1 Birjukov Dmitrij Aleksandrovich 2011-11-14 21:11:56 UTC
Created attachment 65680 [details]
New crash information added by DrKonqi

ktorrent (4.1.2) on KDE Platform 4.6.5 (4.6.5) using Qt 4.7.4

- What I was doing when the application crashed:
Failure of KTorrent. First diagnosis on torrent-hand, that many open files, after a while - a failure.

-- Backtrace (Reduced):
#10 0x008e0487 in g_logv (log_domain=0x940ca6 "GLib", log_level=<value optimized out>, format=0x9468c4 "Cannot create pipe main loop wake-up: %s\n", args1=0xb191017c "\364;|") at gmessages.c:557
#11 0x008e04c3 in g_log (log_domain=0x940ca6 "GLib", log_level=G_LOG_LEVEL_ERROR, format=0x9468c4 "Cannot create pipe main loop wake-up: %s\n") at gmessages.c:577
#12 0x008d3dbc in g_main_context_init_pipe (context=0xb3a09840) at gmain.c:520
#13 0x008d41c5 in g_main_context_new () at gmain.c:615
#14 0x0414b9b6 in QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate (this=0xb3a09d18, context=0x0) at kernel/qeventdispatcher_glib.cpp:310
Comment 2 Birjukov Dmitrij Aleksandrovich 2011-11-14 22:02:34 UTC
Created attachment 65682 [details]
New crash information added by DrKonqi

ktorrent (4.1.2) on KDE Platform 4.6.5 (4.6.5) using Qt 4.7.4

- What I was doing when the application crashed:
The reason for failure is unknown.
Failures occur about every 30 minutes. Before Crashing error - "Too many open files"

-- Backtrace (Reduced):
#10 0x00e47487 in g_logv (log_domain=0xea7ca6 "GLib", log_level=<value optimized out>, format=0xead8c4 "Cannot create pipe main loop wake-up: %s\n", args1=0xb17e717c "\364\313\233") at gmessages.c:557
#11 0x00e474c3 in g_log (log_domain=0xea7ca6 "GLib", log_level=G_LOG_LEVEL_ERROR, format=0xead8c4 "Cannot create pipe main loop wake-up: %s\n") at gmessages.c:577
#12 0x00e3adbc in g_main_context_init_pipe (context=0xb3801f70) at gmain.c:520
#13 0x00e3b1c5 in g_main_context_new () at gmain.c:615
#14 0x0414b9b6 in QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate (this=0xb38066f8, context=0x0) at kernel/qeventdispatcher_glib.cpp:310
Comment 3 Birjukov Dmitrij Aleksandrovich 2011-11-14 22:47:37 UTC
Created attachment 65684 [details]
New crash information added by DrKonqi

ktorrent (4.1.2) on KDE Platform 4.6.5 (4.6.5) using Qt 4.7.4

- What I was doing when the application crashed:
The cause is unknown.
At the moment the error occurred without any warning messages.
Unfortunately, it seems to float bug.

-- Backtrace (Reduced):
#10 0x008e0487 in g_logv (log_domain=0x940ca6 "GLib", log_level=<value optimized out>, format=0x9468c4 "Cannot create pipe main loop wake-up: %s\n", args1=0xb193d17c "\364;|") at gmessages.c:557
#11 0x008e04c3 in g_log (log_domain=0x940ca6 "GLib", log_level=G_LOG_LEVEL_ERROR, format=0x9468c4 "Cannot create pipe main loop wake-up: %s\n") at gmessages.c:577
#12 0x008d3dbc in g_main_context_init_pipe (context=0x9d4d6c8) at gmain.c:520
#13 0x008d41c5 in g_main_context_new () at gmain.c:615
#14 0x0414b9b6 in QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate (this=0x9b06a90, context=0x0) at kernel/qeventdispatcher_glib.cpp:310
Comment 4 Joris Guisson 2011-11-16 16:59:51 UTC

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