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

dialyzer: Fix crash when adding multiple PLTs #6854

Merged
merged 1 commit into from
Feb 22, 2023

Conversation

TD5
Copy link
Contributor

@TD5 TD5 commented Feb 13, 2023

The code previously assumed that multiple PLTs would only be used in combination with an analysis, but adding multiple PLTs to another without analysis was not considered.

The existing logic for merging PLTs was used in the context of an analysis, with different data to hand, so here we just validate the merge, then sequentially add each PLT.

Resolves #6850

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2023

CT Test Results

    1 files    11 suites   4m 30s ⏱️
  92 tests   90 ✔️ 2 💤 0
108 runs  106 ✔️ 2 💤 0

Results for commit c2661ef.

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

The code previously assumed that multiple PLTs would only be used in
combination with an analysis, but adding multiple PLTs to another
without analysis was not considered.

The existing logic for merging PLTs was used in the context of an
analysis, with different data to hand, so here we just validate the
merge, then sequentially add each PLT.
@TD5 TD5 force-pushed the add_multiple_plts branch from e13f77a to c2661ef Compare February 13, 2023 14:42
@rickard-green rickard-green added the team:VM Assigned to OTP team VM label Feb 20, 2023
@jhogberg jhogberg added the testing currently being tested, tag is used by OTP internal CI label Feb 20, 2023
@jhogberg
Copy link
Contributor

Thanks for the PR, I've added it to our nightly test runs.

@jhogberg jhogberg merged commit cfc8638 into erlang:master Feb 22, 2023
@jhogberg
Copy link
Contributor

Merged, thanks again for the PR!

@TD5 TD5 deleted the add_multiple_plts branch February 22, 2023 17:25
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 testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Does the --plts Dialyzer option work correctly?
3 participants