Skip to content

Conversation

@jbachorik
Copy link
Collaborator

@jbachorik jbachorik commented Nov 20, 2024

What does this PR do?:
Adds a sanity test for the Java version retrieval in the JVMTI agent/library

Motivation:
We want to have the version retrieval covered because it is used for conditionally enabling some parts of the profiler to avoid problems and crashes.

Additional Notes:

How to test the change?:

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.
  • JIRA: PROF-10876

Unsure? Have a question? Request a review!

@github-actions
Copy link

github-actions bot commented Nov 20, 2024

🔧 Report generated by pr-comment-cppcheck

CppCheck Report

Warnings (6)

Style Violations (175)

@github-actions
Copy link

github-actions bot commented Nov 20, 2024

🔧 Report generated by pr-comment-scanbuild

Scan-Build Report

User:runner@fv-az1433-769
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 Nov 20 11:43:18 2024

Bug Summary

Bug TypeQuantityDisplay?
All Bugs6
Logic error
Assigned value is garbage or undefined1
Dereference of null pointer3
Result of operation is garbage or undefined1
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.cppcheckNativeBinding9451
Logic errorDereference of null pointersafeAccess.hload3318
Logic errorDereference of null pointersymbols_linux.hElfParser12932
Logic errorDereference of null pointerflightRecorder.cppflush15048
Logic errorResult of operation is garbage or undefinedvmStructs.cppfind84016

@jbachorik jbachorik marked this pull request as ready for review November 20, 2024 11:29
@jbachorik jbachorik merged commit d8ad9f2 into main Nov 20, 2024
31 checks passed
@github-actions github-actions bot added this to the 1.18.0 milestone Nov 20, 2024
@jbachorik jbachorik deleted the jb/versions branch November 20, 2024 11:53
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.

3 participants