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

Segfault when rTorrent runs on pretty busy drive #1282

Open
dmak opened this issue May 28, 2024 · 0 comments
Open

Segfault when rTorrent runs on pretty busy drive #1282

dmak opened this issue May 28, 2024 · 0 comments

Comments

@dmak
Copy link

dmak commented May 28, 2024

I think the issue is promoted due to increased load on the drive where rTorrent stores the downloads. I have caught about 5 SIGSEGV within 24 hours:

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `rtorrent'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fe1629f88ee in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1
[Current thread is 1 (Thread 0x7fe1611ff6c0 (LWP 1818046))]
#0  0x00007fe1629f88ee in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#1  0x00007fe1629f9eb4 in _Unwind_RaiseException () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#2  0x00007fe1626a90cb in __cxa_throw () from /lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007fe162a5c92e in torrent::Chunk::from_buffer (this=0x400000624b7be5, 
    buffer=0x7fe162a83e84 <torrent::FileList::create_chunk_part(__gnu_cxx::__normal_iterator<torrent::File**, std::vector<torrent::File*, std::allocator<torrent::File*> > >, unsigned long, unsigned int, int)+84>, position=7122944, length=51) at /usr/include/c++/11/ext/new_allocator.h:89
#4  0x11abd9e74f10ad00 in ?? ()
#5  0x00007fe100000000 in ?? ()
#6  0x0000000000004000 in ?? ()
#7  0x00005627fbc28d20 in ?? ()
#8  0x0000000000000040 in ?? ()
#9  0x00005627f949bb00 in ?? ()
#10 0x00005627fbc28d20 in ?? ()
#11 0x00005627f949aa00 in ?? ()
#12 0x00007fe162add43b in torrent::PeerConnection<(torrent::Download::ConnectionType)0>::read_message (this=0x5627fab9fd00, 
    this@entry=0x5627fbc28d20) at ./src/protocol/peer_connection_leech.cc:290
#13 0x00007fe162ae002c in torrent::PeerConnection<(torrent::Download::ConnectionType)0>::event_read (this=0x5627fbc28d20)
    at ./src/protocol/peer_connection_leech.cc:400
#14 0x00007fe162a77d3a in torrent::PollEPoll::perform (this=0x5627f9495350) at ./src/torrent/poll_epoll.cc:185
#15 0x00007fe162aa5195 in torrent::thread_base::event_loop (thread=0x5627f949aa00) at ./src/torrent/utils/thread_base.cc:174
#16 0x00005627f784ba4e in main (argc=<optimized out>, argv=0x7fffe2673de8) at main.cc:490

and a few SIGABRT:

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `rtorrent'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f910b0a9e2c in ?? () from /lib/x86_64-linux-gnu/libc.so.6
[Current thread is 1 (Thread 0x7f9109dff6c0 (LWP 2007934))]
#0  0x00007f910b0a9e2c in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f910b05afb2 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f910b045472 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x0000560db38ddcc2 in handle_sigbus (signum=<optimized out>, sa=0x7f9109dfe3f0, ptr=<optimized out>) at main.cc:588
#4  <signal handler called>
#5  0x00007f910ac8e845 in ?? () from /lib/x86_64-linux-gnu/libcrypto.so.3
#6  0x00007f910ac90592 in SHA1_Update () from /lib/x86_64-linux-gnu/libcrypto.so.3
#7  0x00007f910b6838d2 in torrent::Sha1::update (length=<optimized out>, data=<optimized out>, this=0x560db7fc9e18) at ./../utils/sha1.h:96
#8  torrent::HashChunk::perform_part (length=1048576, itr=..., this=0x560db7fc9e00) at ./src/data/hash_chunk.cc:92
#9  torrent::HashChunk::perform (this=this@entry=0x560db7fc9e00, length=<optimized out>, length@entry=4294967295, force=force@entry=true)
    at ./src/data/hash_chunk.cc:59
#10 0x00007f910b682ccc in torrent::HashCheckQueue::perform (this=0x560db4256700) at ./src/data/hash_check_queue.cc:130
#11 0x00007f910b67e1db in torrent::thread_base::event_loop (thread=0x560db4256080) at ./src/torrent/utils/thread_base.cc:141
#12 0x00007f910b0a8134 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#13 0x00007f910b1287dc in ?? () from /lib/x86_64-linux-gnu/libc.so.6

and a few SIGBUS:

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `rtorrent'.
Program terminated with signal SIGBUS, Bus error.
#0  0x00007ff62855179d in ?? () from /lib/x86_64-linux-gnu/libc.so.6
[Current thread is 1 (Thread 0x7ff62738b980 (LWP 1799093))]
#0  0x00007ff62855179d in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ff6288c8aa2 in memcpy (__len=51, __src=0x5646909f637d, __dest=<optimized out>)
    at /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29
#2  torrent::Chunk::from_buffer (this=0x56469057a000, buffer=0x5646909f637d, position=<optimized out>, length=length@entry=51)
    at ./src/data/chunk.cc:258
#3  0x00007ff6288fba22 in torrent::PeerConnectionBase::down_chunk_process (this=this@entry=0x564690d867b0, buffer=<optimized out>, 
    length=<optimized out>) at ./src/protocol/peer_connection_base.cc:632
#4  0x00007ff6288fba7e in torrent::PeerConnectionBase::down_chunk_from_buffer (this=0x564690d867b0)
    at ./src/protocol/peer_connection_base.cc:574
#5  0x00007ff6288ff603 in torrent::PeerConnection<(torrent::Download::ConnectionType)0>::read_message (this=this@entry=0x564690d867b0)
    at ./src/protocol/peer_connection_leech.cc:306
#6  0x00007ff62890202c in torrent::PeerConnection<(torrent::Download::ConnectionType)0>::event_read (this=0x564690d867b0)
    at ./src/protocol/peer_connection_leech.cc:400
#7  0x00007ff628899d3a in torrent::PollEPoll::perform (this=0x56468e7c3350) at ./src/torrent/poll_epoll.cc:185
#8  0x00007ff6288c7195 in torrent::thread_base::event_loop (thread=0x56468e7c8a00) at ./src/torrent/utils/thread_base.cc:174
#9  0x000056468cdd1a4e in main (argc=<optimized out>, argv=0x7ffc9a9f7b58) at main.cc:490

Whole list:

# coredumpctl --no-pager list
TIME                             PID UID   GID SIG     COREFILE EXE                 SIZE
Mon 2024-05-27 00:02:02 CEST 1790008 901 65534 SIGABRT present  /usr/bin/rtorrent  11.6M
Mon 2024-05-27 02:27:29 CEST 1799093 901 65534 SIGBUS  present  /usr/bin/rtorrent  22.0M
Mon 2024-05-27 05:22:30 CEST 1818044 901 65534 SIGSEGV present  /usr/bin/rtorrent  37.8M
Mon 2024-05-27 07:17:33 CEST 1836832 901 65534 SIGABRT present  /usr/bin/rtorrent  13.0M
Mon 2024-05-27 08:04:14 CEST 1849103 901 65534 SIGBUS  present  /usr/bin/rtorrent  11.5M
Mon 2024-05-27 08:57:31 CEST 1853949 901 65534 SIGBUS  present  /usr/bin/rtorrent  30.4M
Mon 2024-05-27 09:53:14 CEST 1859729 901 65534 SIGBUS  present  /usr/bin/rtorrent  56.9M
Mon 2024-05-27 10:51:00 CEST 1868376 901 65534 SIGABRT present  /usr/bin/rtorrent  20.4M
Mon 2024-05-27 11:35:32 CEST 1872128 901 65534 SIGSEGV present  /usr/bin/rtorrent  16.8M
Mon 2024-05-27 12:21:27 CEST 1877035 901 65534 SIGABRT present  /usr/bin/rtorrent  13.0M
Mon 2024-05-27 12:37:18 CEST 1882167 901 65534 SIGSEGV present  /usr/bin/rtorrent  12.4M
Mon 2024-05-27 13:02:19 CEST 1884195 901 65534 SIGABRT present  /usr/bin/rtorrent  12.2M
Mon 2024-05-27 14:02:43 CEST 1886962 901 65534 SIGABRT present  /usr/bin/rtorrent  14.9M
Mon 2024-05-27 14:41:12 CEST 1893585 901 65534 SIGSEGV present  /usr/bin/rtorrent  15.6M
Mon 2024-05-27 16:43:42 CEST 1897963 901 65534 SIGBUS  present  /usr/bin/rtorrent  26.0M
Mon 2024-05-27 18:00:11 CEST 1911632 901 65534 SIGABRT present  /usr/bin/rtorrent  19.5M
Mon 2024-05-27 20:43:32 CEST 1919986 901 65534 SIGBUS  present  /usr/bin/rtorrent  21.8M
Mon 2024-05-27 22:50:56 CEST 1957432 901 65534 SIGBUS  present  /usr/bin/rtorrent  22.0M

rTorrent v0.9.8-1

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

1 participant