RFR: 8285828: runtime/execstack/TestCheckJDK.java fails with zipped debug symbols

Jie Fu jiefu at openjdk.java.net
Thu Apr 28 14:43:00 UTC 2022


Hi all,

If we configure and build the jdk with `--with-native-debug-symbols=zipped`, `runtime/execstack/TestCheckJDK.java` fails on Linux.

The failure was caused by the following zipped debug symbols files, which aren't ELF files at all.

~/jdk/build/linux-x86_64-server-release/images/jdk/bin]$ ls *.diz
jar.diz        java.diz     jcmd.diz      jdeprscan.diz  jhsdb.diz   jlink.diz  jpackage.diz    jshell.diz  jstat.diz       rmiregistry.diz
jarsigner.diz  javadoc.diz  jconsole.diz  jdeps.diz      jimage.diz  jmap.diz   jps.diz         jstack.diz  jwebserver.diz  serialver.diz
javac.diz      javap.diz    jdb.diz       jfr.diz        jinfo.diz   jmod.diz   jrunscript.diz  jstatd.diz  keytool.diz


The fix just skips these non-elf `*.diz` files when checking the linking attributes.

Thanks.
Best regards,
Jie

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

Commit messages:
 - 8285828: runtime/execstack/TestCheckJDK.java fails with zipped debug symbols

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

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


More information about the hotspot-runtime-dev mailing list