We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross-posted to StackOverflow and Ubuntu bug reporter.
When calculating the exponential of a negative number in python 3.6 with the Ubuntu 18.04 Docker image (ppcle64), I receive a segfault.
python3 -c "import math; math.exp(-1)" qemu: uncaught target signal 11 (Segmentation fault) - core dumped Segmentation fault
I am running this in Docker for Mac. Here are the steps to reproduce the error.
docker run --rm -it --platform linux/ppc64le ubuntu:18.04 apt-get update -qq && apt-get install -y -qq python3 python3 -c "import math; print(math.exp(0))" # 1.0 python3 -c "import math; print(math.exp(-0))" # 1.0 python3 -c "import math; print(math.exp(1))" # 2.718281828459045 python3 -c "import math; print(math.exp(-1))"
This error does not happen when using the debian:10 or alpine images. It also does not happen on a real ppc64le machine:
debian:10
alpine
[jakubk@service0002 ~]$ uname -m ppc64le [jakubk@service0002 ~]$ python3 -c "import math; print(math.exp(-1))" 0.36787944117144233
Here is the output of docker version on my machine:
docker version
Client: Docker Engine - Community Version: 19.03.8 API version: 1.40 Go version: go1.12.17 Git commit: afacb8b Built: Wed Mar 11 01:21:11 2020 OS/Arch: darwin/amd64 Experimental: true Server: Docker Engine - Community Engine: Version: 19.03.8 API version: 1.40 (minimum version 1.12) Go version: go1.12.17 Git commit: afacb8b Built: Wed Mar 11 01:29:16 2020 OS/Arch: linux/amd64 Experimental: true containerd: Version: v1.2.13 GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429 runc: Version: 1.0.0-rc10 GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd docker-init: Version: 0.18.0 GitCommit: fec3683
Could this be a bug in Docker's qemu?
The text was updated successfully, but these errors were encountered:
This seems to work fine on latest qemu both on Intel and arm hosts so closing.
Sorry, something went wrong.
No branches or pull requests
Cross-posted to StackOverflow and Ubuntu bug reporter.
When calculating the exponential of a negative number in python 3.6 with the Ubuntu 18.04 Docker image (ppcle64), I receive a segfault.
I am running this in Docker for Mac. Here are the steps to reproduce the error.
This error does not happen when using the
debian:10
oralpine
images. It also does not happen on a real ppc64le machine:Here is the output of
docker version
on my machine:Could this be a bug in Docker's qemu?
The text was updated successfully, but these errors were encountered: