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

qBittorrent crash when adding magnets #10374

Open
lulitao1997 opened this Issue Mar 12, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@lulitao1997
Copy link

lulitao1997 commented Mar 12, 2019

qBittorrent version and Operating System

qBittorrent 4.1.5
Linux 4.19.26-1-MANJARO

If on linux, libtorrent and Qt version

libtorrent-rasterbar 1.1.12
qt 5.12.1

What is the problem

qbittorrent crash when adding torrent from magnet link that contains tracker.

What is the expected behavior

qbittorrent doesn't crash

Steps to reproduce

add torrent by magnet link.

example magnet link:

magnet:?xt=urn:btih:7QREXORZKJ5DLZWTCAB3HLDRTZV7MTAR&dn=&tr=http%3A%2F%2F104.238.198.186%3A8000%2Fannounce&tr=udp%3A%2F%2F104.238.198.186%3A8000%2Fannounce&tr=http%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker3.itzmx.com%3A6961%2Fannounce&tr=http%3A%2F%2Ftracker4.itzmx.com%3A2710%2Fannounce&tr=http%3A%2F%2Ftracker.publicbt.com%3A80%2Fannounce&tr=http%3A%2F%2Ftracker.prq.to%2Fannounce&tr=http%3A%2F%2Fopen.acgtracker.com%3A1096%2Fannounce&tr=https%3A%2F%2Ft-115.rhcloud.com%2Fonly_for_ylbud&tr=http%3A%2F%2Fbtfile.sdo.com%3A6961%2Fannounce&tr=http%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce&tr=http%3A%2F%2Fshare.camoe.cn%3A8080%2Fannounce&tr=http%3A%2F%2Ft.nyaatracker.com%2Fannounce&tr=http%3A%2F%2Fopentracker.acgnx.se%2Fannounce&tr=http%3A%2F%2Fopentracker.acgnx.com%3A6869%2Fannounce

Extra info(if any)

crash infomation:

qt.qpa.xcb: QXcbConnection: XCB error: 5 (BadAtom), sequence: 619, resource id: 0, major code: 19 (DeleteProperty), minor code: 0
QNetworkReplyHttpImplPrivate::_q_startOperation was called more than once QUrl("http://anidex.moe/favicon.ico")


*************************************************************
Please file a bug report at http://bug.qbittorrent.org and provide the following information:

qBittorrent version: v4.1.5

Caught signal: SIGSEGV
Stack trace:
  /usr/lib/libQt5Network.so.5 : ()+0x9d964  [0x7f5a8d877964]
  /usr/lib/libQt5Network.so.5 : ()+0x9c25b  [0x7f5a8d87625b]
  /usr/lib/libQt5Core.so.5 : QObject::event(QEvent*)+0xe2  [0x7f5a8d50f152]
  /usr/lib/libQt5Widgets.so.5 : QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x84  [0x7f5a8e131e24]
  /usr/lib/libQt5Widgets.so.5 : QApplication::notify(QObject*, QEvent*)+0x211  [0x7f5a8e1396e1]
  qbittorrent : Application::notify(QObject*, QEvent*)+0x23  [0x55731e1e3b53]
  /usr/lib/libQt5Core.so.5 : QCoreApplication::notifyInternal2(QObject*, QEvent*)+0x179  [0x7f5a8d4e3e99]
  /usr/lib/libQt5Core.so.5 : QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)+0x1d8  [0x7f5a8d4e6f38]
  /usr/lib/libQt5Core.so.5 : ()+0x2d1714  [0x7f5a8d53a714]
  /usr/lib/libglib-2.0.so.0 : g_main_context_dispatch()+0x2bf  [0x7f5a8c1147bf]
  /usr/lib/libglib-2.0.so.0 : ()+0x6d739  [0x7f5a8c116739]
  /usr/lib/libglib-2.0.so.0 : g_main_context_iteration()+0x2e  [0x7f5a8c11677e]
  /usr/lib/libQt5Core.so.5 : QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x69  [0x7f5a8d539ce9]
  /usr/lib/libQt5Core.so.5 : QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0x13c  [0x7f5a8d4e2b2c]
  /usr/lib/libQt5Core.so.5 : QThread::exec()+0xb9  [0x7f5a8d326569]
  /usr/lib/libQt5Core.so.5 : ()+0xbe96c  [0x7f5a8d32796c]
  /usr/lib/libpthread.so.0 : ()+0x7a9d  [0x7f5a8d24fa9d]
  /usr/lib/libc.so.6 : clone()+0x43  [0x7f5a8ce4fb23]
[1]    32735 segmentation fault (core dumped)  qbittorrent

note that if the magnet link doesn't contain tracker, qbittorrent won't crash.

@lulitao1997

This comment has been minimized.

Copy link
Author

lulitao1997 commented Mar 12, 2019

detailed infomation for coredump:

~ $ coredumpctl info --no-pager
           PID: 32735 (qbittorrent)
           UID: 1000 (lulitao)
           GID: 1000 (lulitao)
        Signal: 11 (SEGV)
     Timestamp: Wed 2019-03-13 00:02:09 CST (14min ago)
  Command Line: qbittorrent
    Executable: /usr/bin/qbittorrent
 Control Group: /user.slice/user-1000.slice/session-9.scope
          Unit: session-9.scope
         Slice: user-1000.slice
       Session: 9
     Owner UID: 1000 (lulitao)
       Boot ID: 7e92c99a4bb340a698094cd4c619dfd9
    Machine ID: 20829f184f7c4b0287db01fb57e5acaf
      Hostname: xps13
       Storage: /var/lib/systemd/coredump/core.qbittorrent.1000.7e92c99a4bb340a698094cd4c619dfd9.32735.1552406529000000.lz4
       Message: Process 32735 (qbittorrent) of user 1000 dumped core.
                
                Stack trace of thread 32749:
                #0  0x00007f5a8d877964 n/a (libQt5Network.so.5)
                #1  0x00007f5a8d87625b n/a (libQt5Network.so.5)
                #2  0x00007f5a8d50f152 _ZN7QObject5eventEP6QEvent (libQt5Core.so.5)
                #3  0x00007f5a8e131e24 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5)
                #4  0x00007f5a8e1396e1 _ZN12QApplication6notifyEP7QObjectP6QEvent (libQt5Widgets.so.5)
                #5  0x000055731e1e3b53 _ZN11Application6notifyEP7QObjectP6QEvent (qbittorrent)
                #6  0x00007f5a8d4e3e99 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5)
                #7  0x00007f5a8d4e6f38 _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData (libQt5Core.so.5)
                #8  0x00007f5a8d53a714 n/a (libQt5Core.so.5)
                #9  0x00007f5a8c1147bf g_main_context_dispatch (libglib-2.0.so.0)
                #10 0x00007f5a8c116739 n/a (libglib-2.0.so.0)
                #11 0x00007f5a8c11677e g_main_context_iteration (libglib-2.0.so.0)
                #12 0x00007f5a8d539ce9 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                #13 0x00007f5a8d4e2b2c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                #14 0x00007f5a8d326569 _ZN7QThread4execEv (libQt5Core.so.5)
                #15 0x00007f5a8d32796c n/a (libQt5Core.so.5)
                #16 0x00007f5a8d24fa9d start_thread (libpthread.so.0)
                #17 0x00007f5a8ce4fb23 __clone (libc.so.6)
                
                Stack trace of thread 32737:
                #0  0x00007f5a8ce44c21 __poll (libc.so.6)
                #1  0x00007f5a8c116690 n/a (libglib-2.0.so.0)
                #2  0x00007f5a8c11677e g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007f5a8d539ce9 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                #4  0x00007f5a8d4e2b2c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                #5  0x00007f5a8d326569 _ZN7QThread4execEv (libQt5Core.so.5)
                #6  0x00007f5a8d9a2ba6 n/a (libQt5DBus.so.5)
                #7  0x00007f5a8d32796c n/a (libQt5Core.so.5)
                #8  0x00007f5a8d24fa9d start_thread (libpthread.so.0)
                #9  0x00007f5a8ce4fb23 __clone (libc.so.6)
                
                Stack trace of thread 32736:
                #0  0x00007f5a8ce44c21 __poll (libc.so.6)
                #1  0x00007f5a89d84630 n/a (libxcb.so.1)
                #2  0x00007f5a89d862db xcb_wait_for_event (libxcb.so.1)
                #3  0x00007f5a893cf949 n/a (libQt5XcbQpa.so.5)
                #4  0x00007f5a8d32796c n/a (libQt5Core.so.5)
                #5  0x00007f5a8d24fa9d start_thread (libpthread.so.0)
                #6  0x00007f5a8ce4fb23 __clone (libc.so.6)
                
                Stack trace of thread 32741:
                #0  0x00007f5a8d255afc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                #1  0x00007f5a8e7323d8 n/a (libtorrent-rasterbar.so.9)
                #2  0x00007f5a8e733c31 n/a (libtorrent-rasterbar.so.9)
                #3  0x00007f5a8e73322f n/a (libtorrent-rasterbar.so.9)
                #4  0x00007f5a8d24fa9d start_thread (libpthread.so.0)
                #5  0x00007f5a8ce4fb23 __clone (libc.so.6)
                
                Stack trace of thread 32742:
                #0  0x00007f5a8d255afc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                #1  0x00007f5a8e7323d8 n/a (libtorrent-rasterbar.so.9)
                #2  0x00007f5a8e733c31 n/a (libtorrent-rasterbar.so.9)
                #3  0x00007f5a8e73322f n/a (libtorrent-rasterbar.so.9)
                #4  0x00007f5a8d24fa9d start_thread (libpthread.so.0)
                #5  0x00007f5a8ce4fb23 __clone (libc.so.6)
                
                Stack trace of thread 32748:
                #0  0x00007f5a8d255afc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                #1  0x00007f5a65decc94 n/a (i965_dri.so)
                #2  0x00007f5a65dec9b8 n/a (i965_dri.so)
                #3  0x00007f5a8d24fa9d start_thread (libpthread.so.0)
                #4  0x00007f5a8ce4fb23 __clone (libc.so.6)
                
                Stack trace of thread 32747:
                #0  0x00007f5a8ce44c21 __poll (libc.so.6)
                #1  0x00007f5a8c116690 n/a (libglib-2.0.so.0)
                #2  0x00007f5a8c11677e g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007f5a8d539ce9 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                #4  0x00007f5a8d4e2b2c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                #5  0x00007f5a8d326569 _ZN7QThread4execEv (libQt5Core.so.5)
                #6  0x00007f5a8d32796c n/a (libQt5Core.so.5)
                #7  0x00007f5a8d24fa9d start_thread (libpthread.so.0)
                #8  0x00007f5a8ce4fb23 __clone (libc.so.6)
                
                Stack trace of thread 32735:
                #0  0x00007f5a8ce44c21 __poll (libc.so.6)
                #1  0x00007f5a8c116690 n/a (libglib-2.0.so.0)
                #2  0x00007f5a8c11677e g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007f5a8d539ce9 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                #4  0x00007f5a8d4e2b2c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                #5  0x00007f5a8d4eae36 _ZN16QCoreApplication4execEv (libQt5Core.so.5)
                #6  0x000055731e1e5f91 _ZN11Application4execERK11QStringList (qbittorrent)
                #7  0x000055731e1daf22 main (qbittorrent)
                #8  0x00007f5a8cd78223 __libc_start_main (libc.so.6)
                #9  0x000055731e1e010e _start (qbittorrent)
                
                Stack trace of thread 32739:
                #0  0x00007f5a8ce4fe57 epoll_wait (libc.so.6)
                #1  0x00007f5a8e752048 n/a (libtorrent-rasterbar.so.9)
                #2  0x00007f5a8e75376a n/a (libtorrent-rasterbar.so.9)
                #3  0x00007f5a8e82455c n/a (libtorrent-rasterbar.so.9)
                #4  0x00007f5a8e73322f n/a (libtorrent-rasterbar.so.9)
                #5  0x00007f5a8d24fa9d start_thread (libpthread.so.0)
                #6  0x00007f5a8ce4fb23 __clone (libc.so.6)
                
                Stack trace of thread 32740:
                #0  0x00007f5a8d255afc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                #1  0x00007f5a8e75387d n/a (libtorrent-rasterbar.so.9)
                #2  0x00007f5a8e7568bf _ZN5boost4asio6detail12posix_thread4funcINS1_21resolver_service_base22work_io_context_runnerEE3runEv (libtorrent-rasterbar.so.9)
                #3  0x00007f5a8e73322f n/a (libtorrent-rasterbar.so.9)
                #4  0x00007f5a8d24fa9d start_thread (libpthread.so.0)
                #5  0x00007f5a8ce4fb23 __clone (libc.so.6)
                
                Stack trace of thread 32746:
                #0  0x00007f5a8ce44c21 __poll (libc.so.6)
                #1  0x00007f5a8c116690 n/a (libglib-2.0.so.0)
                #2  0x00007f5a8c11677e g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007f5a8d539ce9 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                #4  0x00007f5a8d4e2b2c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                #5  0x00007f5a8d326569 _ZN7QThread4execEv (libQt5Core.so.5)
                #6  0x00007f5a8d32796c n/a (libQt5Core.so.5)
                #7  0x00007f5a8d24fa9d start_thread (libpthread.so.0)
                #8  0x00007f5a8ce4fb23 __clone (libc.so.6)
                
                Stack trace of thread 32738:
                #0  0x00007f5a8ce44c21 __poll (libc.so.6)
                #1  0x00007f5a8c116690 n/a (libglib-2.0.so.0)
                #2  0x00007f5a8c11677e g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007f5a8d539ce9 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                #4  0x00007f5a8d4e2b2c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                #5  0x00007f5a8d326569 _ZN7QThread4execEv (libQt5Core.so.5)
                #6  0x00007f5a8d32796c n/a (libQt5Core.so.5)
                #7  0x00007f5a8d24fa9d start_thread (libpthread.so.0)
                #8  0x00007f5a8ce4fb23 __clone (libc.so.6)
                
                Stack trace of thread 32743:
                #0  0x00007f5a8d255afc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                #1  0x00007f5a8e7323d8 n/a (libtorrent-rasterbar.so.9)
                #2  0x00007f5a8e733c31 n/a (libtorrent-rasterbar.so.9)
                #3  0x00007f5a8e73322f n/a (libtorrent-rasterbar.so.9)
                #4  0x00007f5a8d24fa9d start_thread (libpthread.so.0)
                #5  0x00007f5a8ce4fb23 __clone (libc.so.6)
                
                Stack trace of thread 32744:
                #0  0x00007f5a8d255afc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                #1  0x00007f5a8e732479 n/a (libtorrent-rasterbar.so.9)
                #2  0x00007f5a8e733c31 n/a (libtorrent-rasterbar.so.9)
                #3  0x00007f5a8e73322f n/a (libtorrent-rasterbar.so.9)
                #4  0x00007f5a8d24fa9d start_thread (libpthread.so.0)
                #5  0x00007f5a8ce4fb23 __clone (libc.so.6)
                
                Stack trace of thread 32745:
                #0  0x00007f5a8ce44c21 __poll (libc.so.6)
                #1  0x00007f5a8c116690 n/a (libglib-2.0.so.0)
                #2  0x00007f5a8c11677e g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007f5a8d539ce9 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                #4  0x00007f5a8d4e2b2c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                #5  0x00007f5a8d326569 _ZN7QThread4execEv (libQt5Core.so.5)
                #6  0x00007f5a8d32796c n/a (libQt5Core.so.5)
                #7  0x00007f5a8d24fa9d start_thread (libpthread.so.0)
                #8  0x00007f5a8ce4fb23 __clone (libc.so.6)
@thalieht

This comment has been minimized.

Copy link
Contributor

thalieht commented Mar 12, 2019

Duplicate of #9667

@thalieht thalieht marked this as a duplicate of #9667 Mar 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.