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
299 stars 28 forks source link

What is the reason libstdc++ is only included in the amd64 image? #173

Open sabretus opened 1 month ago

sabretus commented 1 month ago

Hello,

Is there any specific reason that libstdc++ is only included in the amd64 architecture?

I mean this if section https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjdk-alpine/17/Dockerfile#L93-L103

Thanks

sabretus commented 1 month ago

We are using async-profiler which depends on libstdc++ and for amd64 it works fine but for aarch64 we need to install libstdc++ with apk and it crashes with the following stacktrace:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000e351b38df33c, pid=7, tid=3046
#
# JRE version: OpenJDK Runtime Environment (17.0.11+10) (build 17.0.11+10-LTS)
# Java VM: OpenJDK 64-Bit Server VM (17.0.11+10-LTS, mixed mode, tiered, compressed oops, compressed class ptrs, serial gc, linux-aarch64)
# Problematic frame:
# C  [libstdc++.so.6+0x1eb33c]
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /service/core.7)
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid7.log
#
# If you would like to submit a bug report, please visit:
#   https://bell-sw.com/support
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Profiling started