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

cpu-o3: fix false positive in AddressSanitizer #173

Merged
merged 1 commit into from
Sep 13, 2024
Merged

Conversation

cyyself
Copy link
Member

@cyyself cyyself commented Sep 13, 2024

AddressSanitizer found a new-delete-type-mismatch because of the custom new operator for DynInst.
Adding a custom delete operator for DynInstPtr fixes this issue. It has been fixed the same way in Mozilla:
https://bugzilla.mozilla.org/show_bug.cgi?id=1391500

Change-Id: I0ab4cb6d79cac88069cc2374a1deb499cdb15f02
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/68357
Maintainer: Jason Lowe-Power [email protected]
Reviewed-by: Jason Lowe-Power [email protected]
Tested-by: kokoro [email protected]

AddressSanitizer found a new-delete-type-mismatch because of
the custom new operator for DynInst.
Adding a custom delete operator for DynInstPtr fixes this issue.
It has been fixed the same way in Mozilla:
https://bugzilla.mozilla.org/show_bug.cgi?id=1391500

Change-Id: I0ab4cb6d79cac88069cc2374a1deb499cdb15f02
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/68357
Maintainer: Jason Lowe-Power <[email protected]>
Reviewed-by: Jason Lowe-Power <[email protected]>
Tested-by: kokoro <[email protected]>
@cyyself cyyself merged commit 02bc45a into xs-dev Sep 13, 2024
5 checks passed
@cyyself cyyself deleted the tmp_fix_asan branch September 13, 2024 12:24
@shinezyy
Copy link
Contributor

In convention, we use merge for multi-commit pr, while use squash for single-commit pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants