rakshasa / rtorrent

rTorrent BitTorrent client
https://github.com/rakshasa/rtorrent/wiki
GNU General Public License v2.0
4.08k stars 408 forks source link

Hash check raises SIGBUS from libcrypto.so #551

Open esainane opened 7 years ago

esainane commented 7 years ago

Description:

After opening rtorrent, and opening a particular closed torrent to resume a hash recheck, rtorrent will crash about 4% through the hash check with SIGBUS.

Terminal output:

Caught SIGBUS, dumping stack:
rtorrent(+0x1f01d) [0x560a37f0101d]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11100) [0x7fa73ea4b100]
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2(+0x84463) [0x7fa73c377463]

Error: Success
Signal code '2': Non-existent physical address.
Fault address: 0x7fa7306ac000
The fault address is not part of any chunk.
Aborted

GDB trace:

Thread 2 "rtorrent disk" received signal SIGBUS, Bus error.
[Switching to Thread 0x7fa739fb6700 (LWP 6913)]
-----------------------------------------------------------------------------------------------------------------------[regs]
  RAX: 0x0000000001F420B9  RBX: 0x000000007AA15E99  RBP: 0x000000001A0BE8DC  RSP: 0x00007FA739FB5A80  o d I t S z a p C 
  RDI: 0x00007FA7306AC02B  RSI: 0x000000006427783D  RDX: 0x000000007AA15E99  RCX: 0x00000000176FF258  RIP: 0x00007FA73C377463
  R8 : 0x0000560A3A6C8BC8  R9 : 0x00007FA7306ABFAB  R10: 0x00007FA7306B0DEB  R11: 0x00007FA73C378000  R12: 0x00000000176FF258
  R13: 0x00007FA7306AC02B  R14: 0x00007FA739FB5D88  R15: 0x0000560A39390CD0
  CS: 0033  DS: 0000  ES: 0000  FS: 0000  GS: 0000  SS: 002B                
-----------------------------------------------------------------------------------------------------------------------[code]
=> 0x7fa73c377463:  vmovdqu xmm1,XMMWORD PTR [rdi-0x30]
   0x7fa73c377468:  vmovdqu xmm2,XMMWORD PTR [rdi-0x20]
   0x7fa73c37746d:  vmovdqu xmm3,XMMWORD PTR [rdi-0x10]
   0x7fa73c377472:  vinserti128 ymm0,ymm0,XMMWORD PTR [r13+0x0],0x1
   0x7fa73c377479:  vinserti128 ymm1,ymm1,XMMWORD PTR [r13+0x10],0x1
   0x7fa73c377480:  vinserti128 ymm2,ymm2,XMMWORD PTR [r13+0x20],0x1
   0x7fa73c377487:  vinserti128 ymm3,ymm3,XMMWORD PTR [r13+0x30],0x1
   0x7fa73c37748e:  jmp    0x7fa73c3774a0
-----------------------------------------------------------------------------------------------------------------------------
0x00007fa73c377463 in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2
gdb$ bt full
#0  0x00007fa73c377463 in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2
No symbol table info available.
#1  0x7c5d9bef897ba918 in ?? ()
No symbol table info available.
#2  0x58f678a570648e6e in ?? ()
No symbol table info available.
#3  0x6f9b8ef369c78779 in ?? ()
No symbol table info available.
#4  0x65c582f26c02896f in ?? ()
No symbol table info available.
#5  0x28f946223bc55a8a in ?? ()
No symbol table info available.
#6  0x0edd2d861ea43d74 in ?? ()
No symbol table info available.
#7  0x58eb765361577d6e in ?? ()
No symbol table info available.
#8  0x578a766054ed73d7 in ?? ()
No symbol table info available.
#9  0x12a733be0a052809 in ?? ()
No symbol table info available.
#10 0x324951f32a174a37 in ?? ()
No symbol table info available.
#11 0x704a8c475fad7eac in ?? ()
No symbol table info available.
#12 0x7d9d9c157d6b99d6 in ?? ()
No symbol table info available.
#13 0x54337365403f5e9e in ?? ()
No symbol table info available.
#14 0x6463832c59bf7940 in ?? ()
No symbol table info available.
#15 0x8f72ada08486a367 in ?? ()
No symbol table info available.
#16 0xa0efbdc09826b4a8 in ?? ()
No symbol table info available.
#17 0x8be3ab4a34d551c5 in ?? ()
No symbol table info available.
#18 0xd5a4e17fc02cd3eb in ?? ()
No symbol table info available.
#19 0xc6eee4ddb8bedfdd in ?? ()
No symbol table info available.
#20 0x6a9bdd50422549cb in ?? ()
No symbol table info available.
#21 0x3b47a5965257dade in ?? ()
No symbol table info available.
#22 0x3c9fca6e4e55d776 in ?? ()
No symbol table info available.
#23 0x0f55b432e4896264 in ?? ()
No symbol table info available.
#24 0x24f5a4bc14d33acc in ?? ()
No symbol table info available.
#25 0x72cb5bd85b2c2a0f in ?? ()
No symbol table info available.
#26 0xe0e6dbde73694daa in ?? ()
No symbol table info available.
#27 0x6d66151c21e50398 in ?? ()
No symbol table info available.
#28 0xd8ccb0182182ad55 in ?? ()
No symbol table info available.
#29 0xe04042e762f2f6f2 in ?? ()
No symbol table info available.
#30 0x7193c71d7f0c6468 in ?? ()
No symbol table info available.
#31 0x2f76ddaba7e08694 in ?? ()
No symbol table info available.
#32 0xb91204b8ce0197d0 in ?? ()
No symbol table info available.
#33 0x21daa8efb473c24d in ?? ()
No symbol table info available.
#34 0x708fdca6709c03d6 in ?? ()
No symbol table info available.
#35 0x2a9706f002ec92b8 in ?? ()
No symbol table info available.
#36 0x09df7c2d4414e845 in ?? ()
No symbol table info available.
#37 0x50f23c376519518f in ?? ()
No symbol table info available.
#38 0xe43e0c71b436a493 in ?? ()
No symbol table info available.
#39 0x7666e9e914b55c49 in ?? ()
No symbol table info available.
#40 0xbdc3df60147ab4a0 in ?? ()
No symbol table info available.
#41 0x9e5ec8492dd57196 in ?? ()
No symbol table info available.
#42 0xc7e98265977c6057 in ?? ()
No symbol table info available.
#43 0xa1e23a55b396db15 in ?? ()
No symbol table info available.
#44 0xbb3d2e6cb0166594 in ?? ()
No symbol table info available.
#45 0xc26abc8bc9c9f706 in ?? ()
No symbol table info available.
#46 0x8c02b66ddf9162fc in ?? ()
No symbol table info available.
#47 0xeac138b7319432f7 in ?? ()
No symbol table info available.
#48 0xc944ccd41485218a in ?? ()
No symbol table info available.
#49 0x6a237ee96274c7f5 in ?? ()
No symbol table info available.
#50 0x9f8e9ae296120b3e in ?? ()
No symbol table info available.
#51 0xfd4ae1050d08397e in ?? ()
No symbol table info available.
#52 0x29a484c963801374 in ?? ()
No symbol table info available.
#53 0xd4a53ff334b00752 in ?? ()
No symbol table info available.
#54 0xd5c6ed90c6e0a5b9 in ?? ()
No symbol table info available.
#55 0x1c63fe45277591a7 in ?? ()
No symbol table info available.
#56 0x8bda68c7cb90a7e7 in ?? ()
No symbol table info available.
#57 0x45b785458f2efc7a in ?? ()
No symbol table info available.
#58 0xc6e1745874438bea in ?? ()
No symbol table info available.
#59 0x689544727766d371 in ?? ()
No symbol table info available.
#60 0x99ab7342e3cc047d in ?? ()
No symbol table info available.
#61 0xa86f5624be0afe00 in ?? ()
No symbol table info available.
#62 0xf0272fdbd0bea707 in ?? ()
No symbol table info available.
#63 0x3b4ba7ad96c545a6 in ?? ()
No symbol table info available.
#64 0x9416c9aa675f4c99 in ?? ()
No symbol table info available.
#65 0xc1cd247ce1c49f2c in ?? ()
No symbol table info available.
#66 0xb521304c91660c14 in ?? ()
No symbol table info available.
#67 0x2ca89ef92cba74c6 in ?? ()
No symbol table info available.
#68 0xc893c5fa6cd64623 in ?? ()
No symbol table info available.
#69 0xfebd9d7cf788ba25 in ?? ()
No symbol table info available.
#70 0xbc059f0580c779df in ?? ()
No symbol table info available.
#71 0x113dd807de77843c in ?? ()
No symbol table info available.
#72 0xbb3295753847a8c9 in ?? ()
No symbol table info available.
#73 0x4b040d4b5682ae97 in ?? ()
No symbol table info available.
#74 0xe93404e10abf8a40 in ?? ()
No symbol table info available.
#75 0x8310d617fb52adc1 in ?? ()
No symbol table info available.
#76 0x33d63ad35f3fe91d in ?? ()
No symbol table info available.
#77 0xea0094e57b519618 in ?? ()
No symbol table info available.
#78 0xf226cd733d8248a1 in ?? ()
No symbol table info available.
#79 0xa11868c0c2ac803f in ?? ()
No symbol table info available.
#80 0x11522fd9bedc0e51 in ?? ()
No symbol table info available.
#81 0xca62c1eaca63cabe in ?? ()
No symbol table info available.
#82 0x00007fa73f57db3b in std::const_mem_fun1_ref_t<bool, torrent::ChunkPart, unsigned int>::operator() (__x=0x176ff258, __r=..., this=0x7fa739fb5d80) at /usr/include/c++/6/bits/stl_function.h:1073
No locals.
#83 std::binder2nd<std::const_mem_fun1_ref_t<bool, torrent::ChunkPart, unsigned int> >::operator() (__x=..., this=0x7fa739fb5d80) at /usr/include/c++/6/backward/binders.h:164
No locals.
#84 __gnu_cxx::__ops::_Iter_pred<std::binder2nd<std::const_mem_fun1_ref_t<bool, torrent::ChunkPart, unsigned int> > >::operator()<__gnu_cxx::__normal_iterator<torrent::ChunkPart*, std::vector<torrent::ChunkPart, std::allocator<torrent::ChunkPart> > > > (__it=..., this=0x7fa739fb5d80) at /usr/include/c++/6/bits/predefined_ops.h:234
No locals.
#85 std::__find_if<__gnu_cxx::__normal_iterator<torrent::ChunkPart*, std::vector<torrent::ChunkPart, std::allocator<torrent::ChunkPart> > >, __gnu_cxx::__ops::_Iter_pred<std::binder2nd<std::const_mem_fun1_ref_t<bool, torrent::ChunkPart, unsigned int> > > > (__first=..., __last=..., __pred=...) at /usr/include/c++/6/bits/stl_algo.h:148
        __trip_count = <optimized out>
#86 0x0000000000040000 in ?? ()
No symbol table info available.
#87 0x0000560a3a6c8bc8 in ?? ()
No symbol table info available.
#88 0x00007fa73c3725db in SHA1_Update () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2
No symbol table info available.
#89 0x00007fa73f582102 in torrent::Sha1::update (length=<optimized out>, data=<optimized out>, this=0x560a3a6c8bc8) at ./../utils/sha1.h:96
No locals.
#90 torrent::HashChunk::perform_part (this=this@entry=0x560a3a6c8bb0, itr=..., length=length@entry=0x40000) at hash_chunk.cc:92
No locals.
#91 0x00007fa73f582175 in torrent::HashChunk::perform (this=this@entry=0x560a3a6c8bb0, length=<optimized out>, length@entry=0xffffffff, force=force@entry=0x1) at hash_chunk.cc:59
        node = <optimized out>
        l = 0x40000
        complete = 0x1
#92 0x00007fa73f5810cf in torrent::HashCheckQueue::perform (this=0x7fa730670deb) at hash_check_queue.cc:130
        hash_chunk = 0x560a3a6c8bb0
        size = <optimized out>
        hash = {
          static size_data = 0x14, 
          m_data = "<\225s\357\303n\305\023\312a\357\"\271؃\376\311\344\372\376"
        }
#93 0x00007fa73f51daec in torrent::thread_disk::call_events (this=<optimized out>) at thread_disk.cc:74
No locals.
#94 0x00007fa73f57a930 in torrent::thread_base::event_loop (thread=0x560a39390650) at thread_base.cc:141
        next_timeout = <optimized out>
        poll_flags = <optimized out>
        event_count = <optimized out>
#95 0x00007fa73ea41464 in start_thread (arg=0x7fa739fb6700) at pthread_create.c:333
        __res = <optimized out>
        pd = 0x7fa739fb6700
        now = <optimized out>
        unwind_buf = {
          cancel_jmp_buf = {{
              jmp_buf = {0x7fa739fb6700, 0xbf19bbc223ed3f59, 0x0, 0x7ffd4614350f, 0x0, 0x7fa74035a040, 0x4057c8349dad3f59, 0x4057c68a0bb73f59}, 
              mask_was_saved = 0x0
            }}, 
          priv = {
            pad = {0x0, 0x0, 0x0, 0x0}, 
            data = {
              prev = 0x0, 
              cleanup = 0x0, 
              canceltype = 0x0
            }
          }
        }
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#96 0x00007fa73e7849df in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105
No locals.

Valgrind log:

==6631== Memcheck, a memory error detector
==6631== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==6631== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
==6631== Command: rtorrent
==6631== Parent PID: 5014
==6631== 
--6631-- 
--6631-- Valgrind options:
--6631--    -v
--6631--    --trace-children=yes
--6631--    --log-file=val.out
--6631-- Contents of /proc/version:
--6631--   Linux version 4.8.0-2-amd64 (debian-kernel@lists.debian.org) (gcc version 5.4.1 20161202 (Debian 5.4.1-4) ) #1 SMP Debian 4.8.15-2 (2017-01-04)
--6631-- 
--6631-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-avx-avx2-bmi
--6631-- Page sizes: currently 4096, max supported 4096
--6631-- Valgrind library directory: /usr/lib/valgrind
--6631-- Reading syms from /usr/local/bin/rtorrent
--6631-- Reading syms from /lib/x86_64-linux-gnu/ld-2.24.so
--6631--   Considering /usr/lib/debug/.build-id/08/08c1bb645f921bacd138bc23d38f59fb4a9c67.debug ..
--6631--   .. build-id is valid
--6631-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux
--6631--   Considering /usr/lib/valgrind/memcheck-amd64-linux ..
--6631--   .. CRC mismatch (computed db5b2ec5 wanted 0eae776b)
--6631--   Considering /usr/lib/debug/usr/lib/valgrind/memcheck-amd64-linux ..
--6631--   .. CRC is valid
--6631--    object doesn't have a dynamic symbol table
--6631-- Scheduler: using generic scheduler lock implementation.
--6631-- Reading suppressions file: /usr/lib/valgrind/default.supp
==6631== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-6631-by-user-on-???
==6631== embedded gdbserver: writing to   /tmp/vgdb-pipe-to-vgdb-from-6631-by-user-on-???
==6631== embedded gdbserver: shared mem   /tmp/vgdb-pipe-shared-mem-vgdb-6631-by-user-on-???
==6631== 
==6631== TO CONTROL THIS PROCESS USING vgdb (which you probably
==6631== don't want to do, unless you know exactly what you're doing,
==6631== or are doing some strange experiment):
==6631==   /usr/lib/valgrind/../../bin/vgdb --pid=6631 ...command...
==6631== 
==6631== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==6631==   /path/to/gdb rtorrent
==6631== and then give GDB the following command
==6631==   target remote | /usr/lib/valgrind/../../bin/vgdb --pid=6631
==6631== --pid is optional if only one valgrind process is running
==6631== 
--6631-- REDIR: 0x401acf0 (ld-linux-x86-64.so.2:strlen) redirected to 0x3809de81 (vgPlain_amd64_linux_REDIR_FOR_strlen)
--6631-- REDIR: 0x4019640 (ld-linux-x86-64.so.2:index) redirected to 0x3809de9b (vgPlain_amd64_linux_REDIR_FOR_index)
--6631-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so
--6631--   Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so ..
--6631--   .. CRC mismatch (computed 74a069fa wanted 84d99202)
--6631--   Considering /usr/lib/debug/usr/lib/valgrind/vgpreload_core-amd64-linux.so ..
--6631--   .. CRC is valid
--6631-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
--6631--   Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so ..
--6631--   .. CRC mismatch (computed 88f2547e wanted 8a7a4459)
--6631--   Considering /usr/lib/debug/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so ..
--6631--   .. CRC is valid
==6631== WARNING: new redirection conflicts with existing -- ignoring it
--6631--     old: 0x0401acf0 (strlen              ) R-> (0000.0) 0x3809de81 vgPlain_amd64_linux_REDIR_FOR_strlen
--6631--     new: 0x0401acf0 (strlen              ) R-> (2007.0) 0x04c2de60 strlen
--6631-- REDIR: 0x4019860 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c2ef60 (strcmp)
--6631-- REDIR: 0x401b800 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c32330 (mempcpy)
--6631-- Reading syms from /lib/x86_64-linux-gnu/libncursesw.so.5.9
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /lib/x86_64-linux-gnu/libtinfo.so.5.9
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libcppunit-1.13.so.0.0.2
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libcurl.so.4.4.0
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/local/lib/libtorrent.so.19.0.0
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /lib/x86_64-linux-gnu/libm-2.24.so
--6631--   Considering /usr/lib/debug/.build-id/a0/0ff62b9ca7497ce2e747bbbe4df0aa3a18f898.debug ..
--6631--   .. build-id is valid
--6631-- Reading syms from /lib/x86_64-linux-gnu/libgcc_s.so.1
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.24.so
--6631--   Considering /usr/lib/debug/.build-id/a4/bddfcd387c9e824fbc5000a0c6b62c1788a265.debug ..
--6631--   .. build-id is valid
--6631-- Reading syms from /lib/x86_64-linux-gnu/libc-2.24.so
--6631--   Considering /usr/lib/debug/.build-id/29/725acf575edd8ab3451049e651dbdff55ebf33.debug ..
--6631--   .. build-id is valid
--6631-- Reading syms from /lib/x86_64-linux-gnu/libdl-2.24.so
--6631--   Considering /usr/lib/debug/.build-id/68/f719036af8966a0c853efb18b31f69a98f7537.debug ..
--6631--   .. build-id is valid
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libnghttp2.so.14.12.2
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/librtmp.so.1
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libssh2.so.1.0.1
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /lib/x86_64-linux-gnu/libcom_err.so.2.1
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.7
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.7
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /lib/x86_64-linux-gnu/libz.so.1.2.8
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libgnutls.so.30.13.0
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libhogweed.so.4.3
--6631--   Considering /usr/lib/x86_64-linux-gnu/libhogweed.so.4.3 ..
--6631--   .. CRC mismatch (computed 9d5b20e6 wanted 06fd34da)
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libnettle.so.6.3
--6631--   Considering /usr/lib/x86_64-linux-gnu/libnettle.so.6.3 ..
--6631--   .. CRC mismatch (computed 75104a3c wanted d6194b15)
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /lib/x86_64-linux-gnu/libgcrypt.so.20.1.5
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /lib/x86_64-linux-gnu/libkeyutils.so.1.5
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /lib/x86_64-linux-gnu/libresolv-2.24.so
--6631--   Considering /usr/lib/debug/.build-id/e6/6d9cf1e7bb1cf1695140c1064bbe39067c2096.debug ..
--6631--   .. build-id is valid
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.2.0
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /lib/x86_64-linux-gnu/libidn.so.11.6.16
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.2
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /lib/x86_64-linux-gnu/libgpg-error.so.0.21.0
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
--6631--    object doesn't have a symbol table
--6631-- REDIR: 0x65b8520 (libc.so.6:strcasecmp) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x65b3fd0 (libc.so.6:strcspn) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x65ba810 (libc.so.6:strncasecmp) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x65b6440 (libc.so.6:strpbrk) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x65b67d0 (libc.so.6:strspn) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x65b7ba0 (libc.so.6:memmove) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x65b3eb0 (libc.so.6:strcpy) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x65b27d0 (libc.so.6:index) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x65b8050 (libc.so.6:memset) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x65bcf10 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x65b8370 (libc.so.6:stpcpy) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x65b4830 (libc.so.6:strncat) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x65b2a20 (libc.so.6:strcmp) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x662a1c0 (libc.so.6:__memcpy_chk) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x65b25d0 (libc.so.6:strcat) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x65b6110 (libc.so.6:strncpy) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x65b4870 (libc.so.6:strncmp) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x65b7760 (libc.so.6:bcmp) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x65b71e0 (libc.so.6:strstr) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
--6631-- REDIR: 0x662a280 (libc.so.6:__memmove_chk) redirected to 0x4a25740 (_vgnU_ifunc_wrapper)
==6631== WARNING: new redirection conflicts with existing -- ignoring it
--6631--     old: 0x0665cce0 (__memcpy_chk_avx_una) R-> (2030.0) 0x04c32420 __memcpy_chk
--6631--     new: 0x0665cce0 (__memcpy_chk_avx_una) R-> (2024.0) 0x04c31df0 __memmove_chk
--6631-- REDIR: 0x65b6150 (libc.so.6:rindex) redirected to 0x4c2d7f0 (rindex)
--6631-- REDIR: 0x65b4470 (libc.so.6:strlen) redirected to 0x4c2dda0 (strlen)
--6631-- REDIR: 0x65aed40 (libc.so.6:malloc) redirected to 0x4c2ab40 (malloc)
--6631-- REDIR: 0x65b7cb0 (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4c2f0c0 (memcpy@GLIBC_2.2.5)
--6631-- REDIR: 0x65b2a60 (libc.so.6:__GI_strcmp) redirected to 0x4c2ee70 (__GI_strcmp)
--6631-- REDIR: 0x65b48c0 (libc.so.6:__GI_strncmp) redirected to 0x4c2e550 (__GI_strncmp)
--6631-- REDIR: 0x65af730 (libc.so.6:calloc) redirected to 0x4c2cb10 (calloc)
--6631-- REDIR: 0x665ccf0 (libc.so.6:__memcpy_avx_unaligned_erms) redirected to 0x4c315c0 (memmove)
--6631-- REDIR: 0x65b2800 (libc.so.6:__GI_strchr) redirected to 0x4c2d950 (__GI_strchr)
--6631-- REDIR: 0x665cce0 (libc.so.6:__memcpy_chk_avx_unaligned_erms) redirected to 0x4c32420 (__memcpy_chk)
--6631-- REDIR: 0x65c3330 (libc.so.6:__strcmp_sse2_unaligned) redirected to 0x4c2ee20 (strcmp)
--6631-- REDIR: 0x65af340 (libc.so.6:free) redirected to 0x4c2bd70 (free)
--6631-- REDIR: 0x6677c40 (libc.so.6:__memcmp_sse4_1) redirected to 0x4c30ca0 (__memcmp_sse4_1)
--6631-- REDIR: 0x65b77a0 (libc.so.6:__GI_memcmp) redirected to 0x4c30b40 (__GI_memcmp)
--6631-- REDIR: 0x5b0a800 (libstdc++.so.6:operator new[](unsigned long)) redirected to 0x4c2b8d0 (operator new[](unsigned long))
--6631-- REDIR: 0x65b7410 (libc.so.6:memchr) redirected to 0x4c2f000 (memchr)
--6631-- REDIR: 0x65be520 (libc.so.6:strchrnul) redirected to 0x4c31e60 (strchrnul)
--6631-- REDIR: 0x5b0a740 (libstdc++.so.6:operator new(unsigned long)) redirected to 0x4c2b1b0 (operator new(unsigned long))
--6631-- REDIR: 0x5b08880 (libstdc++.so.6:operator delete(void*)) redirected to 0x4c2c270 (operator delete(void*))
--6631-- REDIR: 0x665d130 (libc.so.6:__memset_avx2_unaligned_erms) redirected to 0x4c314c0 (memset)
--6631-- REDIR: 0x65af3f0 (libc.so.6:realloc) redirected to 0x4c2cd50 (realloc)
--6631-- REDIR: 0x65b83b0 (libc.so.6:__GI_stpcpy) redirected to 0x4c30f80 (__GI_stpcpy)
--6631-- REDIR: 0x65b7c90 (libc.so.6:__GI_mempcpy) redirected to 0x4c32060 (__GI_mempcpy)
--6631-- REDIR: 0x65b6d70 (libc.so.6:__GI_strstr) redirected to 0x4c32590 (__strstr_sse2)
--6631-- REDIR: 0x65b8590 (libc.so.6:__GI___strcasecmp_l) redirected to 0x4c2ea60 (__GI___strcasecmp_l)
--6631-- REDIR: 0x65be310 (libc.so.6:rawmemchr) redirected to 0x4c31e90 (rawmemchr)
--6631-- REDIR: 0x5b088b0 (libstdc++.so.6:operator delete[](void*)) redirected to 0x4c2c770 (operator delete[](void*))
--6631-- REDIR: 0x65c85b0 (libc.so.6:__strncpy_sse2_unaligned) redirected to 0x4c2e3b0 (__strncpy_sse2_unaligned)
--6631-- REDIR: 0x65b0de0 (libc.so.6:posix_memalign) redirected to 0x4c2cff0 (posix_memalign)
--6631-- REDIR: 0x6659c40 (libc.so.6:__strcasecmp_avx) redirected to 0x4c2e6a0 (strcasecmp)
--6631-- REDIR: 0x65b4610 (libc.so.6:strnlen) redirected to 0x4c2dd40 (strnlen)
--6631-- REDIR: 0x65c7f80 (libc.so.6:__strcpy_sse2_unaligned) redirected to 0x4c2de80 (strcpy)
--6631-- REDIR: 0x65cc620 (libc.so.6:__strstr_sse2_unaligned) redirected to 0x4c32520 (strstr)
--6631-- REDIR: 0x5b088a0 (libstdc++.so.6:operator delete(void*, std::nothrow_t const&)) redirected to 0x4c2c450 (operator delete(void*, std::nothrow_t const&))
--6631-- REDIR: 0x5b0a7a0 (libstdc++.so.6:operator new(unsigned long, std::nothrow_t const&)) redirected to 0x4c2b440 (operator new(unsigned long, std::nothrow_t const&))
--6631-- REDIR: 0x665b2b0 (libc.so.6:__strncasecmp_avx) redirected to 0x4c2e780 (strncasecmp)
--6631-- REDIR: 0x65c32e0 (libc.so.6:__GI_strncpy) redirected to 0x4c2e150 (__GI_strncpy)
--6631-- Reading syms from /lib/x86_64-linux-gnu/libnss_files-2.24.so
--6631--   Considering /usr/lib/debug/.build-id/c7/afcc7fce34a669374e273039eeb2c3b074b9e5.debug ..
--6631--   .. build-id is valid
--6631-- REDIR: 0x65b3ef0 (libc.so.6:__GI_strcpy) redirected to 0x4c2df50 (__GI_strcpy)
--6631-- REDIR: 0x66599f0 (libc.so.6:__strpbrk_sse42) redirected to 0x4c32670 (strpbrk)
--6631-- Reading syms from /lib/x86_64-linux-gnu/libnss_myhostname.so.2
--6631--    object doesn't have a symbol table
--6631-- Reading syms from /lib/x86_64-linux-gnu/librt-2.24.so
--6631--   Considering /usr/lib/debug/.build-id/95/6d582f0e97d621d35d2e65b366769c5aa9f430.debug ..
--6631--   .. build-id is valid
--6631-- REDIR: 0x6654d50 (libc.so.6:__strncmp_sse42) redirected to 0x4c2e630 (__strncmp_sse42)
--6631-- Reading syms from /lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2
--6631--    object doesn't have a symbol table
--6631-- REDIR: 0x401bad0 (ld-linux-x86-64.so.2:stpcpy) redirected to 0x4c312c0 (stpcpy)
--6631-- Reading syms from /lib/x86_64-linux-gnu/libnss_dns-2.24.so
--6631--   Considering /usr/lib/debug/.build-id/1f/ebbbe80c712faa1ff2a9a5ef227f160d308880.debug ..
--6631--   .. build-id is valid
==6631== 
==6631== Process terminating with default action of signal 6 (SIGABRT)
==6631==    at 0x6566FDF: raise (raise.c:58)
==6631==    by 0x6568409: abort (abort.c:89)
==6631==    by 0x1273AB: handle_sigbus(int, siginfo_t*, void*) (main.cc:577)
==6631==    by 0x63280FF: ??? (in /lib/x86_64-linux-gnu/libpthread-2.24.so)
==6631==    by 0x889B462: ??? (in /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2)
==6631==    by 0x7C5D9BEF897BA917: ???
==6631==    by 0x58F678A570648E6D: ???
==6631==    by 0x6F9B8EF369C78778: ???
==6631==    by 0x65C582F26C02896E: ???
==6631==    by 0x28F946223BC55A89: ???
==6631==    by 0xEDD2D861EA43D73: ???
==6631==    by 0x58EB765361577D6D: ???
--6631-- Discarding syms at 0x1685b1d0-0x16860e91 in /lib/x86_64-linux-gnu/libnss_files-2.24.so due to munmap()
--6631-- Discarding syms at 0x40649b0-0x406ce43 in /lib/x86_64-linux-gnu/libnss_myhostname.so.2 due to munmap()
--6631-- Discarding syms at 0x16c73c00-0x16c74955 in /lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2 due to munmap()
--6631-- Discarding syms at 0x16e76f70-0x16e79e40 in /lib/x86_64-linux-gnu/libnss_dns-2.24.so due to munmap()
==6631== 
==6631== HEAP SUMMARY:
==6631==     in use at exit: 118,798,427 bytes in 388,380 blocks
==6631==   total heap usage: 1,380,601 allocs, 992,221 frees, 209,420,494 bytes allocated
==6631== 
==6631== Searching for pointers to 388,380 not-freed blocks
==6631== Checked 108,957,784 bytes
==6631== 
==6631== LEAK SUMMARY:
==6631==    definitely lost: 212 bytes in 8 blocks
==6631==    indirectly lost: 0 bytes in 0 blocks
==6631==      possibly lost: 850 bytes in 3 blocks
==6631==    still reachable: 118,797,365 bytes in 388,369 blocks
==6631==         suppressed: 0 bytes in 0 blocks
==6631== Rerun with --leak-check=full to see details of leaked memory
==6631== 
==6631== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==6631== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Duplicate check:

Going through open and closed issues referencing SIGBUS, I believe this is a new issue:

Reproducibly tested with:

Please let me know if there is anything I can do to help.

chros73 commented 7 years ago

After opening rtorrent, and opening a particular closed torrent to resume a hash recheck ...

Can you describe the steps to reproduce this?

2600box commented 7 years ago

I get this issue constantly on debian 8. I have plenty of free disk space. I have tried with debian deb and building from feature-bind. same result.

0 rtorrent() [0x415374]
1 /lib/x86_64-linux-gnu/libpthread.so.0(+0xf890) [0x7f2878c2a890]
2 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0(+0x7de13) [0x7f2877a11e13]

Error: Success
Signal code '2': Non-existent physical address.
Fault address: 0x7f28740a4000.

The fault address is not part of any chunk.
Aborted
sss123next commented 6 years ago

problem still exist. caused by bad sector on disk in my case unfortunately i have already remapped bad sector so can do additional checks.