bell-sw / Liberica

Free and 100% open source Progressive Java Runtime for modern Java™ deployments supported by a leading OpenJDK contributor
https://bell-sw.com/pages/libericajdk/
GNU General Public License v2.0
318 stars 29 forks source link

add fontconfig ttf-dejavu crash #93

Open nothing-debug opened 2 years ago

nothing-debug commented 2 years ago

I build my base image with DockerFile:

FROM bellsoft/liberica-openjdk-alpine:11.0.16-x86_64 RUN echo http://mirrors.aliyun.com/alpine/v3.16/main/ > /etc/apk/repositories && \ echo http://mirrors.aliyun.com/alpine/v3.16/community/ >> /etc/apk/repositories && \ apk add alpine-conf && \ /sbin/setup-timezone -z Asia/Shanghai && \ apk del alpine-conf && \ apk add --update font-adobe-100dpi fontconfig ttf-dejavu && fc-cache --force && /usr/glibc/sbin/ldconfig

then I export excel whith org.apache.poi:poi:4.1.2, jvm crashed, with error

[error occurred during error reporting ((null)), id 0xb, SIGSEGV (0xb) at pc=0x00007f140a707cf4]

[error occurred during error reporting (printing fatal error message), id 0xb, SIGSEGV (0xb) at pc=0x00007f140a707cf4]

[error occurred during error reporting (printing type of error), id 0xb, SIGSEGV (0xb) at pc=0x00007f140a707cf4]

[error occurred during error reporting (printing exception/signal name), id 0xb, SIGSEGV (0xb) at pc=0x00007f140a707cf4]

[error occurred during error reporting (printing current thread and pid), id 0xb, SIGSEGV (0xb) at pc=0x00007f140a707cf4]

[error occurred during error reporting (printing error message), id 0xb, SIGSEGV (0xb) at pc=0x00007f140a707cf4]

[error occurred during error reporting (printing Java version string), id 0xb, SIGSEGV (0xb) at pc=0x00007f140a707cf4]

[error occurred during error reporting (printing problematic frame), id 0xb, SIGSEGV (0xb) at pc=0x00007f140a707cf4]

[error occurred during error reporting (printing core file information), id 0xb, SIGSEGV (0xb) at pc=0x00007f140a707cf4]

[error occurred during error reporting (printing bug submit message), id 0xb, SIGSEGV (0xb) at pc=0x00007f140a707cf4]

nothing-debug commented 2 years ago

It seems like a alpine image bug. I resolved it by use alpine:3.12. this may help somebody

wssy001 commented 1 year ago

It seems like a alpine image bug. I resolved it by use alpine:3.12. this may help somebody

so do I. thanks for your issue

voitylov commented 1 year ago

All kinds of wooes are possible with the glibc plug inside Alpine. It would be great if you could try the glibc variant of Liberica Runtime Container based on Alpaquita Linux, which supports both glibc and musl natively:

https://hub.docker.com/r/bellsoft/liberica-runtime-container

Make sure to select proper tags.