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

Using Boost.Iostreams and Bzip2 with link-time optimization can lead to a segmentation fault #135

Open
Bihlerben opened this issue Aug 10, 2021 · 1 comment

Comments

@Bihlerben
Copy link

Configuration: boost 1_176_0 compiled with Mingw-w64 v7 and g++ 10.2 on Windows.

The problem is discussed here: https://stackoverflow.com/questions/68723476/why-does-link-time-optimization-cause-a-segmentation-fault

@rdoeffinger
Copy link
Contributor

Does this happen when building without BZIP2_SOURCE, linking against a prebuilt bzip2?
Bzip2 is fairly old code, it might very well not be compatible with such modern compiler features, or the boost build system might not do things that the bzip2 source needs (e.g. maybe -fno-strict-aliasing is required?).
(I'm afraid I've always thought the BZIP2_SOURCE feature to be a bad idea, because it requires boost to all times be aware of the bzip2 source, its caveats, its build environment requirements etc etc and support it - it's not a feature that is reasonably maintainable, as nice as it may seem)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants