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

SEGV with boost-libs-1.79.0 #6889

Closed
yurivict opened this issue May 27, 2022 · 6 comments
Closed

SEGV with boost-libs-1.79.0 #6889

yurivict opened this issue May 27, 2022 · 6 comments
Labels

Comments

@yurivict
Copy link

After upgrading boost-libs from 1.72.0 to 1.79.0 qbittorrent now crashes:

Caught signal: SIGSEGV
Stack trace:
  0x801168bbf <pthread_setschedparam+0x82f> at /lib/libthr.so.3
  0x7ffffffff8a3 <???> at ???
  0x8010ad742 <_ZN10libtorrent14torrent_statusaSEOS0_+0x1992> at /usr/local/lib/libtorrent-rasterbar.so.2.0
  0x8010acd30 <_ZN10libtorrent14torrent_statusaSEOS0_+0xf80> at /usr/local/lib/libtorrent-rasterbar.so.2.0
  0x8010b03b0 <_ZN10libtorrent14torrent_statusaSEOS0_+0x4600> at /usr/local/lib/libtorrent-rasterbar.so.2.0
  0x8010b04ad <_ZN10libtorrent14torrent_statusaSEOS0_+0x46fd> at /usr/local/lib/libtorrent-rasterbar.so.2.0
  0x800d962d7 <_ZNK5boost4asio10io_context19basic_executor_typeINSt3__19allocatorIvEELm0EE7executeINS0_6detail17executor_functionEEEvOT_+0x347> at /usr/local/lib/libtorrent-rasterbar.so.2.0
  0x800d88fd2 <boost_asio_detail_posix_thread_function+0x7b2> at /usr/local/lib/libtorrent-rasterbar.so.2.0
  0x800d88a31 <boost_asio_detail_posix_thread_function+0x211> at /usr/local/lib/libtorrent-rasterbar.so.2.0
  0x800d85aa3 <_ZN10libtorrent14create_torrent17set_creation_dateEl+0x1cb3> at /usr/local/lib/libtorrent-rasterbar.so.2.0
  0x800f73ea0 <_ZN10libtorrent27default_disk_io_constructorERN5boost4asio10io_contextERKNS_18settings_interfaceERNS_8countersE+0x70> at /usr/local/lib/libtorrent-rasterbar.so.2.0

Downstream bug report.

Version: 2.0.8
FreeBSD 13.3

@yurivict yurivict changed the title SEGV with 1.79.0 SEGV with boost-libs-1.79.0 May 27, 2022
@yurivict
Copy link
Author

The latest 2.x code revision doesn't crash when built with -std=c++17.

@yurivict
Copy link
Author

yurivict commented May 28, 2022

Maybe you should just add -std=c++17 and make a new release?

@userdocs
Copy link

The releases are just the source code so no need to make a new release. It would just be docs about building

I think there have already been examples of problems with cxx14 and newer version of boost and libtorrent v2 that using cxx17 has resolved. So maybes it's just better to advise using cxx 17 where possible.

@arvidn
Copy link
Owner

arvidn commented May 28, 2022

it smells like an ABI issue, which could be caused by a number of build flags differing between libtorrent, boost and qbittorrent.

I don't have any issues on Ubuntu. After updating boost, did you also rebuild libtorrent and qbittorrent?

@userdocs
Copy link

userdocs commented May 28, 2022

I think most of the examples were on non debian based systems, like the gentoo, alpine and there was one or two others I think, openbsd maybe.

#6567

#6468 (comment)

Maybe a non gcc issue or something where the standard used is part of the reason why the segfault happens.

This is what I was referencing.

@stale
Copy link

stale bot commented Sep 21, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 21, 2022
@stale stale bot closed this as completed Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants