Skip to content

Issues running on Java 8 and aarch64 #230

@andrewserff

Description

@andrewserff

I'm having a very weird issue which I think I've narrowed down to something to do with the thymeleaf layout dialect. When running our webapp on Java 8 (Zulu 8.66.0.15-CA-macos-aarch64) on an M1 (aarch64) Mac, when we try to load a page, it is crashing the JVM with the following error:

=============== DEBUG MESSAGE: illegal bytecode sequence - method not verified ================

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x0000000102435354, pid=75488, tid=0x0000000000009803
#
# JRE version: OpenJDK Runtime Environment (Zulu 8.66.0.15-CA-macos-aarch64) (8.0_352-b08) (build 1.8.0_352-b08)
# Java VM: OpenJDK 64-Bit Server VM (25.352-b08 mixed mode bsd-aarch64 compressed oops)
# Problematic frame:
# j  org.codehaus.groovy.runtime.callsite.AbstractCallSite.<init>(Lorg/codehaus/groovy/runtime/callsite/CallSite;)V+0
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/.../hs_err_pid75488.log
#
# If you would like to submit a bug report, please visit:
#   http://www.azul.com/support/
#

The reason I think it's related to thymeleaf-layout-dialect is looking in the hs-err-pid...log I see the following:

Internal exceptions (10 events):
Event: 21.491 Thread 0x0000000147971000 Exception <a 'java/lang/ClassNotFoundException': nz/net/ultraq/thymeleaf/layoutdialect/decorators/DecorateProcessorBeanInfo> (0x000000071c895a98) thrown at [/Users/tester/jenkins/workspace/zulu-platform-build/zulu-src.git/hotspot/src/share/vm/classfile/sy
Event: 21.492 Thread 0x0000000147971000 Exception <a 'java/lang/ClassNotFoundException': org/thymeleaf/processor/element/AbstractAttributeModelProcessorBeanInfo> (0x000000071c8c44f8) thrown at [/Users/tester/jenkins/workspace/zulu-platform-build/zulu-src.git/hotspot/src/share/vm/classfile/syste
Event: 21.492 Thread 0x0000000147971000 Exception <a 'java/lang/ClassNotFoundException': org/thymeleaf/processor/element/AbstractElementModelProcessorBeanInfo> (0x000000071c8f29c8) thrown at [/Users/tester/jenkins/workspace/zulu-platform-build/zulu-src.git/hotspot/src/share/vm/classfile/systemD
Event: 21.492 Thread 0x0000000147971000 Exception <a 'java/lang/ClassNotFoundException': org/thymeleaf/processor/element/AbstractElementModelProcessorCustomizer> (0x000000071c9217c8) thrown at [/Users/tester/jenkins/workspace/zulu-platform-build/zulu-src.git/hotspot/src/share/vm/classfile/syste
Event: 21.493 Thread 0x0000000147971000 Exception <a 'java/lang/ClassNotFoundException': org/thymeleaf/processor/element/AbstractAttributeModelProcessorCustomizer> (0x000000071c9556f8) thrown at [/Users/tester/jenkins/workspace/zulu-platform-build/zulu-src.git/hotspot/src/share/vm/classfile/sys
Event: 21.493 Thread 0x0000000147971000 Exception <a 'java/lang/ClassNotFoundException': nz/net/ultraq/thymeleaf/layoutdialect/decorators/DecorateProcessorCustomizer> (0x000000071c988630) thrown at [/Users/tester/jenkins/workspace/zulu-platform-build/zulu-src.git/hotspot/src/share/vm/classfile/
Event: 21.494 Thread 0x0000000147971000 Exception <a 'java/lang/ClassNotFoundException': nz/net/ultraq/thymeleaf/layoutdialect/includes/IncludeProcessorBeanInfo> (0x000000071c9f5848) thrown at [/Users/tester/jenkins/workspace/zulu-platform-build/zulu-src.git/hotspot/src/share/vm/classfile/syste
Event: 21.495 Thread 0x0000000147971000 Exception <a 'java/lang/ClassNotFoundException': nz/net/ultraq/thymeleaf/layoutdialect/includes/IncludeProcessorCustomizer> (0x000000071ca24b30) thrown at [/Users/tester/jenkins/workspace/zulu-platform-build/zulu-src.git/hotspot/src/share/vm/classfile/sys
Event: 21.496 Thread 0x0000000147971000 Exception <a 'java/lang/ClassNotFoundException': org/slf4j/LoggerFactoryBeanInfo> (0x000000071ca752d8) thrown at [/Users/tester/jenkins/workspace/zulu-platform-build/zulu-src.git/hotspot/src/share/vm/classfile/systemDictionary.cpp, line 220]
Event: 21.496 Thread 0x0000000147971000 Exception <a 'java/lang/ClassNotFoundException': org/slf4j/LoggerFactoryCustomizer> (0x000000071ca920e8) thrown at [/Users/tester/jenkins/workspace/zulu-platform-build/zulu-src.git/hotspot/src/share/vm/classfile/systemDictionary.cpp, line 220]

This all started happening with our upgrade to Spring Boot 2.7.x. I have tried upgrading all the thymeleaf dependencies to 3.1.0 (although does layoutdialect work with 3.1.0 yet?). I've also tried to make sure we are using Groovy 4.x as well (which I wasn't before), but that doesn't seem to help either. Those classes don't seem to exist any where so I can only assume they are generated by groovy?

This doesn't seem to happen on x86 arch, only on the M1. Other pieces of Spring (REST controllers) seem to work fine. Do you have any idea of what could be going on here?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions