y500 / libtorrent

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

Crach using http proxy #692

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I use qbittorrent 3.1.10-1
2. I use http proxy
3. Program runs for a few minutes and then crashes. Bug repeates.

I see the following error in stderr:
terminate called after throwing an instance of 'std::bad_cast'
  what():  std::bad_cast

*************************************************************
Catching SIGABRT, please report a bug at http://bug.qbittorrent.org
and provide the following backtrace:
qBittorrent version: v3.1.10
stack trace:
  /usr/lib/libc.so.6 : gsignal()+0x37  [0x7fc7c5f05967]
  /usr/lib/libc.so.6 : abort()+0x16a  [0x7fc7c5f06d3a]
  /usr/lib/libstdc++.so.6 : __gnu_cxx::__verbose_terminate_handler()+0x185  [0x7fc7c67f1085]
  /usr/lib/libstdc++.so.6 : ()+0x5ef06  [0x7fc7c67eef06]
  /usr/lib/libstdc++.so.6 : ()+0x5ef51  [0x7fc7c67eef51]
  /usr/lib/libstdc++.so.6 : ()+0x5f168  [0x7fc7c67ef168]
  /usr/lib/libtorrent-rasterbar.so.7 : ()+0xba80e  [0x7fc7c896080e]
  /usr/lib/libtorrent-rasterbar.so.7 : boost::asio::ip::address::to_v4() const+0x4d  [0x7fc7c8979d9d]
  /usr/lib/libtorrent-rasterbar.so.7 : libtorrent::socks5_stream::socks_connect(boost::shared_ptr<boost::function<void (boost::system::error_code const&)> >)+0x894  [0x7fc7c8ac6224]
  /usr/lib/libtorrent-rasterbar.so.7 : libtorrent::socks5_stream::connected(boost::system::error_code const&, boost::shared_ptr<boost::function<void (boost::system::error_code const&)> >)+0x1a8  [0x7fc7c8ac72f8]
  /usr/lib/libtorrent-rasterbar.so.7 : ()+0x224de5  [0x7fc7c8acade5]
  /usr/lib/libtorrent-rasterbar.so.7 : 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&)+0x322  [0x7fc7c89796d2]
  /usr/lib/libtorrent-rasterbar.so.7 : boost::asio::detail::task_io_service::run(boost::system::error_code&)+0xc9  [0x7fc7c89798f9]
  /usr/lib/libtorrent-rasterbar.so.7 : libtorrent::aux::session_impl::main_thread()+0x4c  [0x7fc7c8a9f6ec]
  /usr/lib/libtorrent-rasterbar.so.7 : boost_asio_detail_posix_thread_function()+0x42  [0x7fc7c897d252]
  /usr/lib/libpthread.so.0 : ()+0x7314  [0x7fc7c848d314]
  /usr/lib/libc.so.6 : clone()+0x6d  [0x7fc7c5fba3ed]
fish: Job 1, “qbittorrent ” terminated by signal SIGABRT (Abort)

What version of the product are you using? On what operating system?
Arch linux x86_64 
libtorrent-rasterbar-1:0.16.17-2

Original issue reported on code.google.com by Dront...@gmail.com on 3 Nov 2014 at 4:16

GoogleCodeExporter commented 8 years ago
Thanks for the report. This bug was fixed in 0.16.18.
The crash happens when trying to connect to an IPv6 address over SOCKS4 (which 
doesn't support IPv6). Previously there was no error checking for this 
condition.

Original comment by arvid.no...@gmail.com on 4 Nov 2014 at 7:23