You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java: Fix async-profiler compatibility on CentOS 6 (#453)
This PR fixes compatibility with CentOS 6. When we switched to build on CentOS 7, we didn't pass the -static-libstdc++ flag, and at the point when we fixed that regression, we didn't test for CentOS 6 support, which broke because -static-libstdc++ pulls in some symbols which require newer glibc.
This PR avoids -static-libstdc++ on glibc; it's required for musl-based because musl-based JVMs aren't always dependent on libstdc++; and we've never seen that with glibc.
Additionally, this PR adds a test for final dependency resolving compatibility on CentOS 6.
Also included is a cherry pick of async-profiler/async-profiler@b8c8db4, which prevents async-profiler from crashing if it is re-loaded after a previous load has failed.
RUN if ldd /libasyncProfiler.so 2>&1 | grep -q "not found" ; then echo "libasyncProfiler.so is not compatible with minimum CentOS!"; ldd /libasyncProfiler.so; exit 1; fi
73
+
67
74
# async-profiler musl
68
75
FROM alpine${AP_BUILDER_ALPINE} AS async-profiler-builder-musl
0 commit comments