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

Crash dump viewer: ignore allocator type from blocks size keys #8532

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

gomoripeti
Copy link
Contributor

When gathering info about the allocators (particularly the summaries), crashdump viewer filters "interesting allocator info". However recent crash dumps also contain allocator type in the key so for example "mbcs blocks[sys_alloc] size" did not match the expected "mbcs blocks size". This resulted in "blocks size" always showing "N/A" on the "Allocator Summary" page. This commit removes the part in square brackets when summing blocks size values for each allocator type.

Also the first column is made wider to fit the longer keys on the per allocator instance pages.

This PR can be considered just a bug report. My solution here is just a random quick fix and there might be a better one.

Copy link
Contributor

github-actions bot commented May 30, 2024

CT Test Results

  2 files   15 suites   14m 44s ⏱️
158 tests 156 ✅ 2 💤 0 ❌
175 runs  173 ✅ 2 💤 0 ❌

Results for commit a5bdb2d.

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

@rickard-green rickard-green added the team:VM Assigned to OTP team VM label Jun 3, 2024
@bjorng bjorng changed the base branch from master to maint October 30, 2024 13:28
@bjorng
Copy link
Contributor

bjorng commented Oct 30, 2024

Thanks for the pull request.

I found two problems:

  • The test case does not fail when the bug is present.
  • The fix does not fix the bug.

I've pushed a fixup commit with a suggestion for how to fix both of these problems. Can you check that my changes make sense and if so, please squash the commits.

I also changed the base to maint to allow this bug fix to be included in Erlang/OTP 27.2.

@gomoripeti gomoripeti force-pushed the crashdump_viewer_allocators branch from 444d868 to 4a9143b Compare October 31, 2024 19:08
@gomoripeti
Copy link
Contributor Author

Those problems you mention are quite fundamental for a PR :) thanks for addressing them. squashed and rebased.

(I have no excuse for the test case, but I thought I used something like the patch for viewing crash dumps back in May)

@bjorng bjorng added fix testing currently being tested, tag is used by OTP internal CI labels Nov 1, 2024
@bjorng
Copy link
Contributor

bjorng commented Nov 1, 2024

Thanks! Added to our daily builds.

@bjorng
Copy link
Contributor

bjorng commented Nov 11, 2024

There were some failures in our daily builds. I've pushed a fixup commit to eliminate those failures. If you again squash the commits, this PR is ready to be merged.

When gathering info about the allocators (particularly the summaries),
crashdump viewer filters "interesting allocator info". However recent
crash dumps also contain allocator type in the key so for example
"mbcs blocks[sys_alloc] size" did not match the expected "mbcs blocks
size". This resulted in "blocks size" always showing "N/A" on the
"Allocator Summary" page. This commit removes the part in square
brackets when summing blocks size values for each allocator type.

Also the first column is made wider to fit the longer keys on the per
allocator instance pages.
@gomoripeti gomoripeti force-pushed the crashdump_viewer_allocators branch from 78fefcf to a5bdb2d Compare November 11, 2024 08:59
@gomoripeti
Copy link
Contributor Author

thank you very much, I squashed and rebased.

@bjorng bjorng merged commit 20244a6 into erlang:maint Nov 11, 2024
20 checks passed
@gomoripeti gomoripeti deleted the crashdump_viewer_allocators branch November 11, 2024 15:20
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.

3 participants