When I added this torrent [1] qbittorrent crahses with a segfault. Here follows the full gdb output: GNU gdb (Gentoo 7.7 vanilla) 7.7 Copyright (C) 2014 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-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://bugs.gentoo.org/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from qbittorrent...Reading symbols from /usr/lib64/debug//usr/bin/qbittorrent.debug...done. done. (gdb) run Starting program: /usr/bin/qbittorrent warning: Could not load shared library symbols for linux-vdso.so.1. Do you need "set solib-search-path" or "set sysroot"? [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". [New Thread 0x7ffff7a6a700 (LWP 4210)] /usr/share/themes/MurrinaFancyCandy/gtk-2.0/gtkrc:46: Murrine configuration option "scrollbar_color" is no longer supported and will be ignored. [New Thread 0x7ffff5730700 (LWP 4213)] [New Thread 0x7ffff4f2f700 (LWP 4214)] [New Thread 0x7fffe7fff700 (LWP 4225)] [New Thread 0x7fffe77fe700 (LWP 4226)] [New Thread 0x7fffe6ffd700 (LWP 4228)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ffff5730700 (LWP 4213)] 0x00007ffff7c93533 in libtorrent::default_storage::readwritev (this=0x7fffec0b5340, bufs=<optimized out>, slot=<optimized out>, offset=<optimized out>, num_bufs=<optimized out>, op=...) at storage.cpp:1226 1226 && (m_file_priority.size() < file_index || m_file_priority[file_index] > 0)) (gdb) bt #0 0x00007ffff7c93533 in libtorrent::default_storage::readwritev (this=0x7fffec0b5340, bufs=<optimized out>, slot=<optimized out>, offset=<optimized out>, num_bufs=<optimized out>, op=...) at storage.cpp:1226 #1 0x00007ffff7c93d9a in libtorrent::default_storage::writev (this=<optimized out>, bufs=<optimized out>, slot=<optimized out>, offset=<optimized out>, num_bufs=<optimized out>, flags=<optimized out>) at storage.cpp:974 #2 0x00007ffff7c9a47e in libtorrent::piece_manager::write_impl (this=0x7fffec08d0d0, bufs=0x7ffff572f880, piece_index=27, offset=0, num_bufs=num_bufs@entry=16) at storage.cpp:1833 #3 0x00007ffff7b7d3e1 in libtorrent::disk_io_thread::flush_range (this=this@entry=0xe9c1c0, p=..., start=start@entry=0, end=16, end@entry=2147483647, l=...) at disk_io_thread.cpp:607 #4 0x00007ffff7b83405 in libtorrent::disk_io_thread::thread_fun (this=0xe9c1c0) at disk_io_thread.cpp:2205 #5 0x00007ffff7b51c4f in boost::asio::detail::boost_asio_detail_posix_thread_function (arg=0xe9b970) at /usr/include/boost/asio/detail/impl/posix_thread.ipp:64 #6 0x0000003f3f408333 in start_thread () from /lib64/libpthread.so.0 #7 0x0000003f3e8ea0cd in clone () from /lib64/libc.so.6 (gdb) c Continuing. ************************************************************* Catching SIGSEGV, please report a bug at http://bug.qbittorrent.org and provide the following backtrace: qBittorrent version: v3.1.8 stack trace: /usr/lib64/libtorrent-rasterbar.so.7 : libtorrent::default_storage::readwritev(iovec const*, int, int, int, libtorrent::default_storage::fileop const&)+0x333 [0x7ffff7c93533] /usr/lib64/libtorrent-rasterbar.so.7 : libtorrent::default_storage::writev(iovec const*, int, int, int, int)+0x5a [0x7ffff7c93d9a] /usr/lib64/libtorrent-rasterbar.so.7 : libtorrent::piece_manager::write_impl(iovec*, int, int, int)+0xbe [0x7ffff7c9a47e] /usr/lib64/libtorrent-rasterbar.so.7 : libtorrent::disk_io_thread::flush_range(libtorrent::disk_io_thread::cached_piece_entry&, int, int, boost::asio::detail::scoped_lock<boost::asio::detail::posix_mutex>&)+0x201 [0x7ffff7b7d3e1] /usr/lib64/libtorrent-rasterbar.so.7 : libtorrent::disk_io_thread::thread_fun()+0x1b25 [0x7ffff7b83405] /usr/lib64/libtorrent-rasterbar.so.7 : boost_asio_detail_posix_thread_function()+0xf [0x7ffff7b51c4f] /lib64/libpthread.so.0() [0x3f3f408333] /lib64/libc.so.6 : clone()+0x6d [0x3f3e8ea0cd] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7c93533 in libtorrent::default_storage::readwritev (this=0x7fffec0b5340, bufs=<optimized out>, slot=<optimized out>, offset=<optimized out>, num_bufs=<optimized out>, op=...) at storage.cpp:1226 1226 && (m_file_priority.size() < file_index || m_file_priority[file_index] > 0)) (gdb) c Continuing. [Thread 0x7fffe6ffd700 (LWP 4228) exited] [Thread 0x7fffe77fe700 (LWP 4226) exited] [Thread 0x7fffe7fff700 (LWP 4225) exited] [Thread 0x7ffff5730700 (LWP 4213) exited] [Thread 0x7ffff7a6a700 (LWP 4210) exited] [Thread 0x7ffff7a72740 (LWP 4206) exited] Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. (gdb) q Should this bug be reported upstream too? [1] http://cdimage.debian.org/debian-cd/7.4.0/powerpc/bt-cd/debian-7.4.0-powerpc-netinst.iso.torrent Reproducible: Always Steps to Reproduce: 1. Start qbittorrent. 2. Add the torrent (if it is not already added). 3. Wait a while (less than a minute). Actual Results: qBittorrent crashes with a segfault. Expected Results: qBittorrent should continue to run without crashing. $ emerge --info =net-p2p/qbittorrent-3.1.8 Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.18-r1, 3.13.5-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.13.5-gentoo-x86_64-AMD_Athlon-tm-_II_X4_640_Processor-with-gentoo-2.2 KiB Mem: 8180568 total, 3837596 free KiB Swap: 2097148 total, 2097148 free Timestamp of tree: Fri, 28 Feb 2014 19:30:01 +0000 ld GNU ld (GNU Binutils) 2.24 distcc 3.1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.2_p45-r1 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.6, 3.3.4 dev-util/cmake: 2.8.12.2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.12.6, 1.14.1 sys-devel/binutils: 2.24-r2 sys-devel/gcc: 4.7.3-r1, 4.8.2 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.13 (virtual/os-headers) sys-libs/glibc: 2.18-r1 Repositories: gentoo crossdev proaudio lilrc ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=amdfam10 -O2 -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=amdfam10 -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildsyspkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.df.lth.se/pub/gentoo/ rsync://ftp.df.lth.se/pub/gentoo/ http://mirror.mdfnet.se/gentoo" LANG="sv_SE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/crossdev /home/kalle/overlays/proaudio /home/kalle/overlays/lilrc" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acl amd64 aspell avahi bluetooth cairo caps cd cdda cddb cdr consolekit cracklib cups curl dbus dssi dvd dvdr exif ffmpeg fftw filecaps flac fltk gallium gif gimp git glib gmp gnuplot gnutls gstreamer gtk gtk2 gtkspell gtkstyle gudev hwdb jack javascript jit joystick jpeg keymap kmod ladspa lame libgig libnotify libsamplerate lv2 mad mmx mmxext mp3 mpeg multilib netifrc nls nptl ogg opengl openmp openrc orc pam pdf png policykit pulseaudio qt4 readline spell sse sse2 sse3 sse4_1 ssl startup-notification subversion svg svn theora threads thunar tiff truetype udev unicode usb v4l vlc vorbis webgl x264 xcb xcomposite xfce xinerama xml xorg xscreensaver zlib" ABI_X86="64" ALSA_CARDS="ca0106 hda-intel" CURL_SSL="gnutls" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en en_GB sv sv_SE" PYTHON_SINGLE_TARGET="python3_3" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="radeon" XFCE_PLUGINS="trash" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= net-p2p/qbittorrent-3.1.8 was built with the following: USE="X dbus -geoip" PYTHON_TARGETS="python2_7 -python2_6" CFLAGS="-O2 -march=amdfam10 -pipe -ggdb" CXXFLAGS="-O2 -march=amdfam10 -pipe -ggdb"
What libtorrent is this? What about 3.1.9? Have you tried reporting this upstream?
I'm not home right now so I cannot check the version, but I know I updated both qBittorrent and rb_libtorrent since I reported the bug. After the update I have not experienced this bug and thus I am marking the bug as INVALID. If I hit the bug again I will report it against the new version. Thanks for your time though!