Skip to content

Check if port exists before calling erts_port_dec_refc in enif_port_command - #11222

Open
lukaszsamson wants to merge 2 commits into
erlang:masterfrom
lukaszsamson:ls-fix-enif_port_command-crash
Open

Check if port exists before calling erts_port_dec_refc in enif_port_command#11222
lukaszsamson wants to merge 2 commits into
erlang:masterfrom
lukaszsamson:ls-fix-enif_port_command-crash

Conversation

@lukaszsamson

Copy link
Copy Markdown
Contributor

Mimic check from enif_is_port_alive
Fixes #11221

…t_command`

Mimic check from `enif_is_port_alive`
Fixes erlang#11221
@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

CT Test Results

    3 files    136 suites   51m 43s ⏱️
1 679 tests 1 623 ✅ 56 💤 0 ❌
2 321 runs  2 247 ✅ 74 💤 0 ❌

Results for commit 10a620f.

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

Comment thread erts/emulator/test/dirty_nif_SUITE.erl Outdated
Co-authored-by: Lukas Backström <garazdawi@gmail.com>
@rickard-green rickard-green added the team:VM Assigned to OTP team VM label Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team:VM Assigned to OTP team VM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VM crash in enif_port_command

4 participants