Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when clicking Trackers or Peers on certain torrents #252

Closed
HomerSp opened this issue Nov 27, 2012 · 2 comments
Closed

Crash when clicking Trackers or Peers on certain torrents #252

HomerSp opened this issue Nov 27, 2012 · 2 comments
Labels

Comments

@HomerSp
Copy link

HomerSp commented Nov 27, 2012

When I click Trackers or the Peers tab on certain torrents qbittorrent crashes. This usually happens on torrents from Swedish sites.

Here is the terminal output when running qBittorrent normally:
Catching SIGSEGV, please report a bug at http://bug.qbittorrent.org
and provide the following backtrace:
qBittorrent version: v3.0.6
stack trace:
/usr/lib/x86_64-linux-gnu/libstdc++.so.6 : std::basic_string<char, std::char_traits, std::allocator >::basic_string(std::string const&)+0xb [0x7fce7c85283b]
qbittorrent : PeerListWidget::loadPeers(QTorrentHandle const&, bool)+0x3a5 [0x517d55]
qbittorrent : PropertiesWidget::loadDynamicData()+0x1301 [0x509b71]
qbittorrent() [0x5d76f5]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QMetaObject::activate(QObject_, QMetaObject const_, int, void**)+0x2bf [0x7fce7cc25f5f]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4 : QStackedWidget::currentChanged(int)+0x2e [0x7fce7dae336e]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QMetaObject::activate(QObject_, QMetaObject const_, int, void**)+0x2bf [0x7fce7cc25f5f]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4 : QStackedLayout::currentChanged(int)+0x31 [0x7fce7dadabf1]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QMetaObject::activate(QObject_, QMetaObject const_, int, void**)+0x2bf [0x7fce7cc25f5f]
qbittorrent : PropTabBar::tabChanged(int)+0x2c [0x5db27c]
qbittorrent : PropTabBar::setCurrentIndex(int)+0xc5 [0x523a45]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QMetaObject::activate(QObject_, QMetaObject const_, int, void**)+0x2bf [0x7fce7cc25f5f]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4 : QButtonGroup::buttonClicked(int)+0x31 [0x7fce7dade0c1]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4 : ()+0x589d57 [0x7fce7d831d57]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4 : ()+0x58a560 [0x7fce7d832560]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4 : QAbstractButton::mouseReleaseEvent(QMouseEvent_)+0x8c [0x7fce7d8327cc]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4 : QWidget::event(QEvent_)+0x7e0 [0x7fce7d4c3850]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4 : QApplicationPrivate::notify_helper(QObject_, QEvent_)+0xac [0x7fce7d473e9c]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4 : QApplication::notify(QObject_, QEvent_)+0x99b [0x7fce7d478b6b]
qbittorrent : SessionApplication::notify(QObject_, QEvent_)+0x1b [0x5bbdfb]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QCoreApplication::notifyInternal(QObject_, QEvent_)+0x8e [0x7fce7cc1056e]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4 : QApplicationPrivate::sendMouseEvent(QWidget_, QMouseEvent_, QWidget_, QWidget_, QWidget*_, QPointer&, bool)+0x143 [0x7fce7d474cd3]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4 : ()+0x24a554 [0x7fce7d4f2554]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4 : QApplication::x11ProcessEvent(XEvent)+0xd6f [0x7fce7d4f144f]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4 : ()+0x270fa2 [0x7fce7d518fa2]
/lib/x86_64-linux-gnu/libglib-2.0.so.0 : g_main_context_dispatch()+0x135 [0x7fce7a919ab5]
/lib/x86_64-linux-gnu/libglib-2.0.so.0 : ()+0x47de8 [0x7fce7a919de8]
/lib/x86_64-linux-gnu/libglib-2.0.so.0 : g_main_context_iteration()+0x34 [0x7fce7a919ea4]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag)+0x66 [0x7fce7cc3ebf6]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4 : ()+0x270c1e [0x7fce7d518c1e]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QEventLoop::processEvents(QFlagsQEventLoop::ProcessEventsFlag)+0x2f [0x7fce7cc0f2bf]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag)+0x138 [0x7fce7cc0f548]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QCoreApplication::exec()+0x88 [0x7fce7cc14708]
qbittorrent : main()+0xd57 [0x475ae7]
/lib/x86_64-linux-gnu/libc.so.6 : __libc_start_main()+0xed [0x7fce7bee476d]
qbittorrent() [0x478601]
Segmentation fault

And here is the backtrace when running with gdb:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff587d83b in std::basic_string<char, std::char_traits, std::allocator >::basic_string(std::string const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0 0x00007ffff587d83b in std::basic_string<char, std::char_traits, std::allocator >::basic_string(std::string const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x0000000000517d55 in peer_info (this=0x7fffffffb6b0) at /usr/include/libtorrent/peer_info.hpp:45
#2 PeerListWidget::loadPeers (this=0xf89760, h=..., force_hostname_resolution=false) at ../../src/properties/peerlistwidget.cpp:318
#3 0x0000000000509b71 in PropertiesWidget::loadDynamicData (this=0xe9f9e0) at ../../src/properties/propertieswidget.cpp:383
#4 0x00000000005d76f5 in qt_static_metacall (a=, id=, o=, c=) at moc_propertieswidget.cpp:91
#5 PropertiesWidget::qt_static_metacall (o=, c=, id=, a=) at moc_propertieswidget.cpp:74
#6 0x00007ffff5c50f5f in QMetaObject::activate(QObject
, QMetaObject const
, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7 0x00007ffff6b0e36e in QStackedWidget::currentChanged(int) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#8 0x00007ffff5c50f5f in QMetaObject::activate(QObject
, QMetaObject const, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9 0x00007ffff6b05bf1 in QStackedLayout::currentChanged(int) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#10 0x00007ffff5c50f5f in QMetaObject::activate(QObject, QMetaObject const, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00000000005db27c in PropTabBar::tabChanged (this=, t1=2) at moc_proptabbar.cpp:106
#12 0x0000000000523a45 in PropTabBar::setCurrentIndex (this=0x10d2910, index=) at ../../src/properties/proptabbar.cpp:108
#13 0x00007ffff5c50f5f in QMetaObject::activate(QObject
, QMetaObject const, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#14 0x00007ffff6b090c1 in QButtonGroup::buttonClicked(int) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#15 0x00007ffff685cd57 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#16 0x00007ffff685d560 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#17 0x00007ffff685d7cc in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#18 0x00007ffff64ee850 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#19 0x00007ffff649ee9c in QApplicationPrivate::notify_helper(QObject, QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#20 0x00007ffff64a3b6b in QApplication::notify(QObject_, QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#21 0x00000000005bbdfb in SessionApplication::notify (this=, receiver=0x10dfe90, event=) at ../../src/sessionapplication.cpp:49
#22 0x00007ffff5c3b56e in QCoreApplication::notifyInternal(QObject_, QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#23 0x00007ffff649fcd3 in QApplicationPrivate::sendMouseEvent(QWidget_, QMouseEvent_, QWidget_, QWidget_, QWidget**, QPointer&, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#24 0x00007ffff651d554 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#25 0x00007ffff651c44f in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#26 0x00007ffff6543fa2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#27 0x00007ffff3944ab5 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007ffff3944de8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007ffff3944ea4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007ffff5c69bf6 in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#31 0x00007ffff6543c1e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#32 0x00007ffff5c3a2bf in QEventLoop::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#33 0x00007ffff5c3a548 in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#34 0x00007ffff5c3f708 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#35 0x0000000000475ae7 in main (argc=1, argv=) at ../../src/main.cpp:321

@sledgehammer999
Copy link
Member

Same as issue #222?

Question: Does the same torrent crash the app, or sometimes it works fine? If it always crashes the app could you post a link to such a torrent?

@HomerSp
Copy link
Author

HomerSp commented Nov 27, 2012

Yes, #222 is the same issue. So I will close this (I have provided a solution in the comments on that page).

@HomerSp HomerSp closed this as completed Nov 27, 2012
@qbittorrent qbittorrent locked and limited conversation to collaborators Feb 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants