Hello! I’m using docker to deploy pyhton program, TestPy.so is a dynamic library
my test py:
from thirdParty import TestPy
x: int = 1
y: int = 2
print(f"{x} / {y} = ", TestPy.div1(x, y))
It runs ok in ubuntu20.04:
But when I deploying in docker, it terminaled with " *** stack smashing detected *** "
This is my Dockerfile
FROM python
WORKDIR /app
COPY . /app/
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/app/thirdParty
ENTRYPOINT ["python3.9"]
CMD ["test.py"]
How can I solve it?