Long click on RSS item (segmentation fault)

Bug #575624 reported by SDERAWI
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qBittorrent
Fix Released
Medium
Christophe Dumez

Bug Description

Holding the left click on an RSS item results in a segmentation fault.

A@A-Desktop:~$ qbittorrent
Peer ID: -UT1850-
HTTP user agent is uTorrent/1850(17414)

*************************************************************
Catching SIGSEGV, please report a bug at http://bug.qbittorrent.org
and provide the following backtrace:
stack trace:
  [0xadd400]
  /lib/tls/i686/cmov/libc.so.6 : ()+0x111df1 [0x1bb4df1]
Segmentation fault

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

How long was that click? I can seem to reproduce here.

Just to be clear, you are clicking on a RSS news article in the top-right list?

Unfortunately the backtrace is not helpful here. If you can reproduce easily, it might be useful to get a backtrace with gdb:

# apt-get install gdb
$ gdb qbittorrent
> run
... Make it crash ...
> thread apply all bt 25
.. Will be a backtrace ...

Changed in qbittorrent:
assignee: nobody → Christophe Dumez (hydr0g3n)
status: New → Incomplete
Revision history for this message
SDERAWI (sderawi-deactivatedaccount) wrote :
Download full text (11.0 KiB)

2 seconds + drag mouse (Up or Down)

A@A-Desktop:~$ gdb qbittorrent
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 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 "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/qbittorrent...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/qbittorrent
[Thread debugging using libthread_db enabled]
[New Thread 0xb7d56b70 (LWP 16725)]
[New Thread 0xb73ffb70 (LWP 16726)]
Peer ID: -UT1850-
[New Thread 0xb6bfeb70 (LWP 16727)]
HTTP user agent is uTorrent/1850(17414)
[New Thread 0xb63fdb70 (LWP 16728)]
[New Thread 0xb5bfcb70 (LWP 16729)]
[New Thread 0xb53fbb70 (LWP 16730)]
[New Thread 0xb4bfab70 (LWP 16732)]
[New Thread 0xb43f9b70 (LWP 16733)]
[New Thread 0xb39ffb70 (LWP 16734)]
[New Thread 0xb31feb70 (LWP 16735)]
[New Thread 0xb25ffb70 (LWP 16736)]
[New Thread 0xb1bffb70 (LWP 16737)]
Warning: Local domain socket was not closed cleanly, deleting file...
[Thread 0xb5bfcb70 (LWP 16729) exited]

Program received signal SIGSEGV, Segmentation fault.
0x01ec4df1 in ?? () from /lib/tls/i686/cmov/libc.so.6
(gdb) thread apply all bt 25

Thread 13 (Thread 0xb1bffb70 (LWP 16737)):
#0 0x0012d422 in __kernel_vsyscall ()
#1 0x00e03015 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2 0x00c188bb in boost::asio::detail::task_io_service<boost::asio::detail::epoll_reactor<false> >::run(boost::system::error_code&) ()
   from /usr/lib/libtorrent-rasterbar.so.5
#3 0x00cfcdc1 in boost::asio::detail::posix_thread::func<boost::asio::detail::resolver_service<boost::asio::ip::udp>::work_io_service_runner>::run() ()
   from /usr/lib/libtorrent-rasterbar.so.5
#4 0x00c04bf0 in asio_detail_posix_thread_function ()
   from /usr/lib/libtorrent-rasterbar.so.5
#5 0x00dfe96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#6 0x01e80a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 12 (Thread 0xb25ffb70 (LWP 16736)):
#0 0x0012d422 in __kernel_vsyscall ()
#1 0x00e03342 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2 0x01a6120f in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libQtCore.so.4
#3 0x01a552eb in ?? () from /usr/lib/libQtCore.so.4
---Type <return> to continue, or q <return> to quit---
#4 0x01a6032e in ?? () from /usr/lib/libQtCore.so.4
#5 0x00dfe96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#6 0x01e80a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 11 (Thread 0xb31feb70 (LWP 16735)):
#0 0x0012d422 in __kernel_vsyscall ()
#1 0x00e03342 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2 0x01a6120f in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libQtCore.so.4
#3 0x01a552eb in ?? () from /usr/lib/libQtCore.so.4
#4 0x01a6032e in ?? () from /usr/lib/libQtCore.so.4
#5 0x00...

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

This is fixed in SVN. Thanks!

Changed in qbittorrent:
importance: Undecided → Medium
milestone: none → 2.2.7
status: Incomplete → Fix Committed
Changed in qbittorrent:
status: Fix Committed → Fix Released
Revision history for this message
SDERAWI (sderawi-deactivatedaccount) wrote :
Download full text (7.1 KiB)

[2.2.7]

A@A-Desktop:~$ gdb qbittorrent
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 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 "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/qbittorrent...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/qbittorrent
[Thread debugging using libthread_db enabled]
[New Thread 0xb7d5db70 (LWP 7733)]
[New Thread 0xb755cb70 (LWP 7734)]
Peer ID: -UT1850-
[New Thread 0xb6d5ab70 (LWP 7735)]
HTTP user agent is uTorrent/1850(17414)
[New Thread 0xb63ffb70 (LWP 7736)]
[New Thread 0xb5bfeb70 (LWP 7737)]
[New Thread 0xb53fdb70 (LWP 7738)]
ERROR: an invalid RSS item was saved
ERROR: an invalid RSS item was saved
ERROR: an invalid RSS item was saved
ERROR: an invalid RSS item was saved
ERROR: an invalid RSS item was saved
ERROR: an invalid RSS item was saved
[New Thread 0xb4bfcb70 (LWP 7740)]
[New Thread 0xb41ffb70 (LWP 7741)]
Warning: Local domain socket was not closed cleanly, deleting file...
[New Thread 0xb38e6b70 (LWP 7742)]
[Thread 0xb5bfeb70 (LWP 7737) exited]

Program received signal SIGSEGV, Segmentation fault.
0x0167adf1 in ?? () from /lib/tls/i686/cmov/libc.so.6
(gdb) thread apply all bt 25

Thread 10 (Thread 0xb38e6b70 (LWP 7742)):
#0 0x0012d422 in __kernel_vsyscall ()
#1 0x005b9342 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2 0x0121720f in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libQtCore.so.4
#3 0x0120b2eb in ?? () from /usr/lib/libQtCore.so.4
#4 0x0121632e in ?? () from /usr/lib/libQtCore.so.4
#5 0x005b496e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#6 0x01636a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 9 (Thread 0xb41ffb70 (LWP 7741)):
#0 0x0012d422 in __kernel_vsyscall ()
#1 0x005b9342 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2 0x0121720f in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libQtCore.so.4
#3 0x0120b2eb in ?? () from /usr/lib/libQtCore.so.4
#4 0x0121632e in ?? () from /usr/lib/libQtCore.so.4
#5 0x005b496e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#6 0x01636a0e in clone () from /lib/tls/i686/cmov/libc.so.6

---Type <return> to continue, or q <return> to quit---
Thread 8 (Thread 0xb4bfcb70 (LWP 7740)):
#0 0x0012d422 in __kernel_vsyscall ()
#1 0x005b9342 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2 0x0121720f in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libQtCore.so.4
#3 0x0120b2eb in ?? () from /usr/lib/libQtCore.so.4
#4 0x0121632e in ?? () from /usr/lib/libQtCore.so.4
#5 0x005b496e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#6 0x01636a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 7 (Thread 0xb53fdb70 (LWP 7738)):
#0 0x0012d422 in __kern...

Read more...

Revision history for this message
SDERAWI (sderawi-deactivatedaccount) wrote :

Any word on this?

Changed in qbittorrent:
status: Fix Released → New
Revision history for this message
SDERAWI (sderawi-deactivatedaccount) wrote :

I think it got fixed.

Changed in qbittorrent:
status: New → Fix Released
Revision history for this message
SDERAWI (sderawi-deactivatedaccount) wrote :
Download full text (9.7 KiB)

I think there is another problem now

A@A-Desktop:~$ qbittorrent
Peer ID: -qB2480-
HTTP user agent is qBittorrent v2.4.8
abz@ABZ-Desktop:~$ gdb qbittorrent
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 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 "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/qbittorrent...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/qbittorrent
[Thread debugging using libthread_db enabled]
[New Thread 0xb7d67b70 (LWP 23459)]
[New Thread 0xb73adb70 (LWP 23480)]
[New Thread 0xb6bacb70 (LWP 23481)]
Peer ID: -qB2480-
[New Thread 0xb63abb70 (LWP 23482)]
HTTP user agent is qBittorrent v2.4.8
[New Thread 0xb5baab70 (LWP 23483)]
[New Thread 0xb53a9b70 (LWP 23484)]
[New Thread 0xb4b57b70 (LWP 23486)]
[New Thread 0xb4356b70 (LWP 23487)]
[New Thread 0xb3843b70 (LWP 23488)]

Program received signal SIGSEGV, Segmentation fault.
0x0176ee9a in ?? () from /lib/libc.so.6
(gdb) thread apply all bt 25

Thread 10 (Thread 0xb3843b70 (LWP 23488)):
#0 0x0012e416 in __kernel_vsyscall ()
#1 0x01719de6 in poll () from /lib/libc.so.6
#2 0x018f0a1b in g_poll () from /lib/libglib-2.0.so.0
#3 0x018e343c in ?? () from /lib/libglib-2.0.so.0
#4 0x018e3848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5 0x01425565 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6 0x013f5609 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7 0x013f5a8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQtCore.so.4
#8 0x012f1b7e in QThread::exec() () from /usr/lib/libQtCore.so.4
#9 0x013d435b in ?? () from /usr/lib/libQtCore.so.4
#10 0x012f4df9 in ?? () from /usr/lib/libQtCore.so.4
#11 0x005cfcc9 in start_thread () from /lib/libpthread.so.0
#12 0x017286ae in clone () from /lib/libc.so.6

Thread 9 (Thread 0xb4356b70 (LWP 23487)):
#0 0x0012e416 in __kernel_vsyscall ()
#1 0x005d4884 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
#2 0x012f594f in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libQtCore.so.4
#3 0x012e95b3 in ?? () from /usr/lib/libQtCore.so.4
#4 0x012f4df9 in ?? () from /usr/lib/libQtCore.so.4
#5 0x005cfcc9 in start_thread () from /lib/libpthread.so.0
#6 0x017286ae in clone () from /lib/libc.so.6

Thread 8 (Thread 0xb4b57b70 (LWP 23486)):
#0 0x0012e416 in __kernel_vsyscall ()
#1 0x005d4884 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#2 0x012f594f in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libQtCore.so.4
#3 0x012e95b3 in ?? () from /usr/lib/libQtCore.so.4
#4 0x012f4df9 in ?? () from /usr/lib/libQtCore.so.4
#5 0x005cfcc9 in start_thread () from /lib/libpthread.so.0
#...

Read more...

Changed in qbittorrent:
status: Fix Released → New
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

This should be properly fixed now.

Changed in qbittorrent:
milestone: 2.2.7 → 2.4.9
status: New → Fix Committed
Revision history for this message
SDERAWI (sderawi-deactivatedaccount) wrote :

Thank you.

Changed in qbittorrent:
status: Fix Committed → Fix Released
Revision history for this message
SDERAWI (sderawi-deactivatedaccount) wrote :
Download full text (10.4 KiB)

gdb qbittorrent
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 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 "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/qbittorrent...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/qbittorrent
[Thread debugging using libthread_db enabled]
[New Thread 0xb7d67b70 (LWP 14624)]
[New Thread 0xb73adb70 (LWP 14625)]
[New Thread 0xb6bacb70 (LWP 14626)]
Peer ID: -qB2490-
[New Thread 0xb63abb70 (LWP 14627)]
HTTP user agent is qBittorrent v2.4.9
[New Thread 0xb5baab70 (LWP 14628)]
[New Thread 0xb53a9b70 (LWP 14629)]
[New Thread 0xb4b57b70 (LWP 14631)]
[New Thread 0xb433db70 (LWP 14632)]
[New Thread 0xb3956b70 (LWP 14653)]

Program received signal SIGSEGV, Segmentation fault.
0x0176eebc in ?? () from /lib/libc.so.6
(gdb) apply all bt 25
Undefined command: "apply". Try "help".
(gdb) thread apply all bt 25

Thread 10 (Thread 0xb3956b70 (LWP 14653)):
#0 0x0012e416 in __kernel_vsyscall ()
#1 0x01719de6 in poll () from /lib/libc.so.6
#2 0x018f0a1b in g_poll () from /lib/libglib-2.0.so.0
#3 0x018e343c in ?? () from /lib/libglib-2.0.so.0
#4 0x018e3848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5 0x01425565 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6 0x013f5609 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7 0x013f5a8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQtCore.so.4
#8 0x012f1b7e in QThread::exec() () from /usr/lib/libQtCore.so.4
#9 0x013d435b in ?? () from /usr/lib/libQtCore.so.4
#10 0x012f4df9 in ?? () from /usr/lib/libQtCore.so.4
#11 0x005cfcc9 in start_thread () from /lib/libpthread.so.0
#12 0x017286ae in clone () from /lib/libc.so.6

Thread 9 (Thread 0xb433db70 (LWP 14632)):
#0 0x0012e416 in __kernel_vsyscall ()
#1 0x005d4884 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
#2 0x012f594f in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libQtCore.so.4
#3 0x012e95b3 in ?? () from /usr/lib/libQtCore.so.4
#4 0x012f4df9 in ?? () from /usr/lib/libQtCore.so.4
#5 0x005cfcc9 in start_thread () from /lib/libpthread.so.0
#6 0x017286ae in clone () from /lib/libc.so.6

Thread 8 (Thread 0xb4b57b70 (LWP 14631)):
#0 0x0012e416 in __kernel_vsyscall ()
#1 0x005d4884 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#2 0x012f594f in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libQtCore.so.4
#3 0x012e95b3 in ?? () from /usr/lib/libQtCore.so.4
#4 0x012f4df9 in ?? () from /usr/lib/libQtCore.so.4
#5 0x005cfcc9 in start_thread () from /lib/libpthread.so.0
#6 0x017286ae in clone () from /lib/libc.so.6

Thread 7 (Thread 0xb53a9b70 (LW...

summary: - [2.2.6] Long click on RSS item (segmentation fault)
+ Long click on RSS item (segmentation fault)
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Does this mean it is still crashing with v2.4.9?

Revision history for this message
SDERAWI (sderawi-deactivatedaccount) wrote :

Yes it is still crashing with v2.4.9

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

Damn, I really cannot seem to fix it properly. The thing is I haven't been able the reproduce the issue in a long time (Since my first fix actually).

Changed in qbittorrent:
milestone: 2.4.9 → 2.4.10
status: Fix Released → Triaged
Revision history for this message
SDERAWI (sderawi-deactivatedaccount) wrote :

Okay , if you want to reproduce , follow the following steps:

1 : Subscribe to ezRSS or any other popular feed.

2 : Go to (Unread), and make sure there are many unread articles.

3 : Left click on the last article and drag UP.

4 : CRASH

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

Ok, thanks a lot for helping me reproduce the issue. Now I'm sure this is fixed in SVN. It was way more complicated than I anticipated :)

Changed in qbittorrent:
status: Triaged → Fix Committed
Revision history for this message
SDERAWI (sderawi-deactivatedaccount) wrote :

You are welcome.

Changed in qbittorrent:
status: Fix Committed → Fix Released
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.