-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
third-party: pythonthe problem is in the specific Python version(s)the problem is in the specific Python version(s)
Description
Too many issues will kill our team's development velocity, drastically.
Make sure you have checked all steps below.
Prerequisite
- Make sure your problem is not listed in the common build problems.
- Make sure no duplicated issue has already been reported in the pyenv issues. You should look for closed issues, too.
- Make sure you are not asking us to help solving your specific issue.
- GitHub issues is opened mainly for development purposes. If you want to ask someone to help solving your problem, go to some community site like Gitter, StackOverflow, etc.
- Make sure your problem is not derived from packaging (e.g. Homebrew).
- Please refer to the package documentation for the installation issues, etc.
- Make sure your problem is not derived from plugins.
- This repository is maintaining
pyenv
and the defaultpython-build
plugin only. Please refrain from reporting issues of other plugins here.
- This repository is maintaining
Description
- Platform information (e.g. Ubuntu Linux 16.04): Ubuntu Linux 22.04
- OS architecture (e.g. amd64): amd64
- pyenv version: latest master (commit df5ecfc)
- Python version: 3.6.15
- C Compiler information (e.g. gcc 7.3): 11.2.0
- Please attach the debug trace of the failing command as a gist:
- Run
env PYENV_DEBUG=1 <faulty command> 2>&1 | tee trace.log
and attachtrace.log
. E.g. if you have a problem with installing Python, runenv PYENV_DEBUG=1 pyenv install -v <version> 2>&1 | tee trace.log
(note the-v
option topyenv install
).
- Run
Thanks for the very useful pyenv project. 🙂
Installing Python 3.6.15 on Ubuntu 22.04 causes a segmentation fault at the moment:
if test "xupgrade" != "xno" ; then \
case upgrade in \
upgrade) ensurepip="--upgrade" ;; \
install|*) ensurepip="" ;; \
esac; \
./python -E -m ensurepip \
$ensurepip --root=/ ; \
fi
Segmentation fault (core dumped)
I attached trace.log
as requested above and the log output of the build itself. The failing build can be reproduced in a fresh Ubuntu 22.04 Docker container with the following Bash script:
#!/bin/bash
PYENV_ROOT="/usr/local/pyenv"
apt-get update && \
apt-get install -y --no-install-recommends build-essential \
ca-certificates \
curl \
gawk \
git \
libbz2-dev \
libffi-dev \
liblzma-dev \
libncursesw5-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
zlib1g-dev && \
curl -o "/tmp/pyenv-master.tar.gz" -L "https://github.com/pyenv/pyenv/archive/master.tar.gz" && \
tar -C /tmp/ -xvf "/tmp/pyenv-master.tar.gz" && \
mv "/tmp/pyenv-master" "${PYENV_ROOT}" && \
"${PYENV_ROOT}/bin/pyenv" install "3.6.15"
native-api, MarioHdpz, BenjaminLudwigSAP, shimachao, L-M-Sherlock and 1 more
Metadata
Metadata
Assignees
Labels
third-party: pythonthe problem is in the specific Python version(s)the problem is in the specific Python version(s)