xlgjjff / libtorrent

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

assert in peer_connection::disconnect #728

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
assertion failed. Please file a bugreport at 
http://code.google.com/p/libtorrent/issues
Please include the following information:

version: 1.0.3.0
$Rev$

file: 'peer_connection.cpp'
line: 3553
function: virtual void libtorrent::peer_connection::disconnect(const 
boost::system::error_code&, int)
expression: ec != error::invalid_argument || !m_outgoing

stack:
1: assert_fail(char const*, int, char const*, char const*, char const*, int)
2: libtorrent::peer_connection::disconnect(boost::system::error_code const&, 
int)
3: libtorrent::peer_connection::connect_failed(boost::system::error_code const&)
4: 
libtorrent::peer_connection::on_connection_complete(boost::system::error_code 
const&)
5: ) [0xe74c06]
6: ) [0xc0a390]
7: 
boost::asio::detail::task_io_service::do_run_one(boost::asio::detail::scoped_loc
k<boost::asio::detail::posix_mutex>&, 
boost::asio::detail::task_io_service_thread_info&, boost::system::error_code 
const&)
8: boost::asio::detail::task_io_service::run(boost::system::error_code&)
9: boost::asio::io_service::run(boost::system::error_code&)
10: libtorrent::aux::session_impl::main_thread()
11: ) [0x95a0f2]
12: boost_asio_detail_posix_thread_function
13: 
14: 
15: clone

*************************************************************
Catching SIGABRT, please report a bug at http://bug.qbittorrent.org
and provide the following backtrace:
qBittorrent version: v3.2.0alpha
stack trace:
  /lib/x86_64-linux-gnu/libc.so.6 : ()+0x36c30  [0x7fc5c8bd9c30]
  /lib/x86_64-linux-gnu/libc.so.6 : gsignal()+0x39  [0x7fc5c8bd9bb9]
  /lib/x86_64-linux-gnu/libc.so.6 : abort()+0x148  [0x7fc5c8bdcfc8]
  ./qbittorrent() [0x833891]
  ./qbittorrent : libtorrent::peer_connection::disconnect(boost::system::error_code const&, int)+0x307  [0xe2f293]
  ./qbittorrent : libtorrent::peer_connection::connect_failed(boost::system::error_code const&)+0x555  [0xe243f7]
  ./qbittorrent : libtorrent::peer_connection::on_connection_complete(boost::system::error_code const&)+0x385  [0xe4e0ef]
  ./qbittorrent() [0xe74c06]
  ./qbittorrent() [0xc0a390]
  ./qbittorrent : boost::asio::detail::task_io_service::do_run_one(boost::asio::detail::scoped_lock<boost::asio::detail::posix_mutex>&, boost::asio::detail::task_io_service_thread_info&, boost::system::error_code const&)+0x87a  [0x80fc58]
  ./qbittorrent : boost::asio::detail::task_io_service::run(boost::system::error_code&)+0x3c0  [0x821e4c]
  ./qbittorrent : boost::asio::io_service::run(boost::system::error_code&)+0x29  [0x8222e3]
  ./qbittorrent : libtorrent::aux::session_impl::main_thread()+0x116  [0x942ad4]
  ./qbittorrent() [0x95a0f2]
  ./qbittorrent : boost_asio_detail_posix_thread_function()+0x40  [0x8007a4]
  /usr/lib/x86_64-linux-gnu/libasan.so.0 : ()+0x18b98  [0x7fc5cbdb4b98]
  /lib/x86_64-linux-gnu/libpthread.so.0 : ()+0x8182  [0x7fc5c9791182]
  /lib/x86_64-linux-gnu/libc.so.6 : clone()+0x6d  [0x7fc5c8c9defd]

Original issue reported on code.google.com by vanya...@gmail.com on 27 Mar 2015 at 10:17

GoogleCodeExporter commented 8 years ago
This indicates that libtorrent attempted to connect to a peer, and connect() 
failed with EINVAL. This  is unexpected under normal circumstances and might 
indicate a bug in libtorrent (it shouldn't be passing in invalid arguments). 
There is one known situation where this could happen though, if you have a 
small set of outgoing ports set, meaning libtorrent will bind the local port of 
outgoing sockets to specific ports, then you may end up having multiple 
(src-ip, src-port, dst-ip, dst-port)-quads, which is invalid.

Is that the case by any chance? Do you have any unusual settings?

Original comment by arvid.no...@gmail.com on 27 Mar 2015 at 10:54

GoogleCodeExporter commented 8 years ago
> if you have a small set of outgoing ports set
> Is that the case by any chance? Do you have any unusual settings?

session_settings::outgoing_ports are set to (0, 0).

Original comment by vanya...@gmail.com on 6 Apr 2015 at 8:13