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

Random crashes #9667

Closed
clasick opened this issue Oct 9, 2018 · 63 comments · Fixed by #10445
Closed

Random crashes #9667

clasick opened this issue Oct 9, 2018 · 63 comments · Fixed by #10445
Labels

Comments

@clasick
Copy link

clasick commented Oct 9, 2018

qBittorrent version and Operating System

qBittorrent version: v4.1.3
Arch Linux

If on linux, libtorrent and Qt version

Name : linux
Version : 4.18.12.arch1-1

Name : qt5-base
Version : 5.11.2-1

Name : libtorrent-rasterbar
Version : 1:1.1.10-1

What is the problem

Opens, crashes if GUI is open after about 5 seconds. Downloads fine during the mean time.

Caught signal: SIGSEGV
Stack trace:
  /usr/lib/libQt5Network.so.5 : ()+0x9aca4  [0x7fc874e0cca4]
  /usr/lib/libQt5Network.so.5 : ()+0x9959b  [0x7fc874e0b59b]
  /usr/lib/libQt5Core.so.5 : QObject::event(QEvent*)+0xe2  [0x7fc874acd352]
  /usr/lib/libQt5Widgets.so.5 : QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x84  [0x7fc875690e14]
  /usr/lib/libQt5Widgets.so.5 : QApplication::notify(QObject*, QEvent*)+0x211  [0x7fc8756986e1]
  qbittorrent : Application::notify(QObject*, QEvent*)+0x23  [0x56471c5eeb43]
  /usr/lib/libQt5Core.so.5 : QCoreApplication::notifyInternal2(QObject*, QEvent*)+0x179  [0x7fc874aa2c39]
  /usr/lib/libQt5Core.so.5 : QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)+0x1dc  [0x7fc874aa5ccc]
  /usr/lib/libQt5Core.so.5 : ()+0x2c59d4  [0x7fc874af69d4]
  /usr/lib/libglib-2.0.so.0 : g_main_context_dispatch()+0x2bf  [0x7fc87374e3cf]
  /usr/lib/libglib-2.0.so.0 : ()+0x6cf89  [0x7fc87374ff89]
  /usr/lib/libglib-2.0.so.0 : g_main_context_iteration()+0x2e  [0x7fc87374ffce]
  /usr/lib/libQt5Core.so.5 : QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x69  [0x7fc874af5fc9]
  /usr/lib/libQt5Core.so.5 : QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0x13c  [0x7fc874aa18cc]
  /usr/lib/libQt5Core.so.5 : QThread::exec()+0xb9  [0x7fc8748eaeb9]
  /usr/lib/libQt5Core.so.5 : ()+0xc3f65  [0x7fc8748f4f65]
  /usr/lib/libpthread.so.0 : ()+0x7a9d  [0x7fc874817a9d]
  /usr/lib/libc.so.6 : clone()+0x43  [0x7fc874417a43]
zsh: segmentation fault (core dumped)  qbittorrent

What is the expected behavior

Shouldn't close.

Steps to reproduce

Just open it up and wait.

Extra info(if any)

Worked fine a couple of hours ago.

@clasick
Copy link
Author

clasick commented Oct 9, 2018

Removing the package packagekit-qt5 seems to fix the issue.

@mohamedation
Copy link

same issue

`qBittorrent version: v4.1.3

Caught signal: SIGSEGV
Stack trace:
/usr/lib/libQt5Network.so.5 : ()+0x9aca4 [0x7f60c2bceca4]
/usr/lib/libQt5Network.so.5 : ()+0x9959b [0x7f60c2bcd59b]
/usr/lib/libQt5Core.so.5 : QObject::event(QEvent*)+0xe2 [0x7f60c288f352]
/usr/lib/libQt5Widgets.so.5 : QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x84 [0x7f60c3452e14]
/usr/lib/libQt5Widgets.so.5 : QApplication::notify(QObject*, QEvent*)+0x211 [0x7f60c345a6e1]
qbittorrent : Application::notify(QObject*, QEvent*)+0x23 [0x55a21c2b6b43]
/usr/lib/libQt5Core.so.5 : QCoreApplication::notifyInternal2(QObject*, QEvent*)+0x179 [0x7f60c2864c39]
/usr/lib/libQt5Core.so.5 : QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)+0x1dc [0x7f60c2867ccc]
/usr/lib/libQt5Core.so.5 : ()+0x2c59d4 [0x7f60c28b89d4]
/usr/lib/libglib-2.0.so.0 : g_main_context_dispatch()+0x2bf [0x7f60c15103cf]
/usr/lib/libglib-2.0.so.0 : ()+0x6cf89 [0x7f60c1511f89]
/usr/lib/libglib-2.0.so.0 : g_main_context_iteration()+0x2e [0x7f60c1511fce]
/usr/lib/libQt5Core.so.5 : QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag)+0x69 [0x7f60c28b7fc9]
/usr/lib/libQt5Core.so.5 : QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag)+0x13c [0x7f60c28638cc]
/usr/lib/libQt5Core.so.5 : QThread::exec()+0xb9 [0x7f60c26aceb9]
/usr/lib/libQt5Core.so.5 : ()+0xc3f65 [0x7f60c26b6f65]
/usr/lib/libpthread.so.0 : ()+0x7a9d [0x7f60c25d9a9d]
/usr/lib/libc.so.6 : clone()+0x43 [0x7f60c21d9a43]
[1] 23910 segmentation fault (core dumped) qbittorrent
`

@clasick
Copy link
Author

clasick commented Oct 13, 2018 via email

@mohamedation
Copy link

Arch Linux

@clasick
Copy link
Author

clasick commented Oct 15, 2018

Arch Linux

did removing packagekit-qt5 fix your crashes?

@mohamedation
Copy link

Arch Linux

did removing packagekit-qt5 fix your crashes?

I haven't try, but I don't think the fix should be removing packages.

@zeromind
Copy link

zeromind commented Nov 2, 2018

Same issue here, also on Arch Linux.
packagekit-qt5 is not installed.

$ lsb_release -a;pacman -Q linux qt5-base qbittorrent libtorrent-rasterbar packagekit-qt5
LSB Version:	1.4
Distributor ID:	Arch
Description:	Arch Linux
Release:	rolling
Codename:	n/a
linux 4.18.16.arch1-1
qt5-base 5.11.2-2
qbittorrent 4.1.3-2
libtorrent-rasterbar 1:1.1.10-1
error: package 'packagekit-qt5' was not found

@mohamedation
Copy link

still no clue?

@zeule
Copy link
Contributor

zeule commented Nov 9, 2018

Stacktraces are useless for debugging, happens only in Arch. Why don't you report that to the Arch bug tracker or build qt5-base with debugging enabled?

@blackPantherOS
Copy link

Stacktraces are useless for debugging, happens only in Arch.

Crashes on blackPanther OS as well...
rastebar 1.1.10 (crash with 1.1.9 too)
qt 5.11

In cmdline:

$ qbittorrent

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

qBittorrent version: v4.1.3

Caught signal: SIGSEGV
Stack trace:
  /lib64/libtorrent-rasterbar.so.9 : ()+0x16c9e2  [0x7ff27bcd79e2]
  /lib64/libtorrent-rasterbar.so.9 : ()+0x2df3f3  [0x7ff27be4a3f3]
  /lib64/libtorrent-rasterbar.so.9 : ()+0x1bdfc3  [0x7ff27bd28fc3]
  /lib64/libtorrent-rasterbar.so.9 : ()+0xe55cf  [0x7ff27bc505cf]
  /lib64/libpthread.so.0 : ()+0x8037  [0x7ff27a839037]
  /lib64/libc.so.6 : clone()+0x3f  [0x7ff27a04d47f]

Backtrace

GNU gdb (GDB) blackPanther OS 8.1.90.20180727-2bP
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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-blackPanther-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qbittorrent...Reading symbols from /usr/lib/debug/usr/bin/qbittorrent.debug...done.
done.
(gdb) run
Starting program: /usr/bin/qbittorrent 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe6372700 (LWP 3023)]
[New Thread 0x7fffdfd0c700 (LWP 3028)]
[Detaching after fork from child process 3029]
[New Thread 0x7fffddcbe700 (LWP 3033)]
[New Thread 0x7fffdd4bd700 (LWP 3035)]
[New Thread 0x7fffdcc5a700 (LWP 3036)]
[New Thread 0x7fffcffff700 (LWP 3037)]
[New Thread 0x7fffcf7fe700 (LWP 3038)]
[New Thread 0x7fffceffd700 (LWP 3039)]
[New Thread 0x7fffce7fc700 (LWP 3040)]
[New Thread 0x7fffcdffb700 (LWP 3041)]
[New Thread 0x7fffcd7fa700 (LWP 3042)]
[New Thread 0x7fffccff9700 (LWP 3043)]
[New Thread 0x7fffc3fff700 (LWP 3044)]
[Detaching after fork from child process 3045]

Thread 6 "qbittorrent" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffdcc5a700 (LWP 3036)]
0x00007ffff7ceb9e2 in boost::system::error_code::message[abi:cxx11]() const (this=0x7fffdcc59c50) at /usr/include/boost/system/error_code.hpp:674
674           std::string             message() const  { return m_cat->message(value()); }
(gdb) Quit
(gdb) bt
#0  0x00007ffff7ceb9e2 in boost::system::error_code::message[abi:cxx11]() const (this=0x7fffdcc59c50) at /usr/include/boost/system/error_code.hpp:674
#1  libtorrent::peer_connection::on_receive_data_nb(boost::system::error_code const&, unsigned long) () at peer_connection.cpp:5990
#2  0x00007ffff7e5e3f3 in boost::function2<void, boost::system::error_code const&, unsigned long>::operator() (a1=<optimized out>, a0=..., this=0x7fffdcc59c30)
    at /usr/include/boost/function/function_base.hpp:614
#3  boost::_bi::list2<boost::_bi::value<boost::system::error_code>, boost::_bi::value<unsigned long> >::operator()<boost::function2<void, boost::system::error_code const&, unsigned long>, boost::_bi::list0> (a=<synthetic pointer>..., f=..., this=0x7fffdcc59c50) at /usr/include/boost/bind/bind.hpp:319
#4  boost::_bi::bind_t<void, boost::function2<void, boost::system::error_code const&, unsigned long>, boost::_bi::list2<boost::_bi::value<boost::system::error_code>, boost::_bi::value<unsigned long> > >::operator() (this=0x7fffdcc59c30) at /usr/include/boost/bind/bind.hpp:1294
#5  boost::asio::asio_handler_invoke<boost::_bi::bind_t<void, boost::function2<void, boost::system::error_code const&, unsigned long>, boost::_bi::list2<boost::_bi::value<boost::system::error_code>, boost::_bi::value<unsigned long> > > > (function=...) at /usr/include/boost/asio/handler_invoke_hook.hpp:69
#6  boost_asio_handler_invoke_helpers::invoke<boost::_bi::bind_t<void, boost::function2<void, boost::system::error_code const&, unsigned long>, boost::_bi::list2<boost::_bi::value<boost::system::error_code>, boost::_bi::value<unsigned long> > >, boost::_bi::bind_t<void, boost::function2<void, boost::system::error_code const&, unsigned long>, boost::_bi::list2<boost::_bi::value<boost::system::error_code>, boost::_bi::value<unsigned long> > > > (context=..., function=...)
    at /usr/include/boost/asio/detail/handler_invoke_helpers.hpp:37
#7  boost::asio::detail::handler_work<boost::_bi::bind_t<void, boost::function2<void, boost::system::error_code const&, unsigned long>, boost::_bi::list2<boost::_bi::value<boost::system::error_code>, boost::_bi::value<unsigned long> > >, boost::asio::system_executor>::complete<boost::_bi::bind_t<void, boost::function2<void, boost::system::error_code const&, unsigned long>, boost::_bi::list2<boost::_bi::value<boost::system::error_code>, boost::_bi::value<unsigned long> > > > (this=<synthetic pointer>, 
    handler=..., function=...) at /usr/include/boost/asio/detail/handler_work.hpp:82
#8  boost::asio::detail::completion_handler<boost::_bi::bind_t<void, boost::function2<void, boost::system::error_code const&, unsigned long>, boost::_bi::list2<boost::_bi::value<boost::system::error_code>, boost::_bi::value<unsigned long> > > >::do_complete (owner=0x555555e6cad0, base=<optimized out>)
    at /usr/include/boost/asio/detail/completion_handler.hpp:70
#9  0x00007ffff7d3cfc3 in boost::asio::detail::scheduler_operation::complete (bytes_transferred=0, ec=..., owner=0x555555e6cad0, this=<optimized out>)
    at /usr/include/boost/asio/detail/scheduler_operation.hpp:40
#10 boost::asio::detail::scheduler::do_run_one (ec=..., this_thread=..., lock=..., this=0x555555e6cad0) at /usr/include/boost/asio/detail/impl/scheduler.ipp:401
#11 boost::asio::detail::scheduler::run (ec=..., this=0x555555e6cad0) at /usr/include/boost/asio/detail/impl/scheduler.ipp:154
#12 boost::asio::io_context::run (this=<optimized out>) at /usr/include/boost/asio/impl/io_context.ipp:62
#13 0x00007ffff7c645cf in boost::asio::detail::boost_asio_detail_posix_thread_function (arg=0x5555560f3540) at /usr/include/boost/asio/detail/impl/posix_thread.ipp:74
#14 0x00007ffff684d037 in start_thread (arg=0x7fffdcc5a700) at pthread_create.c:486
#15 0x00007ffff606147f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

@zeule
Copy link
Contributor

zeule commented Nov 12, 2018

@blackPantherOS: your backtrace differs from that in the first post and looks very similar to those in #9485.

@zoggee
Copy link

zoggee commented Nov 12, 2018

: your backtrace differs from that in the first post and looks very similar to those in #9485.
I've got the gdb message below.Is that useful?

(gdb) bt
#0  0x00007febe3e51ca4 in  () at /usr/lib/libQt5Network.so.5
#1  0x00007febe3e5059b in  () at /usr/lib/libQt5Network.so.5
#2  0x00007febe3b12352 in QObject::event(QEvent*) ()
    at /usr/lib/libQt5Core.so.5
#3  0x00007febe46d5e14 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#4  0x00007febe46dd6e1 in QApplication::notify(QObject*, QEvent*) ()
    at /usr/lib/libQt5Widgets.so.5
#5  0x00005579ccf12b43 in Application::notify(QObject*, QEvent*) ()
#6  0x00007febe3ae7c39 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#7  0x00007febe3aeaccc in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#8  0x00007febe3b3b9d4 in  () at /usr/lib/libQt5Core.so.5
#9  0x00007febe277e3cf in g_main_context_dispatch ()
    at /usr/lib/libglib-2.0.so.0
#10 0x00007febe277ff89 in  () at /usr/lib/libglib-2.0.so.0
#11 0x00007febe277ffce in g_main_context_iteration ()
    at /usr/lib/libglib-2.0.so.0
#12 0x00007febe3b3afc9 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#13 0x00007febe3ae68cc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
--Type <RET> for more, q to quit, c to continue without paging--Quit
(gdb) quit

@zeule
Copy link
Contributor

zeule commented Nov 12, 2018

No, of course it is not. Do you see any difference between your one and those posted earlier, except for the GDB UI messages and explicit frame numbers?

@zoggee
Copy link

zoggee commented Nov 13, 2018

Backtrace

Can you tell me how Can I get the qbittorrent's backtrace?What is the command?

@zeule
Copy link
Contributor

zeule commented Nov 13, 2018

@zoggee: if you are using Arch too, please check out the Arch wiki: https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces

@blackPantherOS
Copy link

blackPantherOS commented Nov 13, 2018

@zeule > @blackPantherOS: your backtrace differs from that in the first post and looks very similar to those in #9485.

Yes, the disabled c++11 solved this crash problem.
Thanks

@zoggee
Copy link

zoggee commented Nov 13, 2018

@blackPantherOS ,I can't figure it out.Could you show me how can I fix it?Plus,My English aint so good.
Thank you very much!

@zoggee
Copy link

zoggee commented Nov 13, 2018

@zoggee: if you are using Arch too, please check out the Arch wiki: https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces

@zeule Ok,I get it.I just want to know if whether it have another way to get backtrace or not(My English isn't so good,forgive me).Thank you very much!

@blackPantherOS
Copy link

@zoggee I can't figure it out.Could you show me how can I fix it?Plus,My English aint so good.
Thank you very much!

of course. the highlighted line the important row
image

@zeule
Copy link
Contributor

zeule commented Nov 13, 2018

@zoggee, ignore that reply above. @blackPantherOS, please put attention to the context. Your problem is not the same as people here are discussing. @zoggee if you want a help, applicable in your case, please tell us the name of your distribution.

@zoggee
Copy link

zoggee commented Nov 13, 2018

@zoggee, ignore that reply above. @blackPantherOS, please put attention to the context. Your problem is not the same as people here are discussing. @zoggee if you want a help, applicable in your case, please tell us the name of your distribution.

@zeule OK.
My distribution is ArchLinux
$uname -a
4.18.16-arch1-1-ARCH #1 SMP PREEMPT Sat Oct 20 22:06:45 UTC 2018 x86_64 GNU/Linux
qBittorrent version: v4.1.3

@zoggee
Copy link

zoggee commented Nov 13, 2018

@zoggee, ignore that reply above. @blackPantherOS, please put attention to the context. Your problem is not the same as people here are discussing. @zoggee if you want a help, applicable in your case, please tell us the name of your distribution.

@zeule OK.
My distribution is ArchLinux
$uname -a
4.18.16-arch1-1-ARCH #1 SMP PREEMPT Sat Oct 20 22:06:45 UTC 2018 x86_64 GNU/Linux
qBittorrent version: v4.1.3

$ pacman -Qi qt5-base
名字 : qt5-base
版本 : 5.11.2-1
描述 : A cross-platform application and UI framework
架构 : x86_64

@zeule
Copy link
Contributor

zeule commented Nov 13, 2018

Thank you. Then please follow the link to the Arch Wiki. In this particular case this section seems to provide the simples way to achieve the goal.

@zoggee
Copy link

zoggee commented Nov 13, 2018

@zeule No,thank you. Should I uninstall the qt5-base and install the qt-debug packages with debug symbols in order to get the backtrace without lost function name? (I'm a newbie for linux user and compiler.)

@zeule
Copy link
Contributor

zeule commented Nov 13, 2018

@zoggee I think you only need the qt5-base-debug package and whatever this package requires to install or replace.

@zoggee
Copy link

zoggee commented Nov 13, 2018

@zoggee I think you only need the qt5-base-debug package and whatever this package requires to install or replace.

OK,I'll try my best. Thank you very much. Can I ask blackPantherOS another question?

@zoggee
Copy link

zoggee commented Nov 13, 2018

@zoggee I can't figure it out.Could you show me how can I fix it?Plus,My English aint so good.
Thank you very much!

of course. the highlighted line the important row
image
Thank you in advance!
@blackPantherOS Is it your own qbittorrent's PKGBUILD file? Could you post it completely?
I wanna learn how to compile according to the file?

@zoggee
Copy link

zoggee commented Nov 19, 2018

@zeule When I type qbittorrent in comand line,I've got the warning message below:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

Is it matter with the crash?
How Can I set the variable?

@robert21281
Copy link

qBittorrent version: v4.1.8 (64-bit)
Libtorrent version: 1.1.13.0
Qt version: 5.13.1
Boost version: 1.71.0
OS version: Windows 10 (10.0) 10.0.18362 x86_64

Caught signal: SIGSEGV

#  0 qbittorrent.exe      0x00007ff65d89c3ca 0x7ff65d89c3ca()
#  1 qbittorrent.exe      0x00007ff65d89f58d 0x7ff65d89f58d()
#  2 qbittorrent.exe      0x00007ff65e447ed1 0x7ff65e447ed1()
#  3 qbittorrent.exe      0x00007ff65e4ab974 0x7ff65e4ab974()
#  4 qbittorrent.exe      0x00007ff65e4294f0 0x7ff65e4294f0()
#  5 ntdll.dll            0x00007fffc79e119f _chkstk()
#  6 ntdll.dll            0x00007fffc79aa229 RtlRaiseException()
#  7 ntdll.dll            0x00007fffc79dfe0e KiUserExceptionDispatcher()
#  8 ???                  0x00007ff74952c083 0x7ff74952c083()
#  9 qbittorrent.exe      0x00007ff65e37654b 0x7ff65e37654b()
# 10 qbittorrent.exe      0x00007ff65e3480cb 0x7ff65e3480cb()
# 11 qbittorrent.exe      0x00007ff65e34850f 0x7ff65e34850f()
# 12 qbittorrent.exe      0x00007ff65e3473f0 0x7ff65e3473f0()
# 13 qbittorrent.exe      0x00007ff65e3477c0 0x7ff65e3477c0()
# 14 qbittorrent.exe      0x00007ff65e347e59 0x7ff65e347e59()
# 15 qbittorrent.exe      0x00007ff65e3493fe 0x7ff65e3493fe()
# 16 qbittorrent.exe      0x00007ff65e2540c7 0x7ff65e2540c7()
# 17 qbittorrent.exe      0x00007ff65dd904d9 0x7ff65dd904d9()
# 18 qbittorrent.exe      0x00007ff65dd8e9ce 0x7ff65dd8e9ce()
# 19 qbittorrent.exe      0x00007ff65dd5c88d 0x7ff65dd5c88d()
# 20 qbittorrent.exe      0x00007ff65e0074c6 0x7ff65e0074c6()
# 21 qbittorrent.exe      0x00007ff65e006b0c 0x7ff65e006b0c()
# 22 qbittorrent.exe      0x00007ff65d977b57 0x7ff65d977b57()
# 23 qbittorrent.exe      0x00007ff65d9423ef 0x7ff65d9423ef()
# 24 qbittorrent.exe      0x00007ff65d94110d 0x7ff65d94110d()
# 25 qbittorrent.exe      0x00007ff65d94f9d5 0x7ff65d94f9d5()
# 26 qbittorrent.exe      0x00007ff65e2390d5 0x7ff65e2390d5()
# 27 qbittorrent.exe      0x00007ff65e273c05 0x7ff65e273c05()
# 28 qbittorrent.exe      0x00007ff65e273161 0x7ff65e273161()
# 29 qbittorrent.exe      0x00007ff65e234910 0x7ff65e234910()
# 30 qbittorrent.exe      0x00007ff65ddb3833 0x7ff65ddb3833()
# 31 qbittorrent.exe      0x00007ff65ddb3340 0x7ff65ddb3340()
# 32 qbittorrent.exe      0x00007ff65d893670 0x7ff65d893670()
# 33 qbittorrent.exe      0x00007ff65e26dbcc 0x7ff65e26dbcc()
# 34 qbittorrent.exe      0x00007ff65e355a33 0x7ff65e355a33()
# 35 qbittorrent.exe      0x00007ff65e354fa9 0x7ff65e354fa9()
# 36 USER32.dll           0x00007fffc6d2681d CallWindowProcW()
# 37 USER32.dll           0x00007fffc6d26212 DispatchMessageW()
# 38 qbittorrent.exe      0x00007ff65e3561c4 0x7ff65e3561c4()
# 39 qbittorrent.exe      0x00007ff65dcef361 0x7ff65dcef361()
# 40 qbittorrent.exe      0x00007ff65e3599a1 0x7ff65e3599a1()
# 41 qbittorrent.exe      0x00007ff65e26e127 0x7ff65e26e127()
# 42 qbittorrent.exe      0x00007ff65d893340 0x7ff65d893340()
# 43 qbittorrent.exe      0x00007ff65d89f337 0x7ff65d89f337()
# 44 qbittorrent.exe      0x00007ff65e424d53 0x7ff65e424d53()
# 45 qbittorrent.exe      0x00007ff65e4279b2 0x7ff65e4279b2()
# 46 KERNEL32.DLL         0x00007fffc6f87bd4 BaseThreadInitThunk()
# 47 ntdll.dll            0x00007fffc79ace71 RtlUserThreadStart()

@attila-lendvai
Copy link

i'm getting this on Debian 10, a few seconds after starting.

i don't know what broke it. it worked earlier today, and i don't remember changing anything, nor adding any new torrents. i may have updated some packages, but i don't remember extensive updates, nor qt libs.

4.1.3 crashes the same as 4.1.7 from testing.

qBittorrent version: v4.1.7

Caught signal: SIGSEGV
Stack trace:
  /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 : ()+0x95ba4  [0x7febc7857ba4]
  /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 : ()+0x94c69  [0x7febc7856c69]
  /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 : QObject::event(QEvent*)+0xe2  [0x7febc751c182]
  /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x81  [0x7febc80e74b1]
  /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QApplication::notify(QObject*, QEvent*)+0x210  [0x7febc80ee950]
  qbittorrent : Application::notify(QObject*, QEvent*)+0x24  [0x55dd6ee38814]
  /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 : QCoreApplication::notifyInternal2(QObject*, QEvent*)+0x179  [0x7febc74f25a9]
  /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 : QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)+0x1cb  [0x7febc74f559b]
  /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 : ()+0x2bc233  [0x7febc7544233]
  /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 : g_main_context_dispatch()+0x2ae  [0x7febc61b9f2e]
  /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 : ()+0x4e1c8  [0x7febc61ba1c8]
  /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 : g_main_context_iteration()+0x2c  [0x7febc61ba25c]
  /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 : QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x63  [0x7febc7543863]
  /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 : QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0x13b  [0x7febc74f127b]
  /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 : QThread::exec()+0xb6  [0x7febc7340ec6]
  /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 : ()+0xc2aa7  [0x7febc734aaa7]
  /lib/x86_64-linux-gnu/libpthread.so.0 : ()+0x7fa3  [0x7febc726efa3]
  /lib/x86_64-linux-gnu/libc.so.6 : clone()+0x3f  [0x7febc6e7c4cf]

@salmanulfarzy
Copy link

Try disabling RSS.

@blackPantherOS
Copy link

Latest Git (4.2.0 beta) is very stable. No crashes in last two hours...

@1noro
Copy link

1noro commented Oct 30, 2019

qBittorrent version: v4.1.5

Caught signal: SIGSEGV
Stack trace:
  /lib/x86_64-linux-gnu/libQt5Network.so.5 : ()+0x95ba4  [0x7f5b5590bba4]
  /lib/x86_64-linux-gnu/libQt5Network.so.5 : ()+0x94c69  [0x7f5b5590ac69]
  /lib/x86_64-linux-gnu/libQt5Core.so.5 : QObject::event(QEvent*)+0xe2  [0x7f5b555d0182]
  /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x81  [0x7f5b5619b4b1]
  /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QApplication::notify(QObject*, QEvent*)+0x210  [0x7f5b561a2950]
  qbittorrent : Application::notify(QObject*, QEvent*)+0x22  [0x561643428c42]
  /lib/x86_64-linux-gnu/libQt5Core.so.5 : QCoreApplication::notifyInternal2(QObject*, QEvent*)+0x179  [0x7f5b555a65a9]
  /lib/x86_64-linux-gnu/libQt5Core.so.5 : QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)+0x1cb  [0x7f5b555a959b]
  /lib/x86_64-linux-gnu/libQt5Core.so.5 : ()+0x2bc233  [0x7f5b555f8233]
  /lib/x86_64-linux-gnu/libglib-2.0.so.0 : g_main_context_dispatch()+0x2ae  [0x7f5b5426af2e]
  /lib/x86_64-linux-gnu/libglib-2.0.so.0 : ()+0x4e1c8  [0x7f5b5426b1c8]
  /lib/x86_64-linux-gnu/libglib-2.0.so.0 : g_main_context_iteration()+0x2c  [0x7f5b5426b25c]
  /lib/x86_64-linux-gnu/libQt5Core.so.5 : QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x63  [0x7f5b555f7863]
  /lib/x86_64-linux-gnu/libQt5Core.so.5 : QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0x13b  [0x7f5b555a527b]
  /lib/x86_64-linux-gnu/libQt5Core.so.5 : QThread::exec()+0xb6  [0x7f5b553f4ec6]
  /lib/x86_64-linux-gnu/libQt5Core.so.5 : ()+0xc2aa7  [0x7f5b553feaa7]
  /lib/x86_64-linux-gnu/libpthread.so.0 : ()+0x7fa3  [0x7f5b55322fa3]
  /lib/x86_64-linux-gnu/libc.so.6 : clone()+0x3f  [0x7f5b54f304cf]
zsh: segmentation fault  qbittorrent

packagekit-qt5 not installed

$ uname -a
Linux mpu 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20) x86_64 GNU/Linux

@octopoisson
Copy link

octopoisson commented Nov 26, 2019

I think I have managed to correct this bug on my Debian 10 system by compiling (4.1.9.1) with a newer QT version (5.12.6). qBittorrent still reports version 5.11.3 which I can only guess is because of the environment.

Also: I was running qBittorrent 4.1.5 in Debian 9 (Qt 5.7.1). Upgrading to Debian 10 (the same version of qBittorrent with Qt 5.11.3) broke it and I got these segfaults whenever I tried to load the fastresume data (not with a clean data/qBittorrent folder). Don't know if it's relevant, but I also switched from XFCE to KDE in the process.

@vlijmenfileer
Copy link

I have the same. To be precise, the crash is triggered by going to the search tab, and then opening the Search plugins window.

Seeing how it started apparently randomly, and no critical packages had been updated or installed when it happened, I suspected the search plugins themselves, which I had recently updated.

  • After uninstalling all search plugins, qBittorrent does not crash any more, when opening the Search plugins window.
  • After installing a limited set from https://github.com/qbittorrent/search-plugins/wiki/Unofficial-search-plugins, qBittorrent does not crash any moreafter opening.
  • After uninstalling all plugins again and choosing "Check for updates" some random (default?, official?) set of plugins is installed, immediately after which qBittorrent crashes again.

My guess is the problem is in an update to one these random (default?, official?) plugins.

qBittorrent v4.1.5 (64-bit)
Qt: 5.11.3
Libtorrent: 1.1.11.0
Boost: 1.67.0

I never use(d) the RSS option.

OS: Debian GNU/Linux 10 (buster) x86_64
Model: Dell System XPS L502X
Kernel: 5.2.0-0.bpo.3-amd64
Shell: bash 5.0.3
Resolution: 1920x1080
DE: Xfce
WM: Xfwm4
WM Theme: Breeze
Theme: Breeze [GTK2/3]
Icons: Adwaita [GTK2], breeze [GTK3]
Terminal: xfce4-terminal
Terminal Font: Monospace 11
CPU: Intel i5-2520M (4) @ 3.200GHz
GPU: NVIDIA GeForce GT 525M
GPU: Intel 2nd Generation Core Processor Family
Memory: 3574MiB / 7935MiB

@gonoloo
Copy link

gonoloo commented Apr 1, 2020

Hi, I have the same issue.
I'm quite a very beginner on debian and linux and I'm not good at all in code, so I need a lot of explanations about how solving this issue... Thanks :)

qBittorrent version and Operating System
qBittorrent 4.1.5 & Debian KDE plasma 5.14.5

If on linux, libtorrent-rasterbar and Qt version
libtorrent-rasterbar9 & Qt 5.11.3

What is the problem
qBittorrent is closing by itself just after I opened it (less than 1 second after). It happened just after I tried to add a lot of trackers to one torrent.

What is the expected behavior(type here)
Not closing

Steps to reproduce
Adding a lot of trackers ?

Extra info(if any)
qBittorrent version: v4.1.5

Caught signal: SIGSEGV
Stack trace:
/lib/x86_64-linux-gnu/libQt5Network.so.5 : ()+0x95b84 [0x7f14b097ab84]
/lib/x86_64-linux-gnu/libQt5Network.so.5 : ()+0x94c49 [0x7f14b0979c49]
/lib/x86_64-linux-gnu/libQt5Core.so.5 : QObject::event(QEvent*)+0xe2 [0x7f14b063f072]
/lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x81 [0x7f14b12094c1]
/lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QApplication::notify(QObject*, QEvent*)+0x210 [0x7f14b1210970]
qbittorrent : Application::notify(QObject*, QEvent*)+0x22 [0x562abad92c42]
/lib/x86_64-linux-gnu/libQt5Core.so.5 : QCoreApplication::notifyInternal2(QObject*, QEvent*)+0x179 [0x7f14b0615489]
/lib/x86_64-linux-gnu/libQt5Core.so.5 : QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)+0x1cb [0x7f14b061846b]
/lib/x86_64-linux-gnu/libQt5Core.so.5 : ()+0x2bc103 [0x7f14b0667103]
/lib/x86_64-linux-gnu/libglib-2.0.so.0 : g_main_context_dispatch()+0x2ae [0x7f14af2d9f2e]
/lib/x86_64-linux-gnu/libglib-2.0.so.0 : ()+0x4e1c8 [0x7f14af2da1c8]
/lib/x86_64-linux-gnu/libglib-2.0.so.0 : g_main_context_iteration()+0x2c [0x7f14af2da25c]
/lib/x86_64-linux-gnu/libQt5Core.so.5 : QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag)+0x67 [0x7f14b0666727]
/lib/x86_64-linux-gnu/libQt5Core.so.5 : QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag)+0x13b [0x7f14b061415b]
/lib/x86_64-linux-gnu/libQt5Core.so.5 : QThread::exec()+0xb6 [0x7f14b0463e76]
/lib/x86_64-linux-gnu/libQt5Core.so.5 : ()+0xc2a67 [0x7f14b046da67]
/lib/x86_64-linux-gnu/libpthread.so.0 : ()+0x7fa3 [0x7f14b0391fa3]
/lib/x86_64-linux-gnu/libc.so.6 : clone()+0x3f [0x7f14aff9f4cf]
Erreur de segmentation

@FranciscoPombal
Copy link
Member

Thanks to all for the reports. However, all crash reports here are from very old versions at this point. The root casue of these crashes has most likely been fixed in libtorrent/Qt/boost, etc.

Submit a new issue if you have any problems with 4.2.3, the latest version.

@FranciscoPombal
Copy link
Member

FranciscoPombal commented Apr 8, 2020

Note: this problem seems to be related to Qt 5.11.3 and the usage of specific search plugins, or the tracker favicons in older Qt versions.

If you're on Windows or macOS, the most recent builds have been shipping with more recent versions for a long time now. On Linux, here are some possible workarounds, if you're stuck on that Qt version:

@qbittorrent qbittorrent locked as resolved and limited conversation to collaborators Sep 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.