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

tools/launcher/RunpathTest.java checks wrong RPATH on aarch32

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8
    • tools
    • None

      Test tools/launcher/RunpathTest.java determines the RPATH to check using the getJreArch() method (https://github.com/openjdk/aarch32-port-jdk8u/blob/fe35578af8d59f80ec21548ea83b9ca109721de1/jdk/test/tools/launcher/TestHelper.java#L244) which in turns for aarch32 uses the System os.arch property value.

      os.arch on aarch32 is "arm", but the built jre image has a library RPATH of aarch32, hence RunPathTest fails:

      ###TestError###: string <.*R(UN)?PATH.*\$ORIGIN/../lib/arm.*> not found
      ++++Begin Test Info++++
      Test Status: FAIL
      ++++Test Environment++++
        PATH=/bin:/usr/bin:/usr/sbin
        DISPLAY=:0
        CLASSPATH=/ssd/jenkins/workspace/Grinder/openjdkbinary/j2sdk-image/lib/tools.jar:/ssd/jenkins/workspace/Grinder/jvmtest/openjdk/jtreg/lib/javatest.jar:/ssd/jenkins/workspace/Grinder/jvmtest/openjdk/jtreg/lib/jtreg.jar
        HOME=/home/jenkins
      ++++Test Output++++
        
        Dynamic section at offset 0xee8 contains 30 entries:
          Tag Type Name/Value
         0x00000001 (NEEDED) Shared library: [libatomic.so.1]
         0x00000001 (NEEDED) Shared library: [libpthread.so.0]
         0x00000001 (NEEDED) Shared library: [libjli.so]
         0x00000001 (NEEDED) Shared library: [libdl.so.2]
         0x00000001 (NEEDED) Shared library: [libc.so.6]
         0x0000000e (SONAME) Library soname: [lib.so]
         0x0000000f (RPATH) Library rpath: [$ORIGIN/../lib/aarch32/jli:$ORIGIN/../lib/aarch32]


            Unassigned Unassigned
            aleonard Andrew Leonard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: