Closed userdocs closed 3 years ago
btw this has been discussed before:
https://github.com/arvidn/libtorrent/issues/4625
https://github.com/qbittorrent/qBittorrent/issues/11882
it happens with current dependencies (boost 1.62 > 1.74 openssl 1.1.0 > 1.1.1 and so on) or system libs so think we should not focus on that part.
All i can say for certain is dht + debian9 breaks something.
gdb
(gdb) run
Starting program: /root/qbittorrent-build/completed/qbittorrent-nox
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff604f700 (LWP 6397)]
[New Thread 0x7ffff584e700 (LWP 6398)]
[New Thread 0x7ffff504d700 (LWP 6399)]
[New Thread 0x7ffff484c700 (LWP 6400)]
[New Thread 0x7fffe7909700 (LWP 6401)]
[New Thread 0x7fffe7108700 (LWP 6402)]
[New Thread 0x7fffe6907700 (LWP 6403)]
******** Information ********
To control qBittorrent, access the Web UI at http://localhost:8080
The Web UI administrator username is: admin
The Web UI administrator password is still the default one: adminadmin
This is a security risk, please consider changing your password from program preferences.
Thread 3 "qbittorrent-nox" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff584e700 (LWP 6398)]
0x0000555555a46212 in libtorrent::dht::traversal_algorithm::add_entry(libtorrent::digest32<160l> const&, boost::asio::ip::basic_endpoint<boost::asio::ip::udp> const&, libtorrent::flags::bitfield_flag<unsigned char, libtorrent::dht::observer_flags_tag, void>) ()
Is this where it all starts?
@arvidn it turns out, after much testing and confusing, this is specific to the vps provider i used to build it and maybe other very particular circumstances - https://github.com/arvidn/libtorrent/issues/4625
So this is a real issue with some hardware relationship that is not currently understood but it is not an issue in the sense this problem occurs at all times.
We can close this issue if you feel it's not your problem, but if you have any insight or questions as to why this would only happen with debian 9 and certain conditions (linode vps all types or armv7) i will be happy to provide any info you need.
Please provide the following information
https://gist.githubusercontent.com/userdocs/88e99752d39defad236caffae870f575/raw/9db7281e484a905d4bc416c91dd737a5f4c19420/stretch.nox.sh
I can build qbittorrent 4.3.1 against libtorrent (qt and libtorrent statically linked into qbit) with this outcome when the host os is Debian 9 amd64
The problem?
dht-on
is set in the libtorrent build command.Examples:
Note, you need the libs installed which you can get with the script
WORKS: DHT is off using
b2
flagdht=off
https://github.com/userdocs/filehosting/raw/master/qbittorrent-nox-nodht
Note: Beware, this will work in a debian 9 docker where the host os is NOT Debian 9.
FAIL (host os / non docker): DHT is on using
b2
flagdht=on
or defaults to on if absent.https://github.com/userdocs/filehosting/raw/master/qbittorrent-nox-plusdht
conclusion
There is a specific probelm with the dht module and the host os being debian 9.
Can you help identify the cause?