Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8277113

build/AbsPathsInImage.java fails with --with-native-debug-symbols=internal

XMLWordPrintable

      $ CONF=linux-x86_64-server-release make clean run-test TEST=build/AbsPathsInImage.java
      ...

      /home/buildbot/worker/test-jdkX-linux/build/src/jdk.jdwp.agent/share/native/libjdwp/transport.c
      /home/buildbot/worker/test-jdkX-linux/build/src/jdk.jdwp.agent/share/native/libjdwp/utf_util.c
      /home/buildbot/worker/test-jdkX-linux/build/src/jdk.jdwp.agent/share/native/libjdwp/util.c
      STDERR:
      java.lang.Exception: Test failed
      at AbsPathsInImage.main(AbsPathsInImage.java:114)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
      at java.base/java.lang.Thread.run(Thread.java:833)

      I believe this is caused by --with-native-debug-symbols=internal in my release builds. With "internal", the debug info is not stripped from the binaries themselves, and looks like test detects those. I'll need to investigate how to approach this.

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: