Skip to content

sasl: tolerate dead processes during code_change#11346

Open
v0idpwn wants to merge 2 commits into
erlang:masterfrom
v0idpwn:fix/sasl-dead-proc
Open

sasl: tolerate dead processes during code_change#11346
v0idpwn wants to merge 2 commits into
erlang:masterfrom
v0idpwn:fix/sasl-dead-proc

Conversation

@v0idpwn

@v0idpwn v0idpwn commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

If a process exits between suspend and code_change, the release install currently fails with a noproc exit. Since a dead process is not running old code, the process death is safe to ignore. This is consistent with the sys:suspend behaviour which also ignores dying processes.

This patch is coming from a situation I had on a hot code deployment, where an expected sub-tree shut down caused the whole relup to fail. Sample failure:

release_handler:install_release(Vsn="2.9.8" Opts=[]) failed, 
Reason={'EXIT', {noproc, {sys, change_code, [<0.257241978.5>, 'my_proc', 39822361629682753496278469507860562273, []]}}}

Failing code_change still fail the relup, as it goes through the error tuple path.

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

CT Test Results

  2 files   18 suites   7m 54s ⏱️
208 tests 203 ✅ 5 💤 0 ❌
237 runs  232 ✅ 5 💤 0 ❌

Results for commit c37a56c.

♻️ 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

@v0idpwn v0idpwn force-pushed the fix/sasl-dead-proc branch from 26a7e48 to f8b1a12 Compare July 8, 2026 14:15
@v0idpwn v0idpwn changed the title release_handler_1: tolerate dead processes during code_change sasl: tolerate dead processes during code_change Jul 8, 2026
If a process exits between suspend and code_change, the release
install would fail with a noproc exit. Since a dead process is not
running old code, this is safe to ignore.
@v0idpwn v0idpwn force-pushed the fix/sasl-dead-proc branch from f8b1a12 to a2d70d7 Compare July 8, 2026 14:16
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.

1 participant