dacapobench / dacapobench

The DaCapo benchmark suite

Home Page:https://www.dacapobench.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cassandra fails to run on aarch64

caizixian opened this issue · comments

[6.396s][info][exceptions] Exception <a 'java/lang/NoSuchMethodError'{0x00000000ff4eefd0}: 'java.lang.Object java.lang.invoke.DirectMethodHandle$Holder.invokeSpecial(java.lang.Object, java.lang.Object, java.lang.Object, int, int)'> (0x00000000ff4eefd0)
thrown [src/hotspot/share/interpreter/linkResolver.cpp, line 772]
for thread 0x0000ffff9c029d40
[6.432s][info][exceptions] Exception <a 'java/lang/ClassNotFoundException'{0x00000000ff333a30}: sun.nio.ch.FileChannelImpl>
 thrown in C1 compiled method <{method} {0x0000ffff6046f378} 'loadClass' '(Ljava/lang/String;Z)Ljava/lang/Class;' in 'org/dacapo/harness/DacapoClassLoader'>
 at PC0x0000ffff84ad3538 for thread 0x0000ffff9c029d40
[6.449s][info][exceptions] Exception <a 'java/lang/UnsatisfiedLinkError'{0x00000000ff37bf50}: no jnidispatch in java.library.path: /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib>
 thrown in interpreter method <{method} {0x000000020043aca8} 'loadLibrary' '(Ljava/lang/Class;Ljava/lang/String;)Ljdk/internal/loader/NativeLibrary;' in 'java/lang/ClassLoader'>
 at bci 238 for thread 0x0000ffff9c029d40 (main)
[6.449s][info][exceptions] Exception <a 'java/lang/UnsatisfiedLinkError'{0x00000000ff37bf50}: no jnidispatch in java.library.path: /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib>
 thrown in interpreter method <{method} {0x000000020010eaa8} 'loadLibrary0' '(Ljava/lang/Class;Ljava/lang/String;)V' in 'java/lang/Runtime'>
 at bci 53 for thread 0x0000ffff9c029d40 (main)
[6.449s][info][exceptions] Exception <a 'java/lang/UnsatisfiedLinkError'{0x00000000ff37bf50}: no jnidispatch in java.library.path: /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib>
 thrown in interpreter method <{method} {0x000000020001b130} 'loadLibrary' '(Ljava/lang/String;)V' in 'java/lang/System'>
 at bci 7 for thread 0x0000ffff9c029d40 (main)
[6.449s][info][exceptions] Exception <a 'java/lang/UnsatisfiedLinkError'{0x00000000ff37bf50}: no jnidispatch in java.library.path: /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib>
 thrown in interpreter method <{method} {0x0000ffff6124d480} 'loadNativeDispatchLibrary' '()V' in 'com/sun/jna/Native'>
 at bci 527 for thread 0x0000ffff9c029d40 (main)
[6.449s][info][exceptions] Found matching handler for exception of type "java.lang.UnsatisfiedLinkError" in method "loadNativeDispatchLibrary" at BCI: 545
[6.456s][info][exceptions] Exception <a 'java/lang/NoSuchMethodException'{0x00000000ff38cde8}: sun.security.provider.NativePRNG.<init>(java.security.SecureRandomParameters)>
 thrown in C1 compiled method <{method} {0x000000020046c920} 'getConstructor' '([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;' in 'java/lang/Class'>
 at PC0x0000ffff84dd1fc8 for thread 0x0000ffff9c029d40
[6.456s][info][exceptions] Exception <a 'java/lang/NoSuchMethodException'{0x00000000ff38cde8}: sun.security.provider.NativePRNG.<init>(java.security.SecureRandomParameters)>
 thrown in C1 compiled method <{method} {0x0000ffff60148518} 'newInstanceUtil' '(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;' in 'java/security/Provider$Service'>
 at PC0x0000ffff84dab504 for thread 0x0000ffff9c029d40
[6.472s][info][exceptions] Exception <a 'java/lang/NoSuchMethodError'{0x00000000ff3a6770}: fromNative> (0x00000000ff3a6770)
thrown [src/hotspot/share/prims/jni.cpp, line 1072]
for thread 0x0000ffff9c029d40
[6.472s][info][exceptions] Exception <a 'java/lang/UnsatisfiedLinkError'{0x00000000ff3a6ac8}: Can't obtain static method fromNative(Method, Object) from class com.sun.jna.Native> (0x00000000ff3a6ac8)
thrown [src/hotspot/share/prims/jni.cpp, line 539]
for thread 0x0000ffff9c029d40
[6.472s][info][exceptions] Exception <a 'java/lang/UnsatisfiedLinkError'{0x00000000ff3a6ac8}: Can't obtain static method fromNative(Method, Object) from class com.sun.jna.Native>
 thrown in interpreter method <{method} {0x0000ffff6124b520} 'initIDs' '()V' in 'com/sun/jna/Native'>
 at bci 0 for thread 0x0000ffff9c029d40 (main)
[6.472s][info][exceptions] Exception <a 'java/lang/UnsatisfiedLinkError'{0x00000000ff3a6ac8}: Can't obtain static method fromNative(Method, Object) from class com.sun.jna.Native>
 thrown in interpreter method <{method} {0x0000ffff612536a0} '<clinit>' '()V' in 'com/sun/jna/Native'>
 at bci 89 for thread 0x0000ffff9c029d40 (main)
[6.473s][info][exceptions] Exception <a 'java/lang/UnsatisfiedLinkError'{0x00000000ff3a6ac8}> (0x00000000ff3a6ac8)
thrown [src/hotspot/share/oops/instanceKlass.cpp, line 1180]
for thread 0x0000ffff9c029d40
[6.473s][info][exceptions] Exception <a 'java/lang/UnsatisfiedLinkError'{0x00000000ff3a6ac8}: Can't obtain static method fromNative(Method, Object) from class com.sun.jna.Native>
 thrown in interpreter method <{method} {0x0000ffff61245a20} '<clinit>' '()V' in 'com/sun/jna/NativeLibrary'>
 at bci 33 for thread 0x0000ffff9c029d40 (main)
[6.473s][info][exceptions] Exception <a 'java/lang/UnsatisfiedLinkError'{0x00000000ff3a6ac8}> (0x00000000ff3a6ac8)
thrown [src/hotspot/share/oops/instanceKlass.cpp, line 1180]
for thread 0x0000ffff9c029d40
[6.474s][info][exceptions] Exception <a 'java/lang/UnsatisfiedLinkError'{0x00000000ff3a6ac8}: Can't obtain static method fromNative(Method, Object) from class com.sun.jna.Native>
 thrown in interpreter method <{method} {0x0000ffff61240d00} '<clinit>' '()V' in 'org/apache/cassandra/utils/NativeLibraryLinux'>
 at bci 13 for thread 0x0000ffff9c029d40 (main)
[6.474s][info][exceptions] Found matching handler for exception of type "java.lang.UnsatisfiedLinkError" in method "<clinit>" at BCI: 40
[6.478s][info][exceptions] Exception <a 'java/lang/UnsatisfiedLinkError'{0x00000000ff3b94b0}: 'int org.apache.cassandra.utils.NativeLibraryLinux.mlockall(int)'> (0x00000000ff3b94b0)
thrown [src/hotspot/share/prims/nativeLookup.cpp, line 415]
for thread 0x0000ffff9c029d40
[6.479s][info][exceptions] Exception <a 'java/lang/UnsatisfiedLinkError'{0x00000000ff3b94b0}: 'int org.apache.cassandra.utils.NativeLibraryLinux.mlockall(int)'>
 thrown in interpreter method <{method} {0x0000ffff6123bed8} 'mlockall' '(I)I' in 'org/apache/cassandra/utils/NativeLibraryLinux'>
 at bci 0 for thread 0x0000ffff9c029d40 (main)
[6.479s][info][exceptions] Exception <a 'java/lang/UnsatisfiedLinkError'{0x00000000ff3b94b0}: 'int org.apache.cassandra.utils.NativeLibraryLinux.mlockall(int)'>
 thrown in interpreter method <{method} {0x0000ffff61240500} 'callMlockall' '(I)I' in 'org/apache/cassandra/utils/NativeLibraryLinux'>
 at bci 1 for thread 0x0000ffff9c029d40 (main)
[6.479s][info][exceptions] Exception <a 'java/lang/UnsatisfiedLinkError'{0x00000000ff3b94b0}: 'int org.apache.cassandra.utils.NativeLibraryLinux.mlockall(int)'>
 thrown in interpreter method <{method} {0x0000ffff6123d300} 'tryMlockall' '()V' in 'org/apache/cassandra/utils/NativeLibrary'>
 at bci 6 for thread 0x0000ffff9c029d40 (main)
[6.479s][info][exceptions] Found matching handler for exception of type "java.lang.UnsatisfiedLinkError" in method "tryMlockall" at BCI: 29
[6.512s][info][exceptions] Exception <a 'java/lang/NoSuchMethodError'{0x00000000ff239b70}: 'long java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(java.lang.Object)'> (0x00000000ff239b70)
thrown [src/hotspot/share/interpreter/linkResolver.cpp, line 772]
for thread 0x0000ffff9c029d40
[6.516s][info][exceptions] Exception <a 'java/lang/NoSuchMethodException'{0x00000000ff243760}: io.netty.util.concurrent.FastThreadLocalThread.getContextClassLoader()>
 thrown in interpreter method <{method} {0x000000020046c6b8} 'getDeclaredMethod' '(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;' in 'java/lang/Class'>
 at bci 53 for thread 0x0000ffff9c029d40 (main)
[6.516s][info][exceptions] Exception <a 'java/lang/NoSuchMethodException'{0x00000000ff243760}: io.netty.util.concurrent.FastThreadLocalThread.getContextClassLoader()>
 thrown in interpreter method <{method} {0x0000ffff611b73d0} 'run' '()Ljava/lang/Boolean;' in 'java/lang/Thread$1'>
 at bci 18 for thread 0x0000ffff9c029d40 (main)
[6.516s][info][exceptions] Found matching handler for exception of type "java.lang.NoSuchMethodException" in method "run" at BCI: 26
[6.516s][info][exceptions] Exception <a 'java/lang/NoSuchMethodException'{0x00000000ff243e58}: io.netty.util.concurrent.FastThreadLocalThread.setContextClassLoader(java.lang.ClassLoader)>
 thrown in interpreter method <{method} {0x000000020046c6b8} 'getDeclaredMethod' '(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;' in 'java/lang/Class'>
 at bci 53 for thread 0x0000ffff9c029d40 (main)
[6.517s][info][exceptions] Exception <a 'java/lang/NoSuchMethodException'{0x00000000ff243e58}: io.netty.util.concurrent.FastThreadLocalThread.setContextClassLoader(java.lang.ClassLoader)>
 thrown in interpreter method <{method} {0x0000ffff611b73d0} 'run' '()Ljava/lang/Boolean;' in 'java/lang/Thread$1'>
 at bci 41 for thread 0x0000ffff9c029d40 (main)
[6.517s][info][exceptions] Found matching handler for exception of type "java.lang.NoSuchMethodException" in method "run" at BCI: 49
[6.522s][info][exceptions] Exception <a 'java/lang/NoSuchMethodError'{0x00000000ff24ffa0}: 'long java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(java.lang.Object, java.lang.Object, long)'> (0x00000000ff24ffa0)
thrown [src/hotspot/share/interpreter/linkResolver.cpp, line 772]
for thread 0x0000ffff9c029d40
[6.529s][info][exceptions] Exception <a 'java/lang/SecurityException'{0x00000000ff265d80}: Unsafe>
 thrown in interpreter method <{method} {0x0000ffff607db000} 'getUnsafe' '()Lsun/misc/Unsafe;' in 'sun/misc/Unsafe'>
 at bci 23 for thread 0x0000ffff9c029d40 (main)
[6.529s][info][exceptions] Exception <a 'java/lang/SecurityException'{0x00000000ff265d80}: Unsafe>
 thrown in interpreter method <{method} {0x0000ffff612986c8} 'getUnsafe' '()Lsun/misc/Unsafe;' in 'com/codahale/metrics/Striped64'>
 at bci 0 for thread 0x0000ffff9c029d40 (main)
[6.529s][info][exceptions] Found matching handler for exception of type "java.lang.SecurityException" in method "getUnsafe" at BCI: 4
[6.627s][info][exceptions] Exception <a 'java/lang/NoSuchMethodError'{0x00000000ffc64178}: 'java.lang.Object java.lang.invoke.DirectMethodHandle$Holder.invokeSpecial(java.lang.Object, java.lang.Object, int, long)'> (0x00000000ffc64178)
thrown [src/hotspot/share/interpreter/linkResolver.cpp, line 772]
for thread 0x0000ffff9cdf4fc0
[6.634s][info][exceptions] Exception <a 'java/lang/NoSuchMethodError'{0x00000000ffc73170}: 'long java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(java.lang.Object, java.lang.Object, int)'> (0x00000000ffc73170)
thrown [src/hotspot/share/interpreter/linkResolver.cpp, line 772]
for thread 0x0000ffff9cdf4fc0
[6.636s][info][exceptions] Exception <a 'java/lang/NoSuchMethodError'{0x00000000ffc7d470}: 'java.lang.Object java.lang.invoke.DelegatingMethodHandle$Holder.reinvoke_L(java.lang.Object, int, long, java.lang.Object, java.lang.Object, int, java.lang.Object)'> (0x00000000ffc7d470)
thrown [src/hotspot/share/interpreter/linkResolver.cpp, line 772]
for thread 0x0000ffff9cdf4fc0
[7.068s][info][exceptions] Exception <a 'java/lang/NoSuchMethodError'{0x00000000feb1d5a8}: 'long java.lang.invoke.DirectMethodHandle$Holder.invokeStaticInit(java.lang.Object, java.lang.Object)'> (0x00000000feb1d5a8)
thrown [src/hotspot/share/interpreter/linkResolver.cpp, line 772]
for thread 0x0000ffff9cdf4fc0
[7.073s][info][exceptions] Exception <a 'java/lang/NoSuchMethodError'{0x00000000feb294e8}: 'long java.lang.invoke.DirectMethodHandle$Holder.invokeInterface(java.lang.Object, java.lang.Object)'> (0x00000000feb294e8)
thrown [src/hotspot/share/interpreter/linkResolver.cpp, line 772]
for thread 0x0000ffff9cdf4fc0
[7.073s][info][exceptions] Exception <a 'java/lang/IncompatibleClassChangeError'{0x00000000feb2c4e8}: Found class java.lang.Object, but interface was expected> (0x00000000feb2c4e8)
thrown [src/hotspot/share/interpreter/linkResolver.cpp, line 840]
for thread 0x0000ffff9cdf4fc0
[7.136s][info][exceptions] Exception <a 'java/lang/UnsupportedOperationException'{0x00000000ffd483f8}: Unsupported OS/arch, cannot find /linux/aarch64/liblz4-java.so. Please try building from source.>
 thrown in interpreter method <{method} {0x0000ffff6114c3a8} 'load' '()V' in 'net/jpountz/util/Native'>
 at bci 54 for thread 0x0000ffff9c029d40 (main)
[7.136s][info][exceptions] Exception <a 'java/lang/UnsupportedOperationException'{0x00000000ffd483f8}: Unsupported OS/arch, cannot find /linux/aarch64/liblz4-java.so. Please try building from source.>
 thrown in interpreter method <{method} {0x0000ffff6161b398} '<clinit>' '()V' in 'net/jpountz/lz4/LZ4JNI'>
 at bci 7 for thread 0x0000ffff9c029d40 (main)
[7.137s][info][exceptions] Exception <a 'java/lang/ExceptionInInitializerError'{0x00000000ffd493b8}> (0x00000000ffd493b8)
thrown [src/hotspot/share/oops/instanceKlass.cpp, line 1183]
for thread 0x0000ffff9c029d40
[7.137s][info][exceptions] Exception <a 'java/lang/ExceptionInInitializerError'{0x00000000ffd493b8}>
 thrown in interpreter method <{method} {0x0000ffff61617cc0} 'compress' '([BII[BII)I' in 'net/jpountz/lz4/LZ4JNICompressor'>
 at bci 26 for thread 0x0000ffff9c029d40 (main)
[7.137s][info][exceptions] Exception <a 'java/lang/ExceptionInInitializerError'{0x00000000ffd493b8}>
 thrown in interpreter method <{method} {0x0000ffff6114a118} '<init>' '(Ljava/lang/String;)V' in 'net/jpountz/lz4/LZ4Factory'>
 at bci 428 for thread 0x0000ffff9c029d40 (main)
[7.137s][info][exceptions] Exception <a 'java/lang/ExceptionInInitializerError'{0x00000000ffd493b8}>
 thrown in interpreter method <{method} {0x0000ffff611498c8} 'instance' '(Ljava/lang/String;)Lnet/jpountz/lz4/LZ4Factory;' in 'net/jpountz/lz4/LZ4Factory'>
 at bci 5 for thread 0x0000ffff9c029d40 (main)
[7.137s][info][exceptions] Exception <a 'java/lang/ExceptionInInitializerError'{0x00000000ffd493b8}>
 thrown in interpreter method <{method} {0x0000ffff61149980} 'nativeInstance' '()Lnet/jpountz/lz4/LZ4Factory;' in 'net/jpountz/lz4/LZ4Factory'>
 at bci 8 for thread 0x0000ffff9c029d40 (main)
[7.137s][info][exceptions] Exception <a 'java/lang/ExceptionInInitializerError'{0x00000000ffd493b8}>
 thrown in interpreter method <{method} {0x0000ffff6050c6a8} 'execute' '(Lorg/apache/cassandra/config/StartupChecksOptions;)V' in 'org/apache/cassandra/service/StartupChecks$2'>
 at bci 12 for thread 0x0000ffff9c029d40 (main)
[7.137s][info][exceptions] Found matching handler for exception of type "java.lang.ExceptionInInitializerError" in method "execute" at BCI: 19
[7.139s][info][exceptions] Exception <a 'java/lang/ClassNotFoundException'{0x00000000ffd51ae8}: sun/misc/SharedSecrets> (0x00000000ffd51ae8)
thrown [src/hotspot/share/classfile/systemDictionary.cpp, line 312]
for thread 0x0000ffff9c029d40
[7.140s][info][exceptions] Exception <a 'java/lang/ClassNotFoundException'{0x00000000ffd51ae8}: sun/misc/SharedSecrets>
 thrown in C1 compiled method <{method} {0x000000020046f670} 'forName' '(Ljava/lang/String;ZLjava/lang/ClassLoader;Ljava/lang/Class;)Ljava/lang/Class;' in 'java/lang/Class'>
 at PC0x0000ffff84b61228 for thread 0x0000ffff9c029d40
[7.140s][info][exceptions] Exception <a 'java/lang/ClassNotFoundException'{0x00000000ffd51ae8}: sun/misc/SharedSecrets>
 thrown in C1 compiled method <{method} {0x000000020046f6c8} 'forName' '(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;' in 'java/lang/Class'>
 at PC0x0000ffff84b609d0 for thread 0x0000ffff9c029d40
[7.140s][info][exceptions] Exception <a 'java/lang/ClassNotFoundException'{0x00000000ffd51ae8}: sun/misc/SharedSecrets>
 thrown in interpreter method <{method} {0x0000ffff6161dbd0} 'getJLA' '()Ljava/lang/Object;' in 'com/google/common/base/Throwables'>
 at bci 4 for thread 0x0000ffff9c029d40 (main)
[7.140s][info][exceptions] Found matching handler for exception of type "java.lang.ClassNotFoundException" in method "getJLA" at BCI: 32
[7.142s][info][exceptions] Exception <a 'org/apache/cassandra/exceptions/StartupException'{0x00000000ffd56070}: The native library could not be initialized properly. >
 thrown in interpreter method <{method} {0x0000ffff6050f170} 'execute' '(Lorg/apache/cassandra/config/StartupChecksOptions;)V' in 'org/apache/cassandra/service/StartupChecks$7'>
 at bci 28 for thread 0x0000ffff9c029d40 (main)
[7.142s][info][exceptions] Exception <a 'org/apache/cassandra/exceptions/StartupException'{0x00000000ffd56070}: The native library could not be initialized properly. >
 thrown in interpreter method <{method} {0x0000ffff605068b0} 'verify' '(Lorg/apache/cassandra/config/StartupChecksOptions;)V' in 'org/apache/cassandra/service/StartupChecks'>
 at bci 31 for thread 0x0000ffff9c029d40 (main)
[7.142s][info][exceptions] Exception <a 'org/apache/cassandra/exceptions/StartupException'{0x00000000ffd56070}: The native library could not be initialized properly. >
 thrown in interpreter method <{method} {0x0000ffff604a7738} 'runStartupChecks' '()V' in 'org/apache/cassandra/service/CassandraDaemon'>
 at bci 7 for thread 0x0000ffff9c029d40 (main)
[7.142s][info][exceptions] Found matching handler for exception of type "org.apache.cassandra.exceptions.StartupException" in method "runStartupChecks" at BCI: 13

Some relevant log lines

dacapo-23.11-chopin/jar/cassandra has jna-5.13.0.jar and jna-4.0.0.jar.

The 5.13 jar contains com/sun/jna/linux-arm/libjnidispatch.so com/sun/jna/linux-armel/libjnidispatch.so and com/sun/jna/linux-aarch64/libjnidispatch.so.
The aarch64 so seems legit.

com/sun/jna/linux-aarch64/libjnidispatch.so: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, BuildID[sha1]=3b7e0ae74dcab07997de038893dbe5f692dd7665, not stripped

The 4.0 jar only contains com/sun/jna/linux-arm/libjnidispatch.so.

com/sun/jna/linux-arm/libjnidispatch.so: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=180fcfd93a0359ae4e63a39033c377f7850e1e7f, not stripped