A@A-Desktop:~$ qbittorrent
Peer ID: -qB2220-
HTTP user agent is qBittorrent v2.2.2
Warning: Local domain socket was not closed cleanly, deleting file...
qbittorrent: malloc.c:3929: __libc_valloc: Assertion `!p || ((((mchunkptr)((char
*)(p) - 2*(sizeof(size_t)))))->size & 0x2) || ar_ptr == (((((mchunkptr)((char*)(
p) - 2*(sizeof(size_t)))))->size & 0x4) ? ((heap_info *)((unsigned long)(((mchun
kptr)((char*)(p) - 2*(sizeof(size_t))))) & ~((2 * (512 * 1024))-1)))->ar_ptr : &
main_arena)' failed.
*************************************************************
Catching SIGABRT, please report a bug at http://bug.qbittorrent.org
and provide the following backtrace:
stack trace:
[0x91b400]
[0x91b422]
/lib/tls/i686/cmov/libc.so.6 : gsignal()+0x51 [0x5b3a4d1]
/lib/tls/i686/cmov/libc.so.6 : abort()+0x182 [0x5b3d932]
/lib/tls/i686/cmov/libc.so.6 : __assert_fail()+0xf8 [0x5b33648]
/lib/tls/i686/cmov/libc.so.6 : __libc_valloc()+0x19f [0x5b7f6ef]
/usr/lib/libtorrent-rasterbar.so.6 : libtorrent::page_aligned_allocator::mallo
c(unsigned int)+0x1d [0x10db5ed]
/usr/lib/libtorrent-rasterbar.so.6 : boost::pool<libtorrent::page_aligned_allo
cator>::ordered_malloc_need_resize()+0x5a [0x11067ea]
/usr/lib/libtorrent-rasterbar.so.6 : libtorrent::disk_buffer_pool::allocate_bu
ffer(char const*)+0xa6 [0x10feb66]
/usr/lib/libtorrent-rasterbar.so.6 : libtorrent::aux::session_impl::allocate_d
isk_buffer(char const*)+0x29 [0x11bca99]
/usr/lib/libtorrent-rasterbar.so.6 : libtorrent::peer_connection::allocate_dis
k_receive_buffer(int)+0x6a [0x118d38a]
/usr/lib/libtorrent-rasterbar.so.6 : libtorrent::bt_peer_connection::on_piece(
int)+0x585 [0x10e75a5]
/usr/lib/libtorrent-rasterbar.so.6 : libtorrent::bt_peer_connection::dispatch_
message(int)+0x158 [0x10ea358]
/usr/lib/libtorrent-rasterbar.so.6 : libtorrent::bt_peer_connection::on_receiv
e(boost::system::error_code const&, unsigned int)+0x278 [0x10ea6c8]
/usr/lib/libtorrent-rasterbar.so.6 : libtorrent::peer_connection::on_receive_d
ata(boost::system::error_code const&, unsigned int)+0xfd [0x1194efd]
/usr/lib/libtorrent-rasterbar.so.6 : boost::asio::detail::handler_queue::handl
er_wrapper<boost::asio::detail::binder2<libtorrent::peer_connection::allocating_
handler<boost::_bi::bind_t<void, boost::_mfi::mf2<void, libtorrent::peer_connect
ion, boost::system::error_code const&, unsigned int>, boost::_bi::list3<boost::_
bi::value<boost::intrusive_ptr<libtorrent::peer_connection> >, boost::arg<1>, bo
ost::arg<2> > >, 256u>, boost::system::error_code, unsigned int> >::do_call(boos
t::asio::detail::handler_queue::handler*)+0xb2 [0x119bf42]
/usr/lib/libtorrent-rasterbar.so.6 : boost::asio::detail::task_io_service<boos
t::asio::detail::epoll_reactor<false> >::run(boost::system::error_code&)+0x4ac
[0x113970c]
/usr/lib/libtorrent-rasterbar.so.6 : libtorrent::aux::session_impl::operator()
()+0x5c [0x11c8a7c]
/usr/lib/libtorrent-rasterbar.so.6 : boost::detail::thread_data<boost::referen
ce_wrapper<libtorrent::aux::session_impl> >::run()+0x23 [0x11df363]
/usr/lib/libboost_thread-mt.so.1.38.0 : thread_proxy()+0x5d [0x16dc1d]
/lib/tls/i686/cmov/libpthread.so.0 [0x14b80e]
/lib/tls/i686/cmov/libc.so.6 : clone()+0x5e [0x5bdc8de]
Aborted
This is a known bug in eglibc (used on recent Debian and Ubuntu) and libtorrent v0.15 because it uses vAlloc.
libtorrent v0.15 can easily be patched to use posix_memalign instead of vAlloc and avoid this issue.
Did you compile libtorrent v0.15 yourself?