frostalf / libtorrent

Automatically exported from code.google.com/p/libtorrent
0 stars 0 forks source link

assert at file: '../libtorrent_aio/src/allocator.cpp' line: 103 #571

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product are you using? On what operating system?

latest libtorrent_aio

Please provide any additional information below.
assertion failed. Please file a bugreport at 
http://code.google.com/p/libtorrent/issues
Please include the following information:

version: 1.1.0.0
$Rev: 9464 $
file: '../libtorrent_aio/src/allocator.cpp'
line: 103
function: static char* 
libtorrent::page_aligned_allocator::malloc(libtorrent::page_aligned_allocator::s
ize_type)
expression: bytes < 0x30000000

stack:
1: assert_fail(char const*, int, char const*, char const*, char const*)
2: libtorrent::page_aligned_allocator::malloc(unsigned long)
3: boost::pool<libtorrent::page_aligned_allocator>::malloc_need_resize()
4: boost::pool<libtorrent::page_aligned_allocator>::malloc()
5: 
libtorrent::disk_buffer_pool::allocate_buffer_impl(boost::asio::detail::scoped_l
ock<boost::asio::detail::posix_mutex>&, char const*)
6: libtorrent::disk_buffer_pool::allocate_buffer(char const*)
7: libtorrent::block_cache::allocate_iovec(iovec*, int)
8: libtorrent::disk_io_thread::do_read(libtorrent::disk_io_job*, 
libtorrent::tailqueue&)
9: libtorrent::disk_io_thread::perform_job(libtorrent::disk_io_job*, 
libtorrent::tailqueue&)
10: libtorrent::disk_io_thread::thread_fun(int, 
libtorrent::disk_io_thread::thread_type_t)
11: boost::_mfi::mf2<void, libtorrent::disk_io_thread, int, 
libtorrent::disk_io_thread::thread_type_t>::operator()(libtorrent::disk_io_threa
d*, int, libtorrent::disk_io_thread::thread_type_t) const
12: void boost::_bi::list3<boost::_bi::value<libtorrent::disk_io_thread*>, 
boost::_bi::value<int>, 
boost::_bi::value<libtorrent::disk_io_thread::thread_type_t> 
>::operator()<boost::_mfi::mf2<void, libtorrent::disk_io_thread, int, 
libtorrent::disk_io_thread::thread_type_t>, 
boost::_bi::list0>(boost::_bi::type<void>, boost::_mfi::mf2<void, 
libtorrent::disk_io_thread, int, libtorrent::disk_io_thread::thread_type_t>&, 
boost::_bi::list0&, int)
13: boost::_bi::bind_t<void, boost::_mfi::mf2<void, libtorrent::disk_io_thread, 
int, libtorrent::disk_io_thread::thread_type_t>, 
boost::_bi::list3<boost::_bi::value<libtorrent::disk_io_thread*>, 
boost::_bi::value<int>, 
boost::_bi::value<libtorrent::disk_io_thread::thread_type_t> > >::operator()()
14: boost::asio::detail::posix_thread::func<boost::_bi::bind_t<void, 
boost::_mfi::mf2<void, libtorrent::disk_io_thread, int, 
libtorrent::disk_io_thread::thread_type_t>, 
boost::_bi::list3<boost::_bi::value<libtorrent::disk_io_thread*>, 
boost::_bi::value<int>, 
boost::_bi::value<libtorrent::disk_io_thread::thread_type_t> > > >::run()
15: boost_asio_detail_posix_thread_function
16:
17: clone

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./utorrent cache-type=0 --utp --cache-size=48000 
--aio-threads=8 --network-thre'.
Program terminated with signal 6, Aborted.
#0  0x00007f7fdae9a475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007f7fdae9a475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f7fdae9d6f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x0000000000d42376 in assert_fail (expr=0x11ecf0e "bytes < 0x30000000", 
line=103, file=0x11ecee0 "../libtorrent_aio/src/allocator.cpp",
    function=0x11ecf40 "static char* libtorrent::page_aligned_allocator::malloc(libtorrent::page_aligned_allocator::size_type)", value=0x0)
    at ../libtorrent_aio/src/assert.cpp:278
#3  0x0000000000fec545 in libtorrent::page_aligned_allocator::malloc 
(bytes=5033164816) at ../libtorrent_aio/src/allocator.cpp:103
#4  0x00000000010047ea in 
boost::pool<libtorrent::page_aligned_allocator>::malloc_need_resize 
(this=0x2c76608) at /usr/include/boost/pool/pool.hpp:693
#5  0x0000000001003265 in 
boost::pool<libtorrent::page_aligned_allocator>::malloc (this=0x2c76608) at 
/usr/include/boost/pool/pool.hpp:431
#6  0x00000000010018c5 in libtorrent::disk_buffer_pool::allocate_buffer_impl 
(this=0x2c76530, l=..., category=0x11ede78 "pending read")
    at ../libtorrent_aio/src/disk_buffer_pool.cpp:344
#7  0x00000000010015fb in libtorrent::disk_buffer_pool::allocate_buffer 
(this=0x2c76530, category=0x11ede78 "pending read")
    at ../libtorrent_aio/src/disk_buffer_pool.cpp:286
#8  0x0000000000ff3715 in libtorrent::block_cache::allocate_iovec 
(this=0x2c76530, iov=0x7f7fdaa82a40, iov_len=8) at 
../libtorrent_aio/src/block_cache.cpp:1119
#9  0x0000000000f7387a in libtorrent::disk_io_thread::do_read (this=0x2c76178, 
j=0x3a93588, completed_jobs=...) at 
../libtorrent_aio/src/disk_io_thread.cpp:1242
#10 0x0000000000f73237 in libtorrent::disk_io_thread::perform_job 
(this=0x2c76178, j=0x3a93588, completed_jobs=...) at 
../libtorrent_aio/src/disk_io_thread.cpp:1133
#11 0x0000000000f7b028 in libtorrent::disk_io_thread::thread_fun 
(this=0x2c76178, thread_id=0, type=libtorrent::disk_io_thread::generic_thread)
    at ../libtorrent_aio/src/disk_io_thread.cpp:3109
#12 0x0000000000f82d9f in boost::_mfi::mf2<void, libtorrent::disk_io_thread, 
int, libtorrent::disk_io_thread::thread_type_t>::operator() (this=0x2c7a188, 
p=0x2c76178,
    a1=0, a2=libtorrent::disk_io_thread::generic_thread) at /usr/include/boost/bind/mem_fn_template.hpp:280
#13 0x0000000000f82cf2 in 
boost::_bi::list3<boost::_bi::value<libtorrent::disk_io_thread*>, 
boost::_bi::value<int>, 
boost::_bi::value<libtorrent::disk_io_thread::thread_type_t> 
>::operator()<boost::_mfi::mf2<void, libtorrent::disk_io_thread, int, 
libtorrent::disk_io_thread::thread_type_t>, boost::_bi::list0> (this=0x2c7a198, 
f=...,
    a=...) at /usr/include/boost/bind/bind.hpp:392
#14 0x0000000000f82c59 in boost::_bi::bind_t<void, boost::_mfi::mf2<void, 
libtorrent::disk_io_thread, int, libtorrent::disk_io_thread::thread_type_t>, 
boost::_bi::list3<boost::_bi::value<libtorrent::disk_io_thread*>, 
boost::_bi::value<int>, 
boost::_bi::value<libtorrent::disk_io_thread::thread_type_t> > >::operator() 
(this=0x2c7a188)
    at /usr/include/boost/bind/bind_template.hpp:20
#15 0x0000000000f82c1e in 
boost::asio::detail::posix_thread::func<boost::_bi::bind_t<void, 
boost::_mfi::mf2<void, libtorrent::disk_io_thread, int, 
libtorrent::disk_io_thread::thread_type_t>, 
boost::_bi::list3<boost::_bi::value<libtorrent::disk_io_thread*>, 
boost::_bi::value<int>, 
boost::_bi::value<libtorrent::disk_io_thread::thread_type_t> > > >::run 
(this=0x2c7a180) at /usr/include/boost/asio/detail/posix_thread.hpp:82
#16 0x0000000000d2eb89 in 
boost::asio::detail::boost_asio_detail_posix_thread_function (arg=0x2c7a180) at 
/usr/include/boost/asio/detail/impl/posix_thread.ipp:64
#17 0x00007f7fdc012b50 in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#18 0x00007f7fdaf42a7d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#19 0x0000000000000000 in ?? ()

Original issue reported on code.google.com by v.korkod...@gmail.com on 31 Jan 2014 at 10:53