Environment: * Spring Boot 3.1.5 * org.graalvm.buildtools.native 0.9.28
Detail Messages Below:
> Running creator
[creator] ===> ANALYZING
[creator] Restoring data for SBOM from previous image
[creator] ===> DETECTING
[creator] 6 of 15 buildpacks participating
[creator] paketo-buildpacks/ca-certificates 3.6.3
[creator] paketo-buildpacks/bellsoft-liberica 10.2.6
[creator] paketo-buildpacks/syft 1.32.1
[creator] paketo-buildpacks/executable-jar 6.7.4
[creator] paketo-buildpacks/spring-boot 5.26.1
[creator] paketo-buildpacks/native-image 5.12.1
[creator] ===> RESTORING
[creator] Restoring metadata for "paketo-buildpacks/ca-certificates:helper" from app image
[creator] Restoring metadata for "paketo-buildpacks/bellsoft-liberica:helper" from app image
[creator] Restoring metadata for "paketo-buildpacks/bellsoft-liberica:java-security-properties" from app image
[creator] Restoring metadata for "paketo-buildpacks/bellsoft-liberica:jre" from app image
[creator] Restoring metadata for "paketo-buildpacks/spring-boot:helper" from app image
[creator] Restoring metadata for "paketo-buildpacks/spring-boot:spring-cloud-bindings" from app image
[creator] Restoring metadata for "paketo-buildpacks/spring-boot:web-application-type" from app image
[creator] ===> BUILDING
[creator]
[creator] Paketo Buildpack for CA Certificates 3.6.3
[creator] https://github.com/paketo-buildpacks/ca-certificates
[creator] Launch Helper: Reusing cached layer
[creator]
[creator] Paketo Buildpack for BellSoft Liberica 10.2.6
[creator] https://github.com/paketo-buildpacks/bellsoft-liberica
[creator] Build Configuration:
[creator] $BP_JVM_JLINK_ARGS --no-man-pages --no-header-files --strip-debug --compress=1 configure custom link arguments (--output must be omitted)
[creator] $BP_JVM_JLINK_ENABLED false enables running jlink tool to generate custom JRE
[creator] $BP_JVM_TYPE JRE the JVM type - JDK or JRE
[creator] $BP_JVM_VERSION 17 the Java version
[creator] Launch Configuration:
[creator] $BPL_DEBUG_ENABLED false enables Java remote debugging support
[creator] $BPL_DEBUG_PORT 8000 configure the remote debugging port
[creator] $BPL_DEBUG_SUSPEND false configure whether to suspend execution until a debugger has attached
[creator] $BPL_HEAP_DUMP_PATH write heap dumps on error to this path
[creator] $BPL_JAVA_NMT_ENABLED true enables Java Native Memory Tracking (NMT)
[creator] $BPL_JAVA_NMT_LEVEL summary configure level of NMT, summary or detail
[creator] $BPL_JFR_ARGS configure custom Java Flight Recording (JFR) arguments
[creator] $BPL_JFR_ENABLED false enables Java Flight Recording (JFR)
[creator] $BPL_JMX_ENABLED false enables Java Management Extensions (JMX)
[creator] $BPL_JMX_PORT 5000 configure the JMX port
[creator] $BPL_JVM_HEAD_ROOM 0 the headroom in memory calculation
[creator] $BPL_JVM_LOADED_CLASS_COUNT 35% of classes the number of loaded classes in memory calculation
[creator] $BPL_JVM_THREAD_COUNT 250 the number of threads in memory calculation
[creator] $JAVA_TOOL_OPTIONS the JVM launch flags
[creator] Using Java version 17 extracted from MANIFEST.MF
[creator] BellSoft Liberica NIK 17.0.7: Contributing to layer
[creator] Downloading from https://download.bell-sw.com/vm/23.0.0/bellsoft-liberica-vm-core-openjdk17.0.7+7-23.0.0+1-linux-amd64.tar.gz
[creator] Verifying checksum
[creator] Expanding to /layers/paketo-buildpacks_bellsoft-liberica/native-image-svm
[creator] Adding 137 container CA certificates to JVM truststore
[creator] Writing env.build/JAVA_HOME.override
[creator] Writing env.build/JDK_HOME.override
[creator]
[creator] Paketo Buildpack for Syft 1.32.1
[creator] https://github.com/paketo-buildpacks/syft
[creator] Downloading from https://github.com/anchore/syft/releases/download/v0.84.0/syft_0.84.0_linux_amd64.tar.gz
[creator] Verifying checksum
[creator] Writing env.build/SYFT_CHECK_FOR_APP_UPDATE.default
[creator]
[creator] Paketo Buildpack for Executable JAR 6.7.4
[creator] https://github.com/paketo-buildpacks/executable-jar
[creator] Class Path: Contributing to layer
[creator] Writing env/CLASSPATH.delim
[creator] Writing env/CLASSPATH.prepend
[creator] Process types:
[creator] executable-jar: java org.springframework.boot.loader.JarLauncher (direct)
[creator] task: java org.springframework.boot.loader.JarLauncher (direct)
[creator] web: java org.springframework.boot.loader.JarLauncher (direct)
[creator]
[creator] Paketo Buildpack for Spring Boot 5.26.1
[creator] https://github.com/paketo-buildpacks/spring-boot
[creator] Build Configuration:
[creator] $BP_SPRING_CLOUD_BINDINGS_DISABLED false whether to contribute Spring Boot cloud bindings support
[creator] Launch Configuration:
[creator] $BPL_SPRING_CLOUD_BINDINGS_DISABLED false whether to auto-configure Spring Boot environment properties from bindings
[creator] $BPL_SPRING_CLOUD_BINDINGS_ENABLED true Deprecated - whether to auto-configure Spring Boot environment properties from bindings
[creator] Class Path: Contributing to layer
[creator] Writing env.build/CLASSPATH.append
[creator] Writing env.build/CLASSPATH.delim
[creator] Image labels:
[creator] org.opencontainers.image.title
[creator] org.opencontainers.image.version
[creator] org.springframework.boot.version
[creator]
[creator] Paketo Buildpack for Native Image 5.12.1
[creator] https://github.com/paketo-buildpacks/native-image
[creator] Build Configuration:
[creator] $BP_BINARY_COMPRESSION_METHOD Compression mechanism used to reduce binary size. Options: `none` (default), `upx` or `gzexe`
[creator] $BP_NATIVE_IMAGE true enable native image build
[creator] $BP_NATIVE_IMAGE_BUILD_ARGUMENTS arguments to pass to the native-image command
[creator] $BP_NATIVE_IMAGE_BUILD_ARGUMENTS_FILE a file with arguments to pass to the native-image command
[creator] $BP_NATIVE_IMAGE_BUILT_ARTIFACT the built application artifact explicitly, required if building from a JAR
[creator] Native Image: Contributing to layer
[creator] Executing native-image --no-fallback -H:+StaticExecutableWithDynamicLibC -H:Name=/layers/paketo-buildpacks_native-image/native-image/com.example.Application -cp /workspace:/workspace/BOOT-INF/classes:/workspace/BOOT-INF/lib/spring-cloud-starter-netflix-eureka-server-4.0.3.jar:/workspace/BOOT-INF/lib/spring-cloud-netflix-eureka-server-4.0.3.jar:/workspace/BOOT-INF/lib/spring-cloud-starter-config-4.0.4.jar:/workspace/BOOT-INF/lib/spring-cloud-stream-4.0.4.jar:/workspace/BOOT-INF/lib/spring-integration-jmx-6.1.4.jar:/workspace/BOOT-INF/lib/spring-integration-core-6.1.4.jar:/workspace/BOOT-INF/lib/spring-retry-1.3.4.jar:/workspace/BOOT-INF/lib/eureka-consul-adapter-1.4.0.jar:/workspace/BOOT-INF/lib/archaius-core-0.7.7.jar:/workspace/BOOT-INF/lib/micrometer-registry-prometheus-1.11.5.jar:/workspace/BOOT-INF/lib/spring-boot-devtools-3.1.5.jar:/workspace/BOOT-INF/lib/spring-cloud-starter-bootstrap-4.0.4.jar:/workspace/BOOT-INF/lib/spring-cloud-starter-loadbalancer-4.0.4.jar:/workspace/BOOT-INF/lib/spring-cloud-starter-4.0.4.jar:/workspace/BOOT-INF/lib/spring-cloud-config-client-4.0.4.jar:/workspace/BOOT-INF/lib/spring-cloud-loadbalancer-4.0.4.jar:/workspace/BOOT-INF/lib/spring-cloud-context-4.0.4.jar:/workspace/BOOT-INF/lib/commons-lang3-3.12.0.jar:/workspace/BOOT-INF/lib/micrometer-tracing-bridge-brave-1.1.6.jar:/workspace/BOOT-INF/lib/micrometer-tracing-1.1.6.jar:/workspace/BOOT-INF/lib/brave-instrumentation-servlet-jakarta-5.15.1.jar:/workspace/BOOT-INF/lib/brave-context-slf4j-5.15.1.jar:/workspace/BOOT-INF/lib/brave-instrumentation-http-5.15.1.jar:/workspace/BOOT-INF/lib/brave-propagation-aws-0.23.5.jar:/workspace/BOOT-INF/lib/brave-5.15.1.jar:/workspace/BOOT-INF/lib/zipkin-reporter-brave-2.16.3.jar:/workspace/BOOT-INF/lib/feign-micrometer-12.4.jar:/workspace/BOOT-INF/lib/spring-cloud-commons-4.0.4.jar:/workspace/BOOT-INF/lib/aspectjrt-1.9.20.jar:/workspace/BOOT-INF/lib/spring-webmvc-6.0.13.jar:/workspace/BOOT-INF/lib/spring-web-6.0.13.jar:/workspace/BOOT-INF/lib/spring-boot-actuator-autoconfigure-3.1.5.jar:/workspace/BOOT-INF/lib/micrometer-core-1.11.5.jar:/workspace/BOOT-INF/lib/micrometer-observation-1.11.5.jar:/workspace/BOOT-INF/lib/jaxb-runtime-4.0.3.jar:/workspace/BOOT-INF/lib/spring-cloud-function-context-4.0.5.jar:/workspace/BOOT-INF/lib/jackson-datatype-jsr310-2.15.3.jar:/workspace/BOOT-INF/lib/eureka-core-jersey3-2.0.1.jar:/workspace/BOOT-INF/lib/eureka-core-2.0.1.jar:/workspace/BOOT-INF/lib/jackson-dataformat-xml-2.15.3.jar:/workspace/BOOT-INF/lib/spring-cloud-netflix-eureka-client-4.0.3.jar:/workspace/BOOT-INF/lib/eureka-client-jersey3-2.0.1.jar:/workspace/BOOT-INF/lib/eureka-client-2.0.1.jar:/workspace/BOOT-INF/lib/jackson-annotations-2.15.3.jar:/workspace/BOOT-INF/lib/jackson-module-parameter-names-2.15.3.jar:/workspace/BOOT-INF/lib/jackson-core-2.15.3.jar:/workspace/BOOT-INF/lib/jackson-datatype-jdk8-2.15.3.jar:/workspace/BOOT-INF/lib/jackson-databind-2.15.3.jar:/workspace/BOOT-INF/lib/rxjava-reactive-streams-1.2.1.jar:/workspace/BOOT-INF/lib/jsr305-3.0.1.jar:/workspace/BOOT-INF/lib/commons-configuration-1.10.jar:/workspace/BOOT-INF/lib/httpclient5-5.2.1.jar:/workspace/BOOT-INF/lib/logback-classic-1.4.11.jar:/workspace/BOOT-INF/lib/log4j-to-slf4j-2.20.0.jar:/workspace/BOOT-INF/lib/jul-to-slf4j-2.0.9.jar:/workspace/BOOT-INF/lib/netflix-eventbus-0.3.0.jar:/workspace/BOOT-INF/lib/servo-core-0.12.21.jar:/workspace/BOOT-INF/lib/netflix-infix-0.3.0.jar:/workspace/BOOT-INF/lib/slf4j-api-2.0.9.jar:/workspace/BOOT-INF/lib/guava-19.0.jar:/workspace/BOOT-INF/lib/simpleclient_common-0.16.0.jar:/workspace/BOOT-INF/lib/spring-boot-autoconfigure-3.1.5.jar:/workspace/BOOT-INF/lib/spring-boot-actuator-3.1.5.jar:/workspace/BOOT-INF/lib/spring-boot-3.1.5.jar:/workspace/BOOT-INF/lib/spring-security-crypto-6.1.5.jar:/workspace/BOOT-INF/lib/spring-messaging-6.0.13.jar:/workspace/BOOT-INF/lib/kotlin-stdlib-jdk8-1.8.22.jar:/workspace/BOOT-INF/lib/context-propagation-1.0.6.jar:/workspace/BOOT-INF/lib/aopalliance-1.0.jar:/workspace/BOOT-INF/lib/zipkin-reporter-2.16.3.jar:/workspace/BOOT-INF/lib/feign-core-12.4.jar:/workspace/BOOT-INF/lib/jersey-container-servlet-3.1.3.jar:/workspace/BOOT-INF/lib/jersey-container-servlet-core-3.1.3.jar:/workspace/BOOT-INF/lib/jersey-server-3.1.3.jar:/workspace/BOOT-INF/lib/jersey-apache-connector-3.1.3.jar:/workspace/BOOT-INF/lib/jersey-client-3.1.3.jar:/workspace/BOOT-INF/lib/jersey-hk2-3.1.3.jar:/workspace/BOOT-INF/lib/jersey-common-3.1.3.jar:/workspace/BOOT-INF/lib/hk2-locator-3.0.4.jar:/workspace/BOOT-INF/lib/spring-bridge-3.0.3.jar:/workspace/BOOT-INF/lib/hk2-api-3.0.4.jar:/workspace/BOOT-INF/lib/hk2-utils-3.0.4.jar:/workspace/BOOT-INF/lib/jakarta.annotation-api-2.1.1.jar:/workspace/BOOT-INF/lib/spring-context-support-6.0.13.jar:/workspace/BOOT-INF/lib/spring-context-6.0.13.jar:/workspace/BOOT-INF/lib/spring-aop-6.0.13.jar:/workspace/BOOT-INF/lib/spring-tx-6.0.13.jar:/workspace/BOOT-INF/lib/spring-beans-6.0.13.jar:/workspace/BOOT-INF/lib/spring-expression-6.0.13.jar:/workspace/BOOT-INF/lib/spring-cloud-function-core-4.0.5.jar:/workspace/BOOT-INF/lib/spring-core-6.0.13.jar:/workspace/BOOT-INF/lib/snakeyaml-1.33.jar:/workspace/BOOT-INF/lib/tomcat-embed-websocket-10.1.15.jar:/workspace/BOOT-INF/lib/tomcat-embed-core-10.1.15.jar:/workspace/BOOT-INF/lib/tomcat-embed-el-10.1.15.jar:/workspace/BOOT-INF/lib/micrometer-commons-1.11.5.jar:/workspace/BOOT-INF/lib/HdrHistogram-2.1.12.jar:/workspace/BOOT-INF/lib/LatencyUtils-2.0.3.jar:/workspace/BOOT-INF/lib/spring-security-rsa-1.0.12.RELEASE.jar:/workspace/BOOT-INF/lib/jakarta.inject-api-2.0.1.jar:/workspace/BOOT-INF/lib/evictor-1.0.0.jar:/workspace/BOOT-INF/lib/jaxb-core-4.0.3.jar:/workspace/BOOT-INF/lib/rxjava-1.2.2.jar:/workspace/BOOT-INF/lib/reactor-extra-3.5.1.jar:/workspace/BOOT-INF/lib/reactor-core-3.5.11.jar:/workspace/BOOT-INF/lib/reactive-streams-1.0.4.jar:/workspace/BOOT-INF/lib/commons-lang-2.6.jar:/workspace/BOOT-INF/lib/commons-logging-1.1.1.jar:/workspace/BOOT-INF/lib/simpleclient-0.16.0.jar:/workspace/BOOT-INF/lib/hibernate-validator-8.0.1.Final.jar:/workspace/BOOT-INF/lib/typetools-0.6.2.jar:/workspace/BOOT-INF/lib/kotlin-stdlib-jdk7-1.8.22.jar:/workspace/BOOT-INF/lib/kotlin-stdlib-1.8.22.jar:/workspace/BOOT-INF/lib/zipkin-2.23.2.jar:/workspace/BOOT-INF/lib/spring-jcl-6.0.13.jar:/workspace/BOOT-INF/lib/bcpkix-jdk18on-1.73.jar:/workspace/BOOT-INF/lib/freemarker-2.3.32.jar:/workspace/BOOT-INF/lib/jakarta.ws.rs-api-3.1.0.jar:/workspace/BOOT-INF/lib/jakarta.validation-api-3.0.2.jar:/workspace/BOOT-INF/lib/javassist-3.29.2-GA.jar:/workspace/BOOT-INF/lib/woodstox-core-6.5.1.jar:/workspace/BOOT-INF/lib/stax2-api-4.2.1.jar:/workspace/BOOT-INF/lib/jakarta.xml.bind-api-4.0.1.jar:/workspace/BOOT-INF/lib/angus-activation-2.0.1.jar:/workspace/BOOT-INF/lib/jakarta.activation-api-2.1.2.jar:/workspace/BOOT-INF/lib/txw2-4.0.3.jar:/workspace/BOOT-INF/lib/istack-commons-runtime-4.1.2.jar:/workspace/BOOT-INF/lib/httpcore5-h2-5.2.3.jar:/workspace/BOOT-INF/lib/httpcore5-5.2.3.jar:/workspace/BOOT-INF/lib/simpleclient_tracer_otel-0.16.0.jar:/workspace/BOOT-INF/lib/simpleclient_tracer_otel_agent-0.16.0.jar:/workspace/BOOT-INF/lib/jboss-logging-3.5.3.Final.jar:/workspace/BOOT-INF/lib/classmate-1.5.1.jar:/workspace/BOOT-INF/lib/kotlin-stdlib-common-1.8.22.jar:/workspace/BOOT-INF/lib/annotations-13.0.jar:/workspace/BOOT-INF/lib/logback-core-1.4.11.jar:/workspace/BOOT-INF/lib/log4j-api-2.20.0.jar:/workspace/BOOT-INF/lib/bcutil-jdk18on-1.73.jar:/workspace/BOOT-INF/lib/bcprov-jdk18on-1.73.jar:/workspace/BOOT-INF/lib/xstream-1.4.19.jar:/workspace/BOOT-INF/lib/httpclient-4.5.14.jar:/workspace/BOOT-INF/lib/jettison-1.4.0.jar:/workspace/BOOT-INF/lib/jakarta.servlet-api-6.0.0.jar:/workspace/BOOT-INF/lib/osgi-resource-locator-1.0.3.jar:/workspace/BOOT-INF/lib/aopalliance-repackaged-3.0.4.jar:/workspace/BOOT-INF/lib/simpleclient_tracer_common-0.16.0.jar:/workspace/BOOT-INF/lib/commons-math-2.2.jar:/workspace/BOOT-INF/lib/mxparser-1.2.2.jar:/workspace/BOOT-INF/lib/httpcore-4.4.16.jar:/workspace/BOOT-INF/lib/commons-codec-1.15.jar:/workspace/BOOT-INF/lib/commons-jxpath-1.3.jar:/workspace/BOOT-INF/lib/joda-time-2.3.jar:/workspace/BOOT-INF/lib/antlr-runtime-3.4.jar:/workspace/BOOT-INF/lib/gson-2.10.1.jar:/workspace/BOOT-INF/lib/xmlpull-1.1.3.1.jar:/workspace/BOOT-INF/lib/stringtemplate-3.2.1.jar:/workspace/BOOT-INF/lib/antlr-2.7.7.jar com.example.Application
[creator] Warning: The USE_NATIVE_IMAGE_JAVA_PLATFORM_MODULE_SYSTEM environment variable is deprecated and might be removed in a future release. Please refer to the GraalVM release notes.
[creator] #
[creator] # A fatal error has been detected by the Java Runtime Environment:
[creator] #
[creator] # SIGSEGV (0xb) at pc=0x00007ffffe0e9bf1, pid=192, tid=217
[creator] #
[creator] # JRE version: OpenJDK Runtime Environment Liberica-NIK-23.0.0-1 (17.0.7+7) (build 17.0.7+7-LTS)
[creator] # Java VM: OpenJDK 64-Bit Server VM Liberica-NIK-23.0.0-1 (17.0.7+7-LTS, mixed mode, tiered, jvmci, compressed oops, compressed class ptrs, parallel gc, linux-amd64)
[creator] # Problematic frame:
[creator] # V[thread 214 also had an error]
[creator] [libjvm.so+0x59bbf1] AccessInternal::PostRuntimeDispatch<CardTableBarrierSet::AccessBarrier<594020ul, CardTableBarrierSet>, (AccessInternal::BarrierType)2, 594020ul>::oop_access_barrier(void*)+0x1
[creator] #
[creator] # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
[creator] #
[creator] # An error report file with more information is saved as:
[creator] # /layers/paketo-buildpacks_native-image/native-image/hs_err_pid192.log
[creator] [thread 218 also had an error]
[creator] [thread 216 also had an error]
[creator] [thread 215 also had an error]
[creator] #
[creator] # If you would like to submit a bug report, please visit:
[creator] # https://bell-sw.com/support
[creator] #
[creator] Error: Image build request for 'com.example.Application' (pid: 192, path: /layers/paketo-buildpacks_native-image/native-image) failed with exit status 134
[creator] unable to invoke layer creator
[creator] unable to contribute native-image layer
[creator] error running build
[creator] exit status 134
[creator] ERROR: failed to build: exit status 1
> Task :bootBuildImage FAILED
If a more detailed configuration is needed, please comment.
Comment From: philwebb
I'm afraid this looks like either a JDK or buildpack issue and probably won't be something we can fix in Spring Boot itself. Have you been able to replicate the problem by building your project directly without using buildpacks? Do you have a minimal reproducer project that you can share?
Comment From: kworkbee
Hello @philwebb, You mean I can try to build the image myself by configuring Dockerfile or other methods without using Buildpack (bootBuildImage task), for confirming that the issue occurred from JDK / Buildpack?
Comment From: mhalbritter
You don't even have to use a Dockerfile, you can use Maven or Gradle directly, see this documentation.
Comment From: kworkbee
@mhalbritter nativeCompile task appears to be successful. But bootBuildImage task still fails with same situation (that I described above).
(Just in case, I tried it on the CLI without using IntelliJ IDEA, but it's the same.)
Comment From: wilkinsona
Shouldn't this be raised with Bellsoft rather than here? From the error message:
[creator] # If you would like to submit a bug report, please visit:
[creator] # https://bell-sw.com/support
Comment From: kworkbee
@philwebb @wilkinsona I've created a new project via start.spring.io and checked that the problem is still occurring, so it could be a Buildpack issue as you mentioned.
Comment From: mhalbritter
Shouldn't this be raised with Bellsoft rather than here? From the error message:
Yes, I agree. This doesn't look like something Spring Boot can fix.
Comment From: kworkbee
Thank you for looking at it together. I'll ask this issue to Paketo Buildpacks first and close it.
Comment From: kworkbee
It's happening even in the newly created project, so I think everyone will be affected, so I'll leave a link to the related issue just in case.
https://github.com/paketo-buildpacks/native-image/issues/297
Comment From: scottfrederick
I've created a new project via start.spring.io
@kworkbee When creating a Spring Boot 3.1 project, be sure to update the builder in the build configuration so you're getting the latest buildpacks. See this announcement for the details: https://spring.io/blog/2023/09/22/paketo-buildpacks-bionic-end-of-support.