qbittorrent.2.1.3+libtorrent0.14.8 (x86_64) crashes at launch

Bug #517062 reported by Igor Vlasenko
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
qBittorrent
Invalid
Undecided
Unassigned

Bug Description

boost version = 1.39.0
$ uname -a
Linux breeze.localdomain 2.6.30-std-def-alt15 #1 SMP Mon Dec 14 08:46:35 UTC 2009 x86_64 GNU/Linux
------- console output and stack trace ------
Peer ID: -qB2130-
HTTP user agent is qBittorrent v2.1.3
Warning: Local domain socket was not closed cleanly, deleting file...

*************************************************************
Catching SIGSEGV, please report a bug at http://bug.qbittorrent.org
and provide the following backtrace:
stack trace:
  /lib64/libc.so.6 [0x7f8ae5e08070]
  /lib64/libc.so.6 [0x7f8ae5e4639d]
  /lib64/libc.so.6 [0x7f8ae5e48449]
  /lib64/libc.so.6 : __libc_malloc()+0x61 [0x7f8ae5e4a561]
  /usr/lib64/libstdc++.so.6 : operator new(unsigned long)+0x1d [0x7f8ae6673d2d]
  /usr/lib64/libstdc++.so.6 : operator new[](unsigned long)+0x9 [0x7f8ae6673e49]
  /usr/lib64/libstdc++.so.6 : std::basic_filebuf<char, std::char_traits<char> >::_M_allocate_internal_buffer()+0x2c [0x7f8ae662684c]
  /usr/lib64/libstdc++.so.6 : std::basic_filebuf<char, std::char_traits<char> >::open(char const*, std::_Ios_Openmode)+0x97 [0x7f8ae66280a7]
  /usr/lib64/libstdc++.so.6 : std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(char const*, std::_Ios_Openmode)+0x8c [0x7f8ae662927c]
  /usr/bin/qbittorrent : boost::filesystem::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(boost::filesystem::basic_path<std::string, boost::filesystem::path_traits> const&, std::_Ios_Openmode)+0x65 [0x4f5c55]
  /usr/bin/qbittorrent : Bittorrent::readAlerts()+0xfe7 [0x4d4597]
  /usr/bin/qbittorrent : Bittorrent::qt_metacall(QMetaObject::Call, int, void**)+0x2153 [0x600131]
  /usr/lib64/libQtCore.so.4 : QMetaObject::activate(QObject*, int, int, void**)+0x284 [0x7f8ae69f9bc4]
  /usr/lib64/libQtCore.so.4 : QObject::event(QEvent*)+0xae [0x7f8ae69f647e]
  /usr/lib64/libQtGui.so.4 : QApplicationPrivate::notify_helper(QObject*, QEvent*)+0xac [0x7f8ae713e85c]
  /usr/lib64/libQtGui.so.4 : QApplication::notify(QObject*, QEvent*)+0x98 [0x7f8ae7144128]
  /usr/lib64/libQtCore.so.4 : QCoreApplication::notifyInternal(QObject*, QEvent*)+0x8c [0x7f8ae69e83dc]
  /usr/lib64/libQtCore.so.4 [0x7f8ae6a0f3c2]
  /usr/lib64/libQtCore.so.4 [0x7f8ae6a0cde8]
  /lib64/libglib-2.0.so.0 : g_main_context_dispatch()+0x22e [0x7f8ae40045fe]
  /lib64/libglib-2.0.so.0 [0x7f8ae4007fe8]
  /lib64/libglib-2.0.so.0 : g_main_context_iteration()+0x7a [0x7f8ae400810a]
  /usr/lib64/libQtCore.so.4 : QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x73 [0x7f8ae6a0cb13]
  /usr/lib64/libQtGui.so.4 [0x7f8ae71c40ae]
  /usr/lib64/libQtCore.so.4 : QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x32 [0x7f8ae69e6df2]
  /usr/lib64/libQtCore.so.4 : QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0xe5 [0x7f8ae69e6f95]
  /usr/lib64/libQtCore.so.4 : QCoreApplication::exec()+0xb9 [0x7f8ae69e8d99]
  /usr/bin/qbittorrent : main()+0x1440 [0x4bfb62]
  /lib64/libc.so.6 : __libc_start_main()+0xfd [0x7f8ae5df59dd]
  /usr/bin/qbittorrent [0x4bded9]

Revision history for this message
Igor Vlasenko (viy-altlinux) wrote :
Revision history for this message
Igor Vlasenko (viy-altlinux) wrote :
Download full text (10.4 KiB)

another stacktrace
Peer ID: -qB2130-
HTTP user agent is qBittorrent v2.1.3
ERROR Detected!!! Adding back torrent 68f2da06dd202e2c4ea191ab7b1a5fef927d3f3a which got lost for some reason.
ERROR Detected!!! Adding back torrent 54a10167e84c79bb458903494e0262c41a82bf14 which got lost for some reason.
ERROR Detected!!! Adding back torrent a4c106cef093788e3536d260bd05e1b5d17ac835 which got lost for some reason.
ERROR Detected!!! Adding back torrent 9fc8eca5f31a6701ddfe8e2528e67cd6adb93fa6 which got lost for some reason.
ERROR Detected!!! Adding back torrent 6801a211d4f349bb67477f3e4ed345f7d913eaf3 which got lost for some reason.
ERROR Detected!!! Adding back torrent 741adaa8c7298a200afa8e61d557241447371e46 which got lost for some reason.
ERROR Detected!!! Adding back torrent 9558e22c9afe4332fe980edf8759498da84b78d1 which got lost for some reason.
ERROR Detected!!! Adding back torrent 590c152c4c5ea69174186a05b763421696ad9f35 which got lost for some reason.
Warning: Local domain socket was not closed cleanly, deleting file...

*************************************************************
Catching SIGSEGV, please report a bug at http://bug.qbittorrent.org
and provide the following backtrace:
stack trace:
  /lib64/libc.so.6 [0x7fca6173d070]
  /usr/lib64/libtorrent-rasterbar.so.5 : boost::asio::detail::timer_queue<boost::asio::time_traits<libtorrent::ptime> >::cancel_timer(void*)+0x78 [0x7fca63f7ae2e]
  /usr/lib64/libtorrent-rasterbar.so.5 : unsigned long boost::asio::detail::epoll_reactor<false>::cancel_timer<boost::asio::time_traits<libtorrent::ptime> >(boost::asio::detail::timer_queue<boost::asio::time_traits<libtorrent::ptime> >&, void*)+0x41 [0x7fca63f79c95]
  /usr/lib64/libtorrent-rasterbar.so.5 : boost::asio::detail::deadline_timer_service<boost::asio::time_traits<libtorrent::ptime>, boost::asio::detail::epoll_reactor<false> >::cancel(boost::asio::detail::deadline_timer_service<boost::asio::time_traits<libtorrent::ptime>, boost::asio::detail::epoll_reactor<false> >::implementation_type&, boost::system::error_code&)+0x6b [0x7fca63f78a11]
  /usr/lib64/libtorrent-rasterbar.so.5 : boost::asio::detail::deadline_timer_service<boost::asio::time_traits<libtorrent::ptime>, boost::asio::detail::epoll_reactor<false> >::expires_at(boost::asio::detail::deadline_timer_service<boost::asio::time_traits<libtorrent::ptime>, boost::asio::detail::epoll_reactor<false> >::implementation_type&, libtorrent::ptime const&, boost::system::error_code&)+0x2f [0x7fca63f79d1b]
  /usr/lib64/libtorrent-rasterbar.so.5 : boost::asio::detail::deadline_timer_service<boost::asio::time_traits<libtorrent::ptime>, boost::asio::detail::epoll_reactor<false> >::expires_from_now(boost::asio::detail::deadline_timer_service<boost::asio::time_traits<libtorrent::ptime>, boost::asio::detail::epoll_reactor<false> >::implementation_type&, libtorrent::time_duration const&, boost::system::error_code&)+0x4c [0x7fca63f78ce0]
  /usr/lib64/libtorrent-rasterbar.so.5 : boost::asio::deadline_timer_service<libtorrent::ptime, boost::asio::time_traits<libtorrent::ptime> >::expires_from_now(boost::asio::detail::deadline_timer_service<boost::asio::time_traits<libtorrent::ptime>, boost::asio::detail::epoll...

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Please report the second backtrace here:
http://code.google.com/p/libtorrent/issues/entry

The trace incriminates libtorrent, not qBittorrent. I'm looking into the first trace.

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Hmm. The first stack trace show that it crashes when I try to save fastresume data.

I assume that you have seeding torrents? Apparently, the torrents is checked on startup, it detects that the torrent is seeding and it saves its fastresume data.

This behavior is normal and I don't see what makes boost crash.

Could you please try to get a better backtrace using gdb?

1. Install gdb debugger
2.
gdb qbittorrent
> run
... wait for the crash ...
> bt 25
.. Will print out a more useful backtrace ..

Revision history for this message
Igor Vlasenko (viy-altlinux) wrote :

> Please report the second backtrace here:
http://code.google.com/p/libtorrent/issues/detail?id=28

> I assume that you have seeding torrents?
yes, approx. 300+

> Could you please try to get a better backtrace using gdb?
ok, a minute

Revision history for this message
Igor Vlasenko (viy-altlinux) wrote :
Download full text (8.7 KiB)

(gdb) bt 25
#0 0x00007f9ed8ffae4d in boost::asio::detail::timer_queue<boost::asio::time_traits<libtorrent::ptime> >::cancel_timer (this=0xcb4ec8, timer_token=0xc61e08)
    at /usr/include/boost/asio/detail/timer_queue.hpp:143
#1 0x00007f9ed8ff9c95 in boost::asio::detail::epoll_reactor<false>::cancel_timer<boost::asio::time_traits<libtorrent::ptime> > (this=0xcd4f40,
    timer_queue=@0xcb4ec8, token=0xc61e08)
    at /usr/include/boost/asio/detail/epoll_reactor.hpp:424
#2 0x00007f9ed8ff8a11 in boost::asio::detail::deadline_timer_service<boost::asio::time_traits<libtorrent::ptime>, boost::asio::detail::epoll_reactor<false> >::cancel (this=0xcb4ea0, impl=@0xc61e08, ec=@0x7f9ecf46ba10)
    at /usr/include/boost/asio/detail/deadline_timer_service.hpp:104
#3 0x00007f9ed8ff9d1b in boost::asio::detail::deadline_timer_service<boost::asio::time_traits<libtorrent::ptime>, boost::asio::detail::epoll_reactor<false> >::expires_at (this=0xcb4ea0, impl=@0xc61e08, expiry_time=@0x7f9ecf46b8f0,
    ec=@0x7f9ecf46ba10)
    at /usr/include/boost/asio/detail/deadline_timer_service.hpp:120
#4 0x00007f9ed8ff8ce0 in boost::asio::detail::deadline_timer_service<boost::asio::time_traits<libtorrent::ptime>, boost::asio::detail::epoll_reactor<false> >::expires_from_now (this=0xcb4ea0, impl=@0xc61e08, expiry_time=@0x7f9ecf46ba30,
    ec=@0x7f9ecf46ba10)
    at /usr/include/boost/asio/detail/deadline_timer_service.hpp:137
#5 0x00007f9ed8ff7ae0 in boost::asio::deadline_timer_service<libtorrent::ptime, boost::asio::time_traits<libtorrent::ptime> >::expires_from_now (
    this=0xca7950, impl=@0xc61e08, expiry_time=@0x7f9ecf46ba30,
    ec=@0x7f9ecf46ba10)
    at /usr/include/boost/asio/deadline_timer_service.hpp:144
#6 0x00007f9ed8ff681f in boost::asio::basic_deadline_timer<libtorrent::ptime, boost::asio::time_traits<libtorrent::ptime>, boost::asio::deadline_timer_service<libtorrent::ptime, boost::asio::time_traits<libtorrent::ptime> > >::expires_from_now (this=0xc61e00, expiry_time=@0x7f9ecf46ba30, ec=@0x7f9ecf46ba10)
    at /usr/include/boost/asio/basic_deadline_timer.hpp:318
#7 0x00007f9ed8ff42da in libtorrent::natpmp::send_map_request (this=0xc61c90,
    i=0) at natpmp.cpp:309
#8 0x00007f9ed8ff44ec in libtorrent::natpmp::resend_request (this=0xc61c90,
    i=0, e=@0x7f9ecf46bd40) at natpmp.cpp:331
#9 0x00007f9ed9004853 in boost::_mfi::mf2<void, libtorrent::natpmp, int, boost::system::error_code const&>::call<boost::intrusive_ptr<libtorrent::natpmp>, int, boost::system::error_code const> (this=0x7f9ecf46bd20, u=@0x7f9ecf46bd30,
    b1=@0x7f9ecf46bb4c, b2=@0x7f9ecf46bd40)
    at /usr/include/boost/bind/mem_fn_template.hpp:265
#10 0x00007f9ed9004776 in boost::_mfi::mf2<void, libtorrent::natpmp, int, boost::system::error_code const&>::operator()<boost::intrusive_ptr<libtorrent::natpmp> > (this=0x7f9ecf46bd20, u=@0x7f9ecf46bd30, a1=0, a2=@0x7f9ecf46bd40)
    at /usr/include/boost/bind/mem_fn_template.hpp:279
#11 0x00007f9ed9004633 in boost::_bi::list3<boost::_bi::value<boost::intrusive_ptr<libtorrent::natpmp> >, boost::_bi::value<int>, boost::arg<1> >::operator()<boost::_mfi::mf2<void, libtorrent::natpmp, int, boost::system::error_code const&>, boost::_bi::list1<b...

Read more...

Revision history for this message
Igor Vlasenko (viy-altlinux) wrote :

another crash in boost timer_queue again
(gdb) bt 25
#0 0x0000000000000000 in ?? ()
#1 0x00007fe468d06cef in boost::asio::detail::timer_queue<boost::asio::time_traits<libtorrent::ptime> >::timer_base::complete (this=0x1126370) at /usr/include/boost/asio/detail/timer_queue.hpp:205
#2 0x00007fe468d06ba4 in boost::asio::detail::timer_queue<boost::asio::time_traits<libtorrent::ptime> >::complete_timers (
    this=0xc28148) at /usr/include/boost/asio/detail/timer_queue.hpp:174
#3 0x00007fe468cb0068 in boost::asio::detail::epoll_reactor<false>::complete_operations_and_timers (this=0xc6dab0,
    lock=@0x7fe45f16ddd0) at /usr/include/boost/asio/detail/epoll_reactor.hpp:678
#4 0x00007fe468cab9e5 in boost::asio::detail::epoll_reactor<false>::run (this=0xc6dab0, block=false)
    at /usr/include/boost/asio/detail/epoll_reactor.hpp:566
#5 0x00007fe468ca5605 in boost::asio::detail::task_io_service<boost::asio::detail::epoll_reactor<false> >::do_one (
    this=0xc90da0, lock=@0x7fe45f16df10, this_idle_thread=0x7fe45f16df40, ec=@0x7fe45f16dff0)
    at /usr/include/boost/asio/detail/task_io_service.hpp:260
#6 0x00007fe468c9f8c9 in boost::asio::detail::task_io_service<boost::asio::detail::epoll_reactor<false> >::run (
    this=0xc90da0, ec=@0x7fe45f16dff0) at /usr/include/boost/asio/detail/task_io_service.hpp:103
#7 0x00007fe468d37739 in boost::asio::io_service::run (this=0xd12ef8, ec=@0x7fe45f16dff0)
    at /usr/include/boost/asio/impl/io_service.ipp:65
#8 0x00007fe468d31033 in libtorrent::aux::session_impl::operator() (this=0xd12d40) at session_impl.cpp:1654
#9 0x00007fe468d62dbf in boost::detail::thread_data<boost::reference_wrapper<libtorrent::aux::session_impl> >::run (
    this=0xbf2520) at /usr/include/boost/thread/detail/thread.hpp:81
#10 0x00007fe465e6baf0 in thread_proxy () from /usr/lib64/libboost_thread.so.1.39.0
#11 0x00007fe46836a51a in start_thread () from /lib64/libpthread.so.0
#12 0x00007fe4665558ed in clone () from /lib64/libc.so.6
#13 0x0000000000000000 in ?? ()

Revision history for this message
Igor Vlasenko (viy-altlinux) wrote :

I run it several times, most of the time it crashes in boost::asio::detail::timer_queue... as in comment #7

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Ok. The backtrace will be helpful to libtorrent author.

Please file a bug report there:
http://code.google.com/p/libtorrent/issues/entry

and provide your gdb backtrace there.

Changed in qbittorrent:
status: New → Invalid
Revision history for this message
Ken Brown (brownk2365) wrote :

Peer ID: -qB2220-
HTTP user agent is qBittorrent v2.2.2
Warning: Local domain socket was not closed cleanly, deleting file...

*************************************************************
Catching SIGSEGV, please report a bug at http://bug.qbittorrent.org
and provide the following backtrace:
stack trace:
  /lib64/libc.so.6() [0x3927832740]
  /usr/lib64/libtorrent-rasterbar.so.5 : libtorrent::http_tracker_connection::on_response(boost::system::error_code const&, libtorrent::http_parser const&, char const*, int)+0x90 [0x327fa2cf70]
  /usr/lib64/libtorrent-rasterbar.so.5 : boost::function5<void, boost::system::error_code const&, libtorrent::http_parser const&, char const*, int, libtorrent::http_connection&>::operator()(boost::system::error_code const&, libtorrent::http_parser const&, char const*, int, libtorrent::http_connection&) const+0x52 [0x327fa0a622]
  /usr/lib64/libtorrent-rasterbar.so.5 : libtorrent::http_connection::callback(boost::system::error_code const&, char const*, int)+0x1bf [0x327fa00f2f]
  /usr/lib64/libtorrent-rasterbar.so.5 : libtorrent::http_connection::on_resolve(boost::system::error_code const&, boost::asio::ip::basic_resolver_iterator<boost::asio::ip::tcp>)+0x440 [0x327fa01420]
  /usr/lib64/libtorrent-rasterbar.so.5 : boost::asio::detail::handler_queue::handler_wrapper<boost::asio::detail::binder2<boost::_bi::bind_t<void, boost::_mfi::mf2<void, libtorrent::http_connection, boost::system::error_code const&, boost::asio::ip::basic_resolver_iterator<boost::asio::ip::tcp> >, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<libtorrent::http_connection> >, boost::arg<1>, boost::arg<2> > >, boost::system::error_code, boost::asio::ip::basic_resolver_iterator<boost::asio::ip::tcp> > >::do_call(boost::asio::detail::handler_queue::handler*)+0x239 [0x327fa1cab9]
  /usr/lib64/libtorrent-rasterbar.so.5 : boost::asio::detail::task_io_service<boost::asio::detail::epoll_reactor<false> >::run(boost::system::error_code&)+0x339 [0x327f957ab9]
  /usr/lib64/libtorrent-rasterbar.so.5 : libtorrent::aux::session_impl::operator()()+0x81 [0x327f996241]
  /usr/lib64/libboost_thread-mt.so.5 : thread_proxy()+0x60 [0x34af60b670]
  /lib64/libpthread.so.0() [0x3928006a3a]
  /lib64/libc.so.6 : clone()+0x6d [0x39278de67d]
Segmentation fault (core dumped)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.