Symptom
When attempting to run a custom java application you encounter the error:
Error relocating /usr/lib/jvm/default-jvm/jre/lib/libsapcrypto.so: __strncpy_chk: symbol not found] with root cause"
java.lang.UnsatisfiedLinkError: /usr/lib/jvm/default-jvm/jre/lib/libsapcrypto.so: Error relocating /usr/lib/jvm/default-jvm/jre/lib/libsapcrypto.so: __strncpy_chk: symbol not found
javax.servlet.ServletException: java.lang.UnsatisfiedLinkError: /opt/java/openjdk/jre/lib/ext/libsapcrypto.so: Error relocating /opt/java/openjdk/jre/lib/ext/libsapcrypto.so: __strncpy_chk: symbol not found org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:657)
Or similar as the error can change slightly depending on the JVM being used
This error is most commonly found when trying to use a docker image, or deploying to AWS or Azure.
Read more...
Environment
- Any Linux install that uses the MUSL version of libc (Alpine Linux commonly uses this version)
Product
Keywords
musl, strncpy, strncpy_chk, UnsatisfiedLinkError, relocation, libsapcrypto.so , KBA , BI-DEV-JAV , BI Software Development Kits (SDKs) - Java , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview