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

[Bug] Random crash on startup #11185

ReimuNotMoe opened this issue Sep 3, 2019 · 1 comment


Copy link

commented Sep 3, 2019

Please provide the following information

qBittorrent version and Operating System

  • qBittorrent version: 4.1.7
  • Operating System: Ubuntu 18.04, Linux kernel 5.2.3

If on linux, libtorrent-rasterbar and Qt version

  • libtorrent-rasterbar: 1.1.13+git20190804.84f10d05ca+patched-configure-1ppa1~18.04
  • Qt: 5.9.5+dfsg-0ubuntu2.3

What is the problem

Random crash on startup, ~50% chance.

What is the expected behavior

No crash on startup.

Steps to reproduce

Have 300+ torrents (~1GB average size) in transfer list, close & open the software, and see if it crashes.

Extra info(if any)

I've installed qbittorrent from your PPA.

Please file a bug report at and provide the following information:

qBittorrent version: v4.1.7

Caught signal: SIGSEGV
Stack trace:
  /usr/lib/x86_64-linux-gnu/ : ()+0x940d4  [0x7efc9093c0d4]
  /usr/lib/x86_64-linux-gnu/ : ()+0x92ca2  [0x7efc9093aca2]
  /usr/lib/x86_64-linux-gnu/ : QObject::event(QEvent*)+0xe2  [0x7efc901d2122]
  /usr/lib/x86_64-linux-gnu/ : QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x9c  [0x7efc9178c82c]
  /usr/lib/x86_64-linux-gnu/ : QApplication::notify(QObject*, QEvent*)+0x2a4  [0x7efc917940f4]
  qbittorrent : Application::notify(QObject*, QEvent*)+0x22  [0x55c75b85ec42]
  /usr/lib/x86_64-linux-gnu/ : QCoreApplication::notifyInternal2(QObject*, QEvent*)+0x118  [0x7efc901a29a8]
  /usr/lib/x86_64-linux-gnu/ : QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)+0x1ed  [0x7efc901a511d]
  /usr/lib/x86_64-linux-gnu/ : ()+0x2e42c3  [0x7efc901fc2c3]
  /usr/lib/x86_64-linux-gnu/ : g_main_context_dispatch()+0x2e7  [0x7efc8cf54417]
  /usr/lib/x86_64-linux-gnu/ : ()+0x4c650  [0x7efc8cf54650]
  /usr/lib/x86_64-linux-gnu/ : g_main_context_iteration()+0x2c  [0x7efc8cf546dc]
  /usr/lib/x86_64-linux-gnu/ : QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x5f  [0x7efc901fb8ef]
  /usr/lib/x86_64-linux-gnu/ : QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0x13a  [0x7efc901a09ea]
  /usr/lib/x86_64-linux-gnu/ : QThread::exec()+0x6a  [0x7efc8ffbf22a]
  /usr/lib/x86_64-linux-gnu/ : ()+0xac16d  [0x7efc8ffc416d]
  /lib/x86_64-linux-gnu/ : ()+0x76db  [0x7efc8fcff6db]
  /lib/x86_64-linux-gnu/ : clone()+0x3f  [0x7efc8f0d988f]
[1]    12463 segmentation fault (core dumped)  qbittorrent

This comment has been minimized.

Copy link

commented Sep 3, 2019

What's more: The system has some "unusual" network interfaces, such as bonding and bridge, and their MTUs are not standard (not 1500). Maybe they caused Qt5Network (or its misuses) to break.

I tried to run qbittorrent in gdb, and it seems that the program is trying to dereference a null pointer.

GNU gdb (Ubuntu 8.1-0ubuntu3)
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qbittorrent...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/qbittorrent 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/".
[New Thread 0x7fffeab36700 (LWP 860)]
[New Thread 0x7fffe96e4700 (LWP 875)]
[New Thread 0x7fffe8ca2700 (LWP 877)]
[New Thread 0x7fffdbfff700 (LWP 878)]
[New Thread 0x7fffdb7fe700 (LWP 879)]
[New Thread 0x7fffdaffd700 (LWP 880)]
[New Thread 0x7fffda7fc700 (LWP 881)]
[New Thread 0x7fffd9ffb700 (LWP 882)]
[New Thread 0x7fffd95e8700 (LWP 883)]
[New Thread 0x7fffd8de7700 (LWP 884)]
[New Thread 0x7fffcbde4700 (LWP 885)]
[New Thread 0x7fffcb5e3700 (LWP 886)]
[New Thread 0x7fffcade2700 (LWP 887)]
[New Thread 0x7fffca5e1700 (LWP 888)]
[New Thread 0x7fffc9de0700 (LWP 889)]
[New Thread 0x7fffad184700 (LWP 1000)]
[New Thread 0x7fffa4983700 (LWP 1001)]
[New Thread 0x7fffac983700 (LWP 1002)]
[New Thread 0x7fffa7fff700 (LWP 1003)]
[New Thread 0x7fffa77fe700 (LWP 1004)]
[New Thread 0x7fffa6ffd700 (LWP 1005)]
[New Thread 0x7fffa67fc700 (LWP 1006)]
[New Thread 0x7fffa5ffb700 (LWP 1007)]
[New Thread 0x7fffa57fa700 (LWP 1008)]
[New Thread 0x7fff87fff700 (LWP 1009)]
[New Thread 0x7fff877fe700 (LWP 1010)]
[New Thread 0x7fff86ffd700 (LWP 1011)]
[New Thread 0x7fff867fc700 (LWP 1012)]
[New Thread 0x7fff85ffb700 (LWP 1013)]
[New Thread 0x7fff857fa700 (LWP 1017)]
[New Thread 0x7fff84ff9700 (LWP 1019)]

Thread 14 "QNetworkAccessM" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffcade2700 (LWP 887)]
0x00007ffff5f950d4 in ?? () from /usr/lib/x86_64-linux-gnu/
(gdb) bt
#0  0x00007ffff5f950d4 in ?? () from /usr/lib/x86_64-linux-gnu/
#1  0x00007ffff5f93ca2 in ?? () from /usr/lib/x86_64-linux-gnu/
#2  0x00007ffff5834122 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/
#3  0x00007ffff6dd482c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/
#4  0x00007ffff6ddc0f4 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/
#5  0x0000555555661c42 in Application::notify(QObject*, QEvent*) ()
#6  0x00007ffff58049a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/
#7  0x00007ffff580711d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/
#8  0x00007ffff585e2c3 in ?? () from /usr/lib/x86_64-linux-gnu/
#9  0x00007ffff25f2417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/
#10 0x00007ffff25f2650 in ?? () from /usr/lib/x86_64-linux-gnu/
#11 0x00007ffff25f26dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/
#12 0x00007ffff585d8ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/
#13 0x00007ffff58029ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/
#14 0x00007ffff562122a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/
#15 0x00007ffff562616d in ?? () from /usr/lib/x86_64-linux-gnu/
#16 0x00007ffff53626db in start_thread (arg=0x7fffcade2700) at pthread_create.c:463
#17 0x00007ffff474c88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb) x/i 0x00007ffff5f950d4
=> 0x7ffff5f950d4:      mov    (%rdi),%rax
(gdb) info reg
rax            0x1      1
rbx            0x7fffc00053b0   140736414634928
rcx            0x6      6
rdx            0x0      0
rsi            0x0      0
rdi            0x0      0
rbp            0xe8     0xe8
rsp            0x7fffcade17a8   0x7fffcade17a8
r8             0x7fffc00053b0   140736414634928
r9             0x55555606bd50   93825003863376
r10            0x7fffc00008d0   140736414615760
r11            0x0      0
r12            0x1      1
r13            0x55555606ba30   93825003862576
r14            0x7fffcade1800   140736596940800
r15            0x55555606bce4   93825003863268
rip            0x7ffff5f950d4   0x7ffff5f950d4
eflags         0x10212  [ AF IF RF ]
cs             0x33     51
ss             0x2b     43
ds             0x0      0
es             0x0      0
fs             0x0      0
gs             0x0      0

@thalieht thalieht added the Crash label Sep 6, 2019

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