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

Fix beam crash when resetting call_time/memory while tracing #8897

Conversation

sverker
Copy link
Contributor

@sverker sverker commented Oct 3, 2024

Fix #8835.

Resetting counters of call_time or call_memory tracing of a function while it's called by other process could cause the beam VM to crash. This is an old bug that has existed since OTP R16.

Clearing the BpDataCallTrace hashes under the feet of executing
processes could cause crash.

Instead allocate a new cleared BpDataCallTrace
for the staged breakpoint.
into 'sverker/26/erts/trace-bp-hash-reset-bug/erlangGH-8835/OTP-19269'
into sverker/27/erts/trace-bp-hash-reset-bug/erlangGH-8835/OTP-19269
@sverker sverker added team:VM Assigned to OTP team VM fix testing currently being tested, tag is used by OTP internal CI labels Oct 3, 2024
@sverker sverker self-assigned this Oct 3, 2024
Copy link
Contributor

github-actions bot commented Oct 3, 2024

CT Test Results

    3 files    143 suites   49m 41s ⏱️
1 594 tests 1 545 ✅ 49 💤 0 ❌
2 338 runs  2 264 ✅ 74 💤 0 ❌

Results for commit 212d454.

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

after 0 -> loop_aaa_bbb()
end.


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

@sverker sverker linked an issue Oct 3, 2024 that may be closed by this pull request
@sverker sverker merged commit 60ba376 into erlang:maint Oct 8, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

27.1 crash (core dump) while running tprof
2 participants