https://mail.openjdk.org/pipermail/leyden-dev/2025-March/001758.html
===
I just had a crash booting up JRuby with a stale JSA file on a build of 23+Valhalla I happened to have.
The dump is here:
https://gist.github.com/headius/911b66eac8d0cb8ef7b9f2ff8d9f4133
It ran fine the second time, but I'm not sure if it updated the jsa or not (we run with AutoCreateSharedArchive to generate the jsa if it does not
exist).
===
# SIGBUS (0xa) at pc=0x0000000103e8e604, pid=4379, tid=35331
#
# JRE version: OpenJDK Runtime Environment (23.0+1) (build 23-valhalla+1-90)
# Java VM: OpenJDK 64-Bit Server VM (23-valhalla+1-90, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Problematic frame:
# V [libjvm.dylib+0x9ce604] SystemDictionaryShared::ArchiveInfo::lookup_lambda_proxy_class(LambdaProxyClassKey*)+0x5c
[...]
V [libjvm.dylib+0x9ce604] SystemDictionaryShared::ArchiveInfo::lookup_lambda_proxy_class(LambdaProxyClassKey*)+0x5c
V [libjvm.dylib+0x9ce4f0] SystemDictionaryShared::get_shared_lambda_proxy_class(InstanceKlass*, Symbol*, Symbol*, Symbol*, Method*, Symbol*)+0x168
V [libjvm.dylib+0x5d3ffc] JVM_LookupLambdaProxyClassFromArchive+0x4b0
[...]
v ~StubRoutines::call_stub 0x0000000113e1c154
j java.lang.System$LoggerFinder.accessProvider()Ljava/lang/System$LoggerFinder;+8 java.base@23-valhalla
j java.lang.System$LoggerFinder.getLoggerFinder()Ljava/lang/System$LoggerFinder;+15 java.base@23-valhalla
j jdk.internal.logger.LazyLoggers.accessLoggerFinder()Ljava/lang/System$LoggerFinder;+16 java.base@23-valhalla
j jdk.internal.logger.LazyLoggers.getLoggerFromFinder(Ljava/lang/String;Ljava/lang/Module;)Ljava/lang/System$Logger;+8 java.base@23-valhalla
j jdk.internal.logger.LazyLoggers.getLazyLogger(Ljava/lang/String;Ljava/lang/Module;)Ljava/lang/System$Logger;+20 java.base@23-valhalla
j jdk.internal.logger.LazyLoggers.getLogger(Ljava/lang/String;Ljava/lang/Module;)Ljava/lang/System$Logger;+9 java.base@23-valhalla
j java.lang.System.getLogger(Ljava/lang/String;)Ljava/lang/System$Logger;+29 java.base@23-valhalla
j sun.management.jmxremote.ConnectorBootstrap.<clinit>()V+9 jdk.management.agent@23-valhalla
===
I just had a crash booting up JRuby with a stale JSA file on a build of 23+Valhalla I happened to have.
The dump is here:
https://gist.github.com/headius/911b66eac8d0cb8ef7b9f2ff8d9f4133
It ran fine the second time, but I'm not sure if it updated the jsa or not (we run with AutoCreateSharedArchive to generate the jsa if it does not
exist).
===
# SIGBUS (0xa) at pc=0x0000000103e8e604, pid=4379, tid=35331
#
# JRE version: OpenJDK Runtime Environment (23.0+1) (build 23-valhalla+1-90)
# Java VM: OpenJDK 64-Bit Server VM (23-valhalla+1-90, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Problematic frame:
# V [libjvm.dylib+0x9ce604] SystemDictionaryShared::ArchiveInfo::lookup_lambda_proxy_class(LambdaProxyClassKey*)+0x5c
[...]
V [libjvm.dylib+0x9ce604] SystemDictionaryShared::ArchiveInfo::lookup_lambda_proxy_class(LambdaProxyClassKey*)+0x5c
V [libjvm.dylib+0x9ce4f0] SystemDictionaryShared::get_shared_lambda_proxy_class(InstanceKlass*, Symbol*, Symbol*, Symbol*, Method*, Symbol*)+0x168
V [libjvm.dylib+0x5d3ffc] JVM_LookupLambdaProxyClassFromArchive+0x4b0
[...]
v ~StubRoutines::call_stub 0x0000000113e1c154
j java.lang.System$LoggerFinder.accessProvider()Ljava/lang/System$LoggerFinder;+8 java.base@23-valhalla
j java.lang.System$LoggerFinder.getLoggerFinder()Ljava/lang/System$LoggerFinder;+15 java.base@23-valhalla
j jdk.internal.logger.LazyLoggers.accessLoggerFinder()Ljava/lang/System$LoggerFinder;+16 java.base@23-valhalla
j jdk.internal.logger.LazyLoggers.getLoggerFromFinder(Ljava/lang/String;Ljava/lang/Module;)Ljava/lang/System$Logger;+8 java.base@23-valhalla
j jdk.internal.logger.LazyLoggers.getLazyLogger(Ljava/lang/String;Ljava/lang/Module;)Ljava/lang/System$Logger;+20 java.base@23-valhalla
j jdk.internal.logger.LazyLoggers.getLogger(Ljava/lang/String;Ljava/lang/Module;)Ljava/lang/System$Logger;+9 java.base@23-valhalla
j java.lang.System.getLogger(Ljava/lang/String;)Ljava/lang/System$Logger;+29 java.base@23-valhalla
j sun.management.jmxremote.ConnectorBootstrap.<clinit>()V+9 jdk.management.agent@23-valhalla