You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: