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 some asan checks and violations #132

Merged
merged 4 commits into from
Sep 24, 2024
Merged

Fix some asan checks and violations #132

merged 4 commits into from
Sep 24, 2024

Conversation

jbachorik
Copy link
Collaborator

@jbachorik jbachorik commented Sep 18, 2024

What does this PR do?:
It is adding fixes and exclusions for issues I noticed while running tests with asan

Motivation:
Addressing asan reported issues.

Additional Notes:
Added also change to the GH action because it was failing.
Also, modified the wallclock related tests to be retriable.

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.

Unsure? Have a question? Request a review!

Copy link

github-actions bot commented Sep 18, 2024

🔧 Report generated by pr-comment-scanbuild

Scan-Build Report

User:runner@fv-az770-644
Working Directory:/home/runner/work/java-profiler/java-profiler/ddprof-lib/src/test/make
Command Line:make -j4 clean all
Clang Version:Ubuntu clang version 14.0.0-1ubuntu1.1
Date:Wed Sep 18 12:11:07 2024

Bug Summary

Bug TypeQuantityDisplay?
All Bugs5
Logic error
Assigned value is garbage or undefined1
Dereference of null pointer3
Unused code
Dead nested assignment1

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length
Logic errorAssigned value is garbage or undefineddwarf.cppparseInstructions24420
Unused codeDead nested assignmentvmStructs.cppcheckNativeBinding8791
Logic errorDereference of null pointersafeAccess.hload3318
Logic errorDereference of null pointersymbols_linux.hElfParser12932
Logic errorDereference of null pointerflightRecorder.cppflush15048

Copy link

github-actions bot commented Sep 18, 2024

🔧 Report generated by pr-comment-cppcheck

CppCheck Report

Errors (1)

Warnings (7)

Style Violations (160)

@jbachorik jbachorik changed the title Exclude asan checks from safe loads Fix some asan checks and violations Sep 18, 2024
@jbachorik jbachorik marked this pull request as ready for review September 18, 2024 13:42
@jbachorik jbachorik merged commit c291308 into main Sep 24, 2024
54 checks passed
@jbachorik jbachorik deleted the jb/asan_safeload branch September 24, 2024 10:30
@github-actions github-actions bot added this to the 1.16.0 milestone Sep 24, 2024
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.

1 participant