Skip to content

Segmentation fault when installing Python 3.6.15 on Ubuntu 22.04 #2359

@IngoMeyer441

Description

@IngoMeyer441

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 default python-build plugin only. Please refrain from reporting issues of other plugins here.

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 attach trace.log. E.g. if you have a problem with installing Python, run env PYENV_DEBUG=1 pyenv install -v <version> 2>&1 | tee trace.log (note the -v option to pyenv install).

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"

trace.log
python-build.20220509095324.26933.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    third-party: pythonthe problem is in the specific Python version(s)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions