The image built by ./gradlew bootBuildImage
shows the error messages below.
This error seems to be related by the releases of docker.io/paketobuildpacks/builder:base which is pushed 3 days ago.
(NOTE: Java 11 (with -d javaVersion=11
) works)
$ docker run -it --rm demo:0.0.1-SNAPSHOT
Setting Active Processor Count to 8
Calculating JVM memory based on 1079680K available memory
Calculated JVM Memory Configuration: -XX:MaxDirectMemorySize=10M -Xmx699488K -XX:MaxMetaspaceSize=72991K -XX:ReservedCodeCacheSize=240M -Xss1M (Total Memory: 1079680K, Thread Count: 50, Loaded Class Count: 10473, Headroom: 0%)
Enabling Java Native Memory Tracking
Adding 128 container CA certificates to JVM truststore
Spring Cloud Bindings Enabled
Picked up JAVA_TOOL_OPTIONS: -Djava.security.properties=/layers/paketo-buildpacks_bellsoft-liberica/java-security-properties/java-security.properties -XX:+ExitOnOutOfMemoryError -XX:ActiveProcessorCount=8 -XX:MaxDirectMemorySize=10M -Xmx699488K -XX:MaxMetaspaceSize=72991K -XX:ReservedCodeCacheSize=240M -Xss1M -XX:+UnlockDiagnosticVMOptions -XX:NativeMemoryTracking=summary -XX:+PrintNMTStatistics -Dorg.springframework.cloud.bindings.boot.enable=true
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f85eba562f7, pid=1, tid=0x00007f85ecbbe700
#
# JRE version: (8.0_302-b08) (build )
# Java VM: OpenJDK 64-Bit Server VM (25.302-b08 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0xb2a2f7] VirtualMemoryTracker::add_reserved_region(unsigned char*, unsigned long, NativeCallStack const&, MemoryType, bool)+0x77
#
# 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:
# /workspace/hs_err_pid1.log
#
# If you would like to submit a bug report, please visit:
# https://bell-sw.com/support
#
[error occurred during error reporting , id 0xb]
Reproduce
$ curl -G https://start.spring.io/starter.tgz -d javaVersion=8 -d type=gradle-project | tar -xzvf -
$ ./gradlew bootBuildImage
$ docker run -it --rm demo:0.0.1-SNAPSHOT
Comment From: emesday
To avoid crash, use 0.1.174-base
as (Kotlin DSL)
tasks.getByName<BootBuildImage>("bootBuildImage") {
...
builder = "paketobuildpacks/builder:0.1.174-base"
...
}
Both 0.1.175-base
and 0.1.176-base
(which is the base
) shows the above errors.
Comment From: philwebb
Duplicates #28140