RFR: 8261702: ClhsdbFindPC can fail due to PointerFinder incorrectly thinking an address is in a .so

Chris Plummer cjplummer at openjdk.java.net
Sat Feb 13 19:10:50 UTC 2021


See bug description for details. The fix is simple and just a matter of moving some code to avoid incorrectly thinking an address is in a .so when it is in some other area of VM memory that occurs just after the last .so.

-------------

Commit messages:
 - Check if addr is in DSO last to avoid finding addr in DSO when it is not due to DSO.size() returning too large of a value.

Changes: https://git.openjdk.java.net/jdk/pull/2562/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2562&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8261702
  Stats: 24 lines in 1 file changed: 13 ins; 11 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2562.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2562/head:pull/2562

PR: https://git.openjdk.java.net/jdk/pull/2562


More information about the serviceability-dev mailing list