Skip to content

Conversation

@mathbunnyru
Copy link

Fix: #289
Clarify instructions for using AddressSanitizer with Boost.Context.

Fix: boostorg#289
Clarify instructions for using AddressSanitizer with Boost.Context.

Sanitizers (GCC/Clang) are confused by the stack switches.
The library (and Boost.Context too) is required to be compiled with property (b2 command-line)
`context-impl=ucontext` and compilers santizer options.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

santizer -> sanitizer (typo)
compilers -> compiler (it's 1 compiler at a time)

The library (and Boost.Context too) is required to be compiled with property (b2 command-line)
`context-impl=ucontext` and compilers santizer options.
Users must define `BOOST_USE_ASAN` before including any Boost.Context headers
when linking against Boost binaries.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is technically incorrect because there are no defines "when linking against Boost binaries"

Updated sanitizer documentation to include relevant b2 options.
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

Successfully merging this pull request may close these issues.

document that library not just app must define BOOST_USE_ASAN

1 participant