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

Build OTP with --enable-sanitizers fails #7031

Closed
yarisx opened this issue Mar 21, 2023 · 0 comments · Fixed by #7078
Closed

Build OTP with --enable-sanitizers fails #7031

yarisx opened this issue Mar 21, 2023 · 0 comments · Fixed by #7078
Assignees
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM

Comments

@yarisx
Copy link
Contributor

yarisx commented Mar 21, 2023

Describe the bug
OTP fails to build when sanitizers are enabled by passing the "--enable-sanitizers" option to configure script.

To Reproduce
At ERL_TOP:
./configure --enable-sanitizers
make

Expected behavior
OTP is built successfully.

Affected versions
OTP-25.3, OTP-26.

Additional context
On the corresponding page in the documentation (https://www.erlang.org/doc/installation_guide/install#otp_build-vs-configure-make) the "--enable-sanitizers" option is not mentioned, and it is kind of OK, since the text lists "some of the available options". But when enabled the option causes the build to fail because of numerous memory leak reports.

If the build is performed as follows:
./configure --enable-sanitizers=undefined
make
then the build is successful, but reports undefined behaviour in a few but often-used codepaths.

There is a way to build OTP with address sanitizer - "make asan" in ERL_TOP/erts/emulator subdirectory, but there is no corresponding way to build OTP with undefined behavior sanitizer.

It would be better to either remove the option (if it is not supported) or to document it as "developer-only" or to make the build pass when the option is set.

@yarisx yarisx added the bug Issue is reported as a bug label Mar 21, 2023
@rickard-green rickard-green added the team:VM Assigned to OTP team VM label Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants