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

Signals not received when building with link time optimization enabled and using asio as static library #403

Open
ni-tschuett opened this issue Nov 22, 2022 · 1 comment

Comments

@ni-tschuett
Copy link

We are using asio as a static library instead of header only, boost version 1.78. We instantiate a boost::asio::signal_set in the main thread of our application but do not receive any signals when building with link time optimization enabled (using gcc9/10). With making get_signal_state() (signal_set_service.ipp) BOOST_NOINLINE the issue does not occur and signals are again received properly.

@timblechmann
Copy link

the NOINLINE is a compiler barrier here. makes me wonder if there's any missing volatile (especially when meditating about https://stackoverflow.com/a/57679370)

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