FS#49836 - [libtorrent-rasterbar] Segfault when running qbittorrent 3.3.4-2

Attached to Project: Arch Linux
Opened by Samantha McVey (samcv) - Saturday, 25 June 2016, 05:14 GMT
Last edited by Jan Alexander Steffens (heftig) - Thursday, 21 July 2016, 09:18 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No

Details

Description: qbittorrent dumps its core when run. If I downgrade to the previous versions of qbittorrent and libtorrent-rasterbar everything opens fine. Trying the newest libtorrent + prev version of qbittorrent or the opposite does not work as the current qbittorrent relies on libtorrent-rasterbar.so.9 while the previous version relied on /usr/lib/libtorrent-rasterbar.so.8

Steps to reproduce:
Update to latest versions (qbittorrent 3.3.4-2 and libtorrent-rasterbar 1:1.1-2 . Run qbittorrent in terminal and it will dump:

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

qBittorrent version: v3.3.4
stack trace:
/usr/lib/libtorrent-rasterbar.so.9 : ()+0x1df118 [0x7efc6654d118]
/usr/lib/libtorrent-rasterbar.so.9 : ()+0x1dd175 [0x7efc6654b175]
/usr/lib/libtorrent-rasterbar.so.9 : ()+0x1e2b7a [0x7efc66550b7a]
/usr/lib/libtorrent-rasterbar.so.9 : ()+0x1e2cff [0x7efc66550cff]
/usr/lib/libtorrent-rasterbar.so.9 : ()+0x1c01c8 [0x7efc6652e1c8]
/usr/lib/libtorrent-rasterbar.so.9 : ()+0xc66df [0x7efc664346df]
/usr/lib/libpthread.so.0 : ()+0x7484 [0x7efc640b9484]
/usr/lib/libc.so.6 : clone()+0x6d [0x7efc635576dd]
[1] 6808 segmentation fault (core dumped) qbittorrent

This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Thursday, 21 July 2016, 09:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  libtorrent-rasterbar 1.1-3, currently in [testing].
Comment by Ariel Rosenfeld (lord_rel) - Saturday, 25 June 2016, 11:12 GMT
systemd-coredump[2129]: Process 2113 (qbittorrent) of user 500 dumped core.

Stack trace of thread 2121:
#0 0x00007f27ca99de77 n/a (libtorrent-rasterbar.so.9)
#1 0x00007f27ca99bdd4 n/a (libtorrent-rasterbar.so.9)
#2 0x00007f27ca9a1ac9 n/a (libtorrent-rasterbar.so.9)
#3 0x00007f27ca9a1c5b n/a (libtorrent-rasterbar.so.9)
#4 0x00007f27ca97de68 n/a (libtorrent-rasterbar.so.9)
#5 0x00007f27ca87e75e n/a (libtorrent-rasterbar.so.9)
#6 0x00007f27c84fe484 start_thread (libpthread.so.0)
#7 0x00007f27c799c6dd __clone (libc.so.6)

Stack trace of thread 2113:
#0 0x00007f27c85040af pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f27ca97ee6b n/a (libtorrent-rasterbar.so.9)
#2 0x00007f27ca99d6f0 n/a (libtorrent-rasterbar.so.9)
#3 0x00007f27ca9877c1 _ZNK10libtorrent14session_handle13get_ip_filterEv (libtorrent-rasterbar.so.9)
#4 0x0000000000557434 _ZN18FilterParserThread17processFilterListEPN10libtorrent7sessionERK11QStringList (qbittorrent)
#5 0x000000000052bc7d _ZN10BitTorrent7Session9configureEv (qbittorrent)
#6 0x0000000000531758 _ZN10BitTorrent7SessionC1EP7QObject (qbittorrent)
#7 0x0000000000531e87 _ZN10BitTorrent7Session12initInstanceEv (qbittorrent)
#8 0x00000000004c9766 _ZN11Application4execERK11QStringList (qbittorrent)
#9 0x00000000004bcd60 main (qbittorrent)
#10 0x00007f27c78d5741 __libc_start_main (libc.so.6)
#11 0x00000000004c50e9 _start (qbittorrent)

Stack trace of thread 2120:
#0 0x00007f27c79936cd poll (libc.so.6)
#1 0x00007f27c50c3fd6 n/a (libglib-2.0.so.0)
#2 0x00007f27c50c40ec g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007f27c89ef57f _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
#4 0x00007f27c89990da _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
#5 0x00007f27c87bc0f3 _ZN7QThread4execEv (libQt5Core.so.5)
#6 0x00007f27c87c0d78 n/a (libQt5Core.so.5)
#7 0x00007f27c84fe484 start_thread (libpthread.so.0)
#8 0x00007f27c799c6dd __clone (libc.so.6)

Stack trace of thread 2115:
#0 0x00007f27c79936cd poll (libc.so.6)
#1 0x00007f27c50c3fd6 n/a (libglib-2.0.so.0)
#2 0x00007f27c50c40ec g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007f27c89ef57f _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
#4 0x00007f27c89990da _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
#5 0x00007f27c87bc0f3 _ZN7QThread4execEv (libQt5Core.so.5)
#6 0x00007f27c93a4e75 n/a (libQt5DBus.so.5)
#7 0x00007f27c87c0d78 n/a (libQt5Core.so.5)
#8 0x00007f27c84fe484 start_thread (libpthread.so.0)
#9 0x00007f27c799c6dd __clone (libc.so.6)

Stack trace of thread 2114:
#0 0x00007f27c79936cd poll (libc.so.6)
#1 0x00007f27c12a08e0 n/a (libxcb.so.1)
#2 0x00007f27c12a2679 xcb_wait_for_event (libxcb.so.1)
#3 0x00007f27c0795469 n/a (libQt5XcbQpa.so.5)
#4 0x00007f27c87c0d78 n/a (libQt5Core.so.5)
#5 0x00007f27c84fe484 start_thread (libpthread.so.0)
#6 0x00007f27c799c6dd __clone (libc.so.6)

Stack trace of thread 2126:
#0 0x00007f27c79936cd poll (libc.so.6)
#1 0x00007f27c2031c73 n/a (libresolv.so.2)
#2 0x00007f27c202fc14 __libc_res_nquery (libresolv.so.2)
#3 0x00007f27c2030285 n/a (libresolv.so.2)
#4 0x00007f27c2030739 __libc_res_nsearch (libresolv.so.2)
#5 0x00007f27a0319a19 _nss_dns_gethostbyname4_r (libnss_dns.so.2)
#6 0x00007f27c7988044 gaih_inet (libc.so.6)
#7 0x00007f27c7989681 getaddrinfo (libc.so.6)
#8 0x00007f27ca96f958 n/a (libtorrent-rasterbar.so.9)
#9 0x00007f27ca8a01f8 _ZN5boost4asio6detail12posix_thread4funcINS1_21resolver_service_base22work_io_service_runnerEE3runEv (libtorrent-rasterbar.so.9)
#10 0x00007f27ca87e75e n/a (libtorrent-rasterbar.so.9)
#11 0x00007f27c84fe484 start_thread (libpthread.so.0)
#12 0x00007f27c799c6dd __clone (libc.so.6)

Stack trace of thread 2122:
#0 0x00007f27c85040af pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f27ca87de7a n/a (libtorrent-rasterbar.so.9)
#2 0x00007f27ca87ee68 n/a (libtorrent-rasterbar.so.9)
#3 0x00007f27ca87e75e n/a (libtorrent-rasterbar.so.9)
#4 0x00007f27c84fe484 start_thread (libpthread.so.0)
#5 0x00007f27c799c6dd __clone (libc.so.6)

Stack trace of thread 2124:
#0 0x00007f27c85040af pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f27ca87de7a n/a (libtorrent-rasterbar.so.9)
#2 0x00007f27ca87ee68 n/a (libtorrent-rasterbar.so.9)
#3 0x00007f27ca87e75e n/a (libtorrent-rasterbar.so.9)
#4 0x00007f27c84fe484 start_thread (libpthread.so.0)
#5 0x00007f27c799c6dd __clone (libc.so.6)

Stack trace of thread 2123:
#0 0x00007f27c85040af pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f27ca87de7a n/a (libtorrent-rasterbar.so.9)
#2 0x00007f27ca87ee68 n/a (libtorrent-rasterbar.so.9)
#3 0x00007f27ca87e75e n/a (libtorrent-rasterbar.so.9)
#4 0x00007f27c84fe484 start_thread (libpthread.so.0)
#5 0x00007f27c799c6dd __clone (libc.so.6)

Stack trace of thread 2125:
#0 0x00007f27c85040af pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f27ca87df83 n/a (libtorrent-rasterbar.so.9)
#2 0x00007f27ca87ee68 n/a (libtorrent-rasterbar.so.9)
#3 0x00007f27ca87e75e n/a (libtorrent-rasterbar.so.9)
#4 0x00007f27c84fe484 start_thread (libpthread.so.0)
#5 0x00007f27c799c6dd __clone (libc.so.6)

Stack trace of thread 2127:
#0 0x00007f27c799c6a1 __clone (libc.so.6)
Comment by Bruno Guerreiro (American_Jesus) - Saturday, 25 June 2016, 21:05 GMT
Setting "IPFilter\Enabled=false" in ~/.config/qBittorrent/qBittorrent.conf solves the problem

Forum Post: https://bbs.archlinux.org/viewtopic.php?pid=1637089#p1637089

It's related with IPFilter, same happens with Deluge, having IPFilter enabled breaks the application.
Comment by Samantha McVey (samcv) - Saturday, 25 June 2016, 21:29 GMT
Adding a link to the relevant bug in qbittorrent's bugtracker:
https://github.com/qbittorrent/qBittorrent/issues/5428
Comment by Samantha McVey (samcv) - Thursday, 30 June 2016, 20:40 GMT
Testing and bug is still present in QBittorrent 3.4.5
Edit: Forgot to add that setting IPFilters to false in the qbittorrent config file ~/.config/qBittorrent/qBittorrent.conf will cause it not to crash, it will launch normally.
Comment by hephacheng (hepha) - Monday, 18 July 2016, 10:10 GMT
hello all
If you want to open IPFilters please try to follow suit
https://github.com/qbittorrent/qBittorrent/issues/5519#issuecomment-233246096
Comment by Samantha McVey (samcv) - Wednesday, 20 July 2016, 00:20 GMT
I have posted a patch and new PKGBUILD for libtorrent-rasterbar on this  bug 49861  which has the fix to libtorrent-rasterbar. Please see my post there. Fixing that will fix both that bug and this one.

Loading...