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

Relax invariants checked by erts_add_taint before initialization #9307

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lexprfuncall
Copy link
Contributor

@lexprfuncall lexprfuncall commented Jan 16, 2025

Debug builds configured with static NIFs are currently not usable since they abort during startup. The abort is caused by a check in erts_add_taint that makes sense once the runtime has started but might not be meaningful before the runtime has been started, notably during static NIF initialization.

This change adds an additional check that allows erts_add_taint to proceed when called during runtime initialization. With this check, a debug with static NIFs can complete the startup process.

Resolves #9306

Debug builds configured with static NIFs are currently not usable
since they abort during startup.  The abort is caused by a check in
erts_add_taint that makes sense once the runtime has started but might
not be meaningful before the runtime has been started, notably during
static NIF initialization.

This change adds an additional check that allows erts_add_taint to
proceed when called during runtime initialization.  With this check,
a debug with static NIFs can complete the startup process.
Copy link
Contributor

github-actions bot commented Jan 16, 2025

CT Test Results

    3 files    141 suites   49m 45s ⏱️
1 598 tests 1 549 ✅ 49 💤 0 ❌
2 307 runs  2 238 ✅ 69 💤 0 ❌

Results for commit 96f5cf5.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

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.

Runtime initialization fails for debug builds configured with static NIFs
1 participant