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: prevent UB on test suite exit. #3555

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

joveeater
Copy link
Collaborator

Summary

SUMMARY: Bugfixes "Remove UB on test suite exit"

Purpose of change

I'm hoping this fixes #3551.

Describe the solution

When the player's activity is set to null it doesn't clean up the activities targets as well. When global deconstruction happens stuff gets cleaned up in a random order. If the target safe_references get cleaned up after the global structures they use it causes UB.

Testing

Can't reproduce this one locally so we'll have to see if the suite here works.

@github-actions github-actions bot added the src changes related to source code. label Nov 4, 2023
@scarf005 scarf005 changed the title Prevent UB on test suite exit. fix: prevent UB on test suite exit. Nov 4, 2023
Copy link
Member

@scarf005 scarf005 left a comment

Choose a reason for hiding this comment

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

will merge after ASAN passes.

@joveeater
Copy link
Collaborator Author

One of the runners seems to be reliably running out of resources. I'll see if it's related to some of the other problems we've found first and come back to this.

@scarf005 scarf005 added this pull request to the merge queue Nov 5, 2023
Merged via the queue into cataclysmbnteam:upload with commit 03cb7f7 Nov 5, 2023
10 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
src changes related to source code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ASAN detected use-after-free in tests cleanup code
2 participants