Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtorrent frozen all the time for about 4/5 seconds each time #216

Closed
djdeath opened this issue Jun 24, 2014 · 1 comment
Closed

rtorrent frozen all the time for about 4/5 seconds each time #216

djdeath opened this issue Jun 24, 2014 · 1 comment

Comments

@djdeath
Copy link

djdeath commented Jun 24, 2014

I keep having rtorrent blocking.
Each time I attach gdb to see where it's blocked this the backtraces I get from the different thread :

(gdb) thread apply all backtrace

Thread 3 (Thread 0x7f2bab462700 (LWP 2488)):
#0 0x00007f2baec811f3 in epoll_wait ()

at ../sysdeps/unix/syscall-template.S:81

#1 0x00007f2bb0412dd5 in torrent::PollEPoll::poll(int) ()

from /usr/lib/x86_64-linux-gnu/libtorrent.so.14
#2 0x00007f2bb0412f4d in torrent::PollEPoll::do_poll(long, int) ()

from /usr/lib/x86_64-linux-gnu/libtorrent.so.14
#3 0x00007f2bb0449266 in torrent::thread_base::event_loop(torrent::thread_base*) () from /usr/lib/x86_64-linux-gnu/libtorrent.so.14
#4 0x00007f2baef4d062 in start_thread (arg=0x7f2bab462700)

at pthread_create.c:312

#5 0x00007f2baec80c1d in clone ()

at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f2baab60700 (LWP 2489)):
#0 0x00007f2baec811f3 in epoll_wait ()

at ../sysdeps/unix/syscall-template.S:81

#1 0x00007f2bb0412dd5 in torrent::PollEPoll::poll(int) ()

from /usr/lib/x86_64-linux-gnu/libtorrent.so.14
#2 0x00007f2bb0412f4d in torrent::PollEPoll::do_poll(long, int) ()

from /usr/lib/x86_64-linux-gnu/libtorrent.so.14
#3 0x00007f2bb0449266 in torrent::thread_base::event_loop(torrent::thread_base*---Type to continue, or q to quit---

) () from /usr/lib/x86_64-linux-gnu/libtorrent.so.14
#4 0x00007f2baef4d062 in start_thread (arg=0x7f2baab60700)

at pthread_create.c:312

#5 0x00007f2baec80c1d in clone ()

at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f2bb1191740 (LWP 2487)):
#0 0x00007f2baec5227d in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007f2baec7a514 in usleep (useconds=)

at ../sysdeps/unix/sysv/linux/usleep.c:32

#2 0x00007f2bb04491a5 in torrent::thread_base::interrupt() ()

from /usr/lib/x86_64-linux-gnu/libtorrent.so.14
#3 0x00007f2bb044f5fd in ?? () from /usr/lib/x86_64-linux-gnu/libtorrent.so.14
#4 0x00007f2bb0479f40 in ?? () from /usr/lib/x86_64-linux-gnu/libtorrent.so.14
#5 0x00007f2bb0474797 in ?? () from /usr/lib/x86_64-linux-gnu/libtorrent.so.14
#6 0x00007f2bb048dd36 in ?? () from /usr/lib/x86_64-linux-gnu/libtorrent.so.14
#7 0x00007f2bb0495ce2 in ?? () from /usr/lib/x86_64-linux-gnu/libtorrent.so.14
#8 0x00007f2bb0412eb7 in torrent::PollEPoll::perform() ()

from /usr/lib/x86_64-linux-gnu/libtorrent.so.14
#9 0x00007f2bb0412f62 in torrent::PollEPoll::do_poll(long, int) ()

from /usr/lib/x86_64-linux-gnu/libtorrent.so.14
#10 0x00007f2bb0449266 in torrent::thread_base::event_loop(torrent::thread_base*) () from /usr/lib/x86_64-linux-gnu/libtorrent.so.14
#11 0x000000000041476a in ?? ()
#12 0x00007f2baebbcb45 in __libc_start_main (main=0x411f60, argc=1,

argv=0x7fff438be708, init=<optimized out>, fini=<optimized out>, 
rtld_fini=<optimized out>, stack_end=0x7fff438be6f8) at libc-start.c:287

#13 0x0000000000414d55 in ?? ()
#14 0x00007fff438be6f8 in ?? ()
#15 0x000000000000001c in ?? ()
#16 0x0000000000000001 in ?? ()
#17 0x00007fff438c068e in ?? ()
#18 0x0000000000000000 in ?? ()

I can't think of any logical reason to call usleep() ever...

@rakshasa
Copy link
Owner

rakshasa commented Jul 3, 2014

The polling interrupt code has been updated to use sockets, so your version is old.

@rakshasa rakshasa closed this as completed Jul 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants