mamba icon indicating copy to clipboard operation
mamba copied to clipboard

micromamba 2.8.1 (latest) segfaults installing findpython-0.7.1 (pyh332efcf_0) from a conda-lock v1 lockfile — regression possibly introduced in 2.7.0

Open swainn opened this issue 4 months ago • 1 comments

Troubleshooting docs

  • [x] My problem is not solved in the Troubleshooting docs

Anaconda default channels

  • [x] I do NOT use the Anaconda default channels (pkgs/* etc.)

How did you install Mamba?

Micromamba

Search tried in issue tracker

segfault, segfault lockfile, segmentation fault create, crash linking, findpython segfault, segfault linking

Latest version of Mamba

  • [x] My problem is not solved with the latest version

Tried in Conda?

I have this problem with Conda as well, without using Mamba

Describe your issue

With the latest release (2.8.1), micromamba create -y -n test -f conda-lock.yml segfaults (exit 139) at the end of installing findpython-0.7.1-pyh332efcf_0 from a conda-lock v1 lockfile:

Transaction starting
Linking findpython-0.7.1-pyh332efcf_0
warning  libmamba Can't compile pyc: Python not found
Segmentation fault (core dumped)

We first hit this in CI with a 245-package production lockfile and delta-debugged it down: a lockfile containing only the single findpython entry reproduces the crash. The crash is deterministic — every run, warm or empty package cache.

Bisecting releases shows the regression was introduced in 2.7.0:

micromamba Result (identical lockfile and container)
2.6.1-0 success (exit 0)
2.6.2-1 success (exit 0)
2.7.0-0 segfault (exit 139)
2.8.1-0 (latest) segfault (exit 139)

A -vvv run with 2.8.1 shows all 27 files hard-link successfully and all lock files are released before the crash — the segfault happens in the post-link phase, right after the Can't compile pyc warning:

debug    libmamba 27 files linked
warning  libmamba Can't compile pyc: Python not found
debug    libmamba Unlocking '/root/.local/share/mamba/envs/test/conda-meta'
trace    libmamba Removing file '/root/.local/share/mamba/envs/test/conda-meta/conda-meta.lock'
debug    libmamba Unlocking '/root/.local/share/mamba/pkgs'
trace    libmamba Removing file '/root/.local/share/mamba/pkgs/pkgs.lock'
debug    libmamba Unlocking '/root/.mamba/pkgs'
trace    libmamba Removing file '/root/.mamba/pkgs/pkgs.lock'
Segmentation fault

Two possibly relevant details: findpython is a pyh* noarch-python package, and the crash also occurs when python and all core libs ARE installed alongside it (our full production lockfile includes python 3.10) — so the missing-python pyc warning is a marker of the code path, not the sole trigger.

How to reproduce

Save the minimal lockfile below as minimal-findpython-lock.yml, then:

docker run --rm --platform linux/amd64 \
  -v "$PWD/minimal-findpython-lock.yml:/tmp/conda-lock.yml:ro" \
  debian:bookworm-slim bash -c '
    apt-get update -qq && apt-get install -yqq curl ca-certificates >/dev/null
    curl -fsSL https://github.com/mamba-org/micromamba-releases/releases/download/2.8.1-0/micromamba-linux-64 \
      -o /usr/local/bin/micromamba && chmod +x /usr/local/bin/micromamba
    micromamba --version
    micromamba create -y -n test -f /tmp/conda-lock.yml
    echo EXIT_CODE=$?'
# => "warning libmamba Can't compile pyc: Python not found" then Segmentation fault, EXIT_CODE=139
# Same command with 2.6.1-0 or 2.6.2-1 => EXIT_CODE=0; with 2.7.0-0 => 139

Minimal lockfile (conda-lock v1):

version: 1
metadata:
  content_hash:
    linux-64: 75f7379f531f53004ea7396c6b1d4436e8eab950532876adc69a1df3a1849e5a
  channels:
  - url: conda-forge
    used_env_vars: []
  platforms:
  - linux-64
  sources:
  - environment.yml
package:
- name: findpython
  version: 0.7.1
  manager: conda
  platform: linux-64
  dependencies:
    packaging: '>=20'
    platformdirs: '>=4.3.6'
    python: '>=3.10'
  url: https://conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0.conda
  hash:
    md5: 492691ec4bdfbf95f11e7374079f5f29
    sha256: 1e0fcd94988d6124b63da0f0633f6f910b9fc6c158ee9dd8059ccbfc22c6a6d2
  category: main
  optional: false

What we ruled out

  • Not OOM: exit 139 (SIGSEGV), not 137; same container succeeds on 2.6.x.
  • Not extraction parallelism: MAMBA_EXTRACT_THREADS=1 makes no difference.
  • Not cache corruption: reproduces with a completely empty package cache.
  • Not environment-specific: first observed under GitLab CI/kaniko, reproduced identically under plain docker run on debian:bookworm-slim.
  • Not the surrounding packages: crash is identical with the full 245-package lockfile and with the single-package one.
  • Troubleshooting-doc remedies: micromamba config set use_lockfiles False and G_SLICE=always-malloc both still segfault; the remaining documented items don't apply to a standalone static micromamba on Linux.

Environment

  • Linux x86_64 (debian:bookworm-slim container, linux/amd64)
  • Official static micromamba-linux-64 binaries from micromamba-releases
  • Lockfile generated by conda-lock (v1 YAML format)

mamba info / micromamba info

libmamba version : 2.8.1
     micromamba version : 2.8.1
           curl version : libcurl/8.20.0 OpenSSL/3.5.6 zlib/1.3.2 zstd/1.5.7 libssh2/1.11.1 nghttp2/1.68.1 mit-krb5/1.22.2
     libarchive version : libarchive 3.8.7 zlib/1.3.2 bz2lib/1.0.8 libzstd/1.5.7 libb2/bundled
       envs directories : /root/.local/share/mamba/envs
          package cache : /root/.local/share/mamba/pkgs
                          /root/.mamba/pkgs
            environment : base (not found)
           env location : /root/.local/share/mamba
      user config files : /root/.mambarc
 populated config files : 
       virtual packages : __unix=0=0
                          __linux=6.12.76=0
                          __glibc=2.36=0
                          __archspec=1=x86_64_v3
               channels : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
       base environment : /root/.local/share/mamba
               platform : linux-64

Logs

libmamba version : 2.8.1
     micromamba version : 2.8.1
           curl version : libcurl/8.20.0 OpenSSL/3.5.6 zlib/1.3.2 zstd/1.5.7 libssh2/1.11.1 nghttp2/1.68.1 mit-krb5/1.22.2
     libarchive version : libarchive 3.8.7 zlib/1.3.2 bz2lib/1.0.8 libzstd/1.5.7 libb2/bundled
       envs directories : /root/.local/share/mamba/envs
          package cache : /root/.local/share/mamba/pkgs
                          /root/.mamba/pkgs
            environment : base (not found)
           env location : /root/.local/share/mamba
      user config files : /root/.mambarc
 populated config files : 
       virtual packages : __unix=0=0
                          __linux=6.12.76=0
                          __glibc=2.36=0
                          __archspec=1=x86_64_v3
               channels : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
       base environment : /root/.local/share/mamba
               platform : linux-64
debug    libmamba Loading configuration
trace    libmamba Compute configurable 'create_base'
trace    libmamba Compute configurable 'no_env'
trace    libmamba Compute configurable 'no_rc'
trace    libmamba Compute configurable 'rc_files'
trace    libmamba Compute configurable 'root_prefix'
trace    libmamba Get RC files configuration from locations up to HomeDir
trace    libmamba Configuration not found at '/root/.mambarc'
trace    libmamba Configuration not found at '/root/.mamba/mambarc.d'
trace    libmamba Configuration not found at '/root/.mamba/mambarc'
trace    libmamba Configuration not found at '/root/.mamba/.mambarc'
trace    libmamba Configuration not found at '/root/.config/mamba/mambarc.d'
trace    libmamba Configuration not found at '/root/.config/mamba/mambarc'
trace    libmamba Configuration not found at '/root/.config/mamba/.mambarc'
trace    libmamba Configuration not found at '/root/.condarc'
trace    libmamba Configuration not found at '/root/.conda/condarc.d'
trace    libmamba Configuration not found at '/root/.conda/condarc'
trace    libmamba Configuration not found at '/root/.conda/.condarc'
trace    libmamba Configuration not found at '/root/.config/conda/condarc.d'
trace    libmamba Configuration not found at '/root/.config/conda/condarc'
trace    libmamba Configuration not found at '/root/.config/conda/.condarc'
trace    libmamba Configuration not found at '/root/.local/share/mamba/.mambarc'
trace    libmamba Configuration not found at '/root/.local/share/mamba/condarc.d'
trace    libmamba Configuration not found at '/root/.local/share/mamba/condarc'
trace    libmamba Configuration not found at '/root/.local/share/mamba/.condarc'
trace    libmamba Configuration not found at '/var/lib/conda/.mambarc'
trace    libmamba Configuration not found at '/var/lib/conda/condarc.d/'
trace    libmamba Configuration not found at '/var/lib/conda/condarc'
trace    libmamba Configuration not found at '/var/lib/conda/.condarc'
trace    libmamba Configuration not found at '/etc/conda/.mambarc'
trace    libmamba Configuration not found at '/etc/conda/condarc.d/'
trace    libmamba Configuration not found at '/etc/conda/condarc'
trace    libmamba Configuration not found at '/etc/conda/.condarc'
trace    libmamba Update configurable 'no_env'
trace    libmamba Compute configurable 'envs_dirs'
trace    libmamba Compute configurable 'file_specs'
debug    libmamba File spec Lockfile: /tmp/conda-lock.yml
trace    libmamba Compute configurable 'spec_file_env_name'
trace    libmamba Compute configurable 'env_name'
trace    libmamba Compute configurable 'use_default_prefix_fallback'
trace    libmamba Compute configurable 'use_root_prefix_fallback'
trace    libmamba Compute configurable 'use_target_prefix_fallback'
trace    libmamba Compute configurable 'target_prefix'
trace    libmamba Get RC files configuration from locations up to TargetPrefix
trace    libmamba Configuration not found at '/root/.local/share/mamba/envs/test/.mambarc'
trace    libmamba Configuration not found at '/root/.local/share/mamba/envs/test/condarc.d'
trace    libmamba Configuration not found at '/root/.local/share/mamba/envs/test/condarc'
trace    libmamba Configuration not found at '/root/.local/share/mamba/envs/test/.condarc'
trace    libmamba Configuration not found at '/root/.mambarc'
trace    libmamba Configuration not found at '/root/.mamba/mambarc.d'
trace    libmamba Configuration not found at '/root/.mamba/mambarc'
trace    libmamba Configuration not found at '/root/.mamba/.mambarc'
trace    libmamba Configuration not found at '/root/.config/mamba/mambarc.d'
trace    libmamba Configuration not found at '/root/.config/mamba/mambarc'
trace    libmamba Configuration not found at '/root/.config/mamba/.mambarc'
trace    libmamba Configuration not found at '/root/.condarc'
trace    libmamba Configuration not found at '/root/.conda/condarc.d'
trace    libmamba Configuration not found at '/root/.conda/condarc'
trace    libmamba Configuration not found at '/root/.conda/.condarc'
trace    libmamba Configuration not found at '/root/.config/conda/condarc.d'
trace    libmamba Configuration not found at '/root/.config/conda/condarc'
trace    libmamba Configuration not found at '/root/.config/conda/.condarc'
trace    libmamba Configuration not found at '/root/.local/share/mamba/.mambarc'
trace    libmamba Configuration not found at '/root/.local/share/mamba/condarc.d'
trace    libmamba Configuration not found at '/root/.local/share/mamba/condarc'
trace    libmamba Configuration not found at '/root/.local/share/mamba/.condarc'
trace    libmamba Configuration not found at '/var/lib/conda/.mambarc'
trace    libmamba Configuration not found at '/var/lib/conda/condarc.d/'
trace    libmamba Configuration not found at '/var/lib/conda/condarc'
trace    libmamba Configuration not found at '/var/lib/conda/.condarc'
trace    libmamba Configuration not found at '/etc/conda/.mambarc'
trace    libmamba Configuration not found at '/etc/conda/condarc.d/'
trace    libmamba Configuration not found at '/etc/conda/condarc'
trace    libmamba Configuration not found at '/etc/conda/.condarc'
trace    libmamba Update configurable 'no_env'
trace    libmamba Compute configurable 'relocate_prefix'
trace    libmamba Compute configurable 'target_prefix_checks'
trace    libmamba Compute configurable 'pkgs_dirs'
trace    libmamba Compute configurable 'platform'
trace    libmamba Compute configurable 'spec_file_env_vars'
trace    libmamba Compute configurable 'clone'
trace    libmamba Compute configurable 'specs'
trace    libmamba Compute configurable 'others_pkg_mgrs_specs'
trace    libmamba Compute configurable 'experimental'
trace    libmamba Compute configurable 'experimental_repodata_parsing'
trace    libmamba Compute configurable 'experimental_matchspec_parsing'
trace    libmamba Compute configurable 'debug'
trace    libmamba Compute configurable 'override_channels_enabled'
trace    libmamba Compute configurable 'override_channels'
trace    libmamba Compute configurable 'channels'
trace    libmamba Compute configurable 'channel_alias'
trace    libmamba Compute configurable 'default_channels'
trace    libmamba Compute configurable 'custom_channels'
trace    libmamba Compute configurable 'custom_multichannels'
trace    libmamba Compute configurable 'mirrored_channels'
trace    libmamba Compute configurable 'repodata_use_zst'
trace    libmamba Compute configurable 'repodata_has_zst'
trace    libmamba Compute configurable 'use_sharded_repodata'
trace    libmamba Compute configurable 'repodata_shards_ttl'
trace    libmamba Compute configurable 'repodata_shards_threads'
trace    libmamba Compute configurable 'cacert_path'
trace    libmamba Compute configurable 'local_repodata_ttl'
trace    libmamba Compute configurable 'offline'
trace    libmamba Compute configurable 'ssl_no_revoke'
trace    libmamba Compute configurable 'ssl_verify'
trace    libmamba Compute configurable 'proxy_servers'
trace    libmamba Compute configurable 'remote_connect_timeout_secs'
trace    libmamba Compute configurable 'remote_backoff_factor'
trace    libmamba Compute configurable 'remote_max_retries'
trace    libmamba Compute configurable 'no_channel_priority'
trace    libmamba Compute configurable 'strict_channel_priority'
trace    libmamba Compute configurable 'channel_priority'
trace    libmamba Compute configurable 'explicit_install'
trace    libmamba Compute configurable 'no_pin'
trace    libmamba Compute configurable 'no_py_pin'
trace    libmamba Compute configurable 'add_pip_as_python_dependency'
trace    libmamba Compute configurable 'prefix_data_interoperability'
trace    libmamba Compute configurable 'pinned_packages'
trace    libmamba Compute configurable 'freeze_installed'
trace    libmamba Compute configurable 'no_deps'
trace    libmamba Compute configurable 'only_deps'
trace    libmamba Compute configurable 'force_reinstall'
trace    libmamba Compute configurable 'allow_uninstall'
trace    libmamba Compute configurable 'allow_downgrade'
trace    libmamba Compute configurable 'order_solver_request'
trace    libmamba Compute configurable 'categories'
trace    libmamba Compute configurable 'retry_clean_cache'
trace    libmamba Compute configurable 'download_threads'
trace    libmamba Compute configurable 'allow_softlinks'
trace    libmamba Compute configurable 'always_copy'
trace    libmamba Compute configurable 'always_softlink'
trace    libmamba Compute configurable 'show_anaconda_channel_warnings'
trace    libmamba Compute configurable 'shortcuts'
trace    libmamba Compute configurable 'safety_checks'
trace    libmamba Compute configurable 'extra_safety_checks'
trace    libmamba Compute configurable 'verify_artifacts'
trace    libmamba Compute configurable 'trusted_channels'
trace    libmamba Compute configurable 'lock_timeout'
trace    libmamba Compute configurable 'use_lockfiles'
trace    libmamba Compute configurable 'compile_pyc'
trace    libmamba Compute configurable 'use_uv'
trace    libmamba Compute configurable 'always_yes'
trace    libmamba Compute configurable 'auto_activate_base'
trace    libmamba Compute configurable 'dry_run'
trace    libmamba Compute configurable 'download_only'
trace    libmamba Compute configurable 'print_config_only'
trace    libmamba Compute configurable 'print_context_only'
trace    libmamba Compute configurable 'json'
trace    libmamba Compute configurable 'verbose'
trace    libmamba Compute configurable 'log_level'
trace    libmamba Compute configurable 'log_backtrace'
trace    libmamba Compute configurable 'log_pattern'
trace    libmamba Compute configurable 'changeps1'
trace    libmamba Compute configurable 'shell_completion'
trace    libmamba Compute configurable 'env_prompt'
trace    libmamba Compute configurable 'show_all_configs'
trace    libmamba Compute configurable 'show_all_rc_configs'
trace    libmamba Compute configurable 'show_config_descriptions'
trace    libmamba Compute configurable 'show_config_groups'
trace    libmamba Compute configurable 'show_config_long_descriptions'
trace    libmamba Compute configurable 'show_config_sources'
trace    libmamba Compute configurable 'show_config_values'
trace    libmamba Compute configurable 'quiet'
trace    libmamba Compute configurable 'override_rc_files'
trace    libmamba Compute configurable 'shell_type'
trace    libmamba Compute configurable 'prefix_or_name'
trace    libmamba Compute configurable 'shell_stack'
trace    libmamba Compute configurable 'list_regex'
trace    libmamba Compute configurable 'full_name'
trace    libmamba Compute configurable 'no_pip'
trace    libmamba Compute configurable 'reverse'
trace    libmamba Compute configurable 'explicit'
trace    libmamba Compute configurable 'md5'
trace    libmamba Compute configurable 'sha256'
trace    libmamba Compute configurable 'canonical'
trace    libmamba Compute configurable 'export'
trace    libmamba Compute configurable 'revisions'
trace    libmamba Compute configurable 'clean_all'
trace    libmamba Compute configurable 'clean_index_cache'
trace    libmamba Compute configurable 'clean_packages'
trace    libmamba Compute configurable 'clean_tarballs'
trace    libmamba Compute configurable 'clean_locks'
trace    libmamba Compute configurable 'clean_trash'
trace    libmamba Compute configurable 'clean_force_pkgs_dirs'
trace    libmamba Compute configurable 'config_set_system_path'
trace    libmamba Compute configurable 'config_set_env_path'
trace    libmamba Compute configurable 'config_set_file_path'
trace    libmamba Compute configurable 'config_set_sequence_spec'
trace    libmamba Compute configurable 'remove_key'
trace    libmamba Compute configurable 'remove'
trace    libmamba Compute configurable 'set_value'
trace    libmamba Compute configurable 'get_value'
trace    libmamba Compute configurable 'print_licenses'
trace    libmamba Compute configurable 'base'
trace    libmamba Compute configurable 'environments'
trace    libmamba Compute configurable 'constructor_prefix'
trace    libmamba Compute configurable 'constructor_extract_conda_pkgs'
trace    libmamba Compute configurable 'constructor_extract_tarball'
debug    libmamba 136 configurables computed
Empty environment created at prefix: /root/.local/share/mamba/envs/test
debug    libmamba Attempt to create package cache directory '/root/.local/share/mamba/pkgs'
debug    libmamba Attempt to create package cache directory '/root/.mamba/pkgs'
info     libmamba Loading site packages
debug    libmamba `pip` and `uv` not found
debug    libmamba Loading virtual packages
debug    libmamba Loading distribution virtual packages
debug    libmamba Loading CUDA virtual package
debug    libmamba CUDA version file not found: /usr/local/cuda/version.json
debug    libmamba Trying to find CUDA version by running `nvidia-smi --query -u -x`
debug    libmamba CUDA not found
debug    libmamba parsed package: findpython
debug    libmamba   category = main
debug    libmamba   platform = linux-64
debug    libmamba   manager = conda
info     libmamba MTransaction::MTransaction - packages already resolved (lockfile)
debug    libmamba Locking directory '/root/.local/share/mamba/pkgs'
trace    libmamba Lockfile created at '/root/.local/share/mamba/pkgs/pkgs.lock'
debug    libmamba Successfully locked
debug    libmamba Locking directory '/root/.mamba/pkgs'
trace    libmamba Lockfile created at '/root/.mamba/pkgs/pkgs.lock'
debug    libmamba Successfully locked
Transaction

  Prefix: /root/.local/share/mamba/envs/test



  No specs added or removed.

  Package       Version  Build         Channel         Size
─────────────────────────────────────────────────────────────
  Install:
─────────────────────────────────────────────────────────────

  + findpython    0.7.1  pyh332efcf_0  conda-forge         

  Summary:

  Install: 1 packages

  Total download: 0 B

─────────────────────────────────────────────────────────────


debug    libmamba Locking directory '/root/.local/share/mamba/envs/test/conda-meta'
trace    libmamba Lockfile created at '/root/.local/share/mamba/envs/test/conda-meta/conda-meta.lock'
debug    libmamba Successfully locked
info     libmamba Cleaned 0 .mamba_trash files. 0 remaining.

Transaction starting
trace    libmamba Using package_url to infer cache folder path
trace    libmamba Final package cache folder path from package_url: 'https/conda.anaconda.org/conda-forge/noarch'
trace    libmamba Using package_url to infer cache folder path
trace    libmamba Final package cache folder path from package_url: 'https/conda.anaconda.org/conda-forge/noarch'
debug    libmamba Verify cache '/root/.local/share/mamba/pkgs' for package extracted directory 'findpython-0.7.1-pyh332efcf_0'
debug    libmamba 'findpython-0.7.1-pyh332efcf_0' extracted directory cache is invalid
trace    libmamba Using package_url to infer cache folder path
trace    libmamba Final package cache folder path from package_url: 'https/conda.anaconda.org/conda-forge/noarch'
debug    libmamba Verify cache '/root/.mamba/pkgs' for package extracted directory 'findpython-0.7.1-pyh332efcf_0'
debug    libmamba 'findpython-0.7.1-pyh332efcf_0' extracted directory cache is invalid
trace    libmamba Using package_url to infer cache folder path
trace    libmamba Final package cache folder path from package_url: 'https/conda.anaconda.org/conda-forge/noarch'
trace    libmamba Using package_url to infer cache folder path
trace    libmamba Final package cache folder path from package_url: 'https/conda.anaconda.org/conda-forge/noarch'
debug    libmamba Verify cache '/root/.local/share/mamba/pkgs' for package tarball 'findpython-0.7.1-pyh332efcf_0'
debug    libmamba 'findpython-0.7.1-pyh332efcf_0' tarball cache is invalid
trace    libmamba Using package_url to infer cache folder path
trace    libmamba Final package cache folder path from package_url: 'https/conda.anaconda.org/conda-forge/noarch'
debug    libmamba Verify cache '/root/.mamba/pkgs' for package tarball 'findpython-0.7.1-pyh332efcf_0'
debug    libmamba 'findpython-0.7.1-pyh332efcf_0' tarball cache is invalid
debug    libmamba Checking if '/root/.local/share/mamba/pkgs' is writable
trace    libmamba '/root/.local/share/mamba/pkgs/urls.txt' exists, checking if writable
debug    libmamba '/root/.local/share/mamba/pkgs' writable
trace    libmamba Using package_url to infer cache folder path
trace    libmamba Final package cache folder path from package_url: 'https/conda.anaconda.org/conda-forge/noarch'
debug    libmamba Adding 'findpython' to download targets from '/https://conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0.conda'
info     libmamba Using OpenSSL backend
info     libmamba Checking for CA certificates in the same prefix as the executable installation: "/usr/local/ssl/cert.pem"
trace    libmamba Using default root prefix for micromamba: "/root/.local/share/mamba"
info     libmamba Checking for CA certificates at the root prefix: "/root/.local/share/mamba/ssl/cert.pem"
info     libmamba Using system CA certificates at: /etc/ssl/certs/ca-certificates.crt
debug    libmamba Preparing download...
info     libcurl  * Could not find host conda.anaconda.org in the .netrc file; using defaults
info     libcurl  * Host conda.anaconda.org:443 was resolved.
info     libcurl  * IPv6: (none)
info     libcurl  * IPv4: 104.19.145.37, 104.19.144.37
info     libcurl  *   Trying 104.19.145.37:443...
info     libcurl  * ALPN: curl offers http/1.1
info     libcurl  * TLSv1.3 (OUT), TLS handshake, Client hello (1):
info     libcurl  * SSL Trust Anchors:
info     libcurl  *   CAfile: /etc/ssl/certs/ca-certificates.crt
info     libcurl  * TLSv1.3 (IN), TLS handshake, Server hello (2):
info     libcurl  * TLSv1.3 (IN), TLS change cipher, Change cipher spec (1):
info     libcurl  * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
info     libcurl  * TLSv1.3 (IN), TLS handshake, Certificate (11):
info     libcurl  * TLSv1.3 (IN), TLS handshake, CERT verify (15):
info     libcurl  * TLSv1.3 (IN), TLS handshake, Finished (20):
info     libcurl  * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
info     libcurl  * TLSv1.3 (OUT), TLS handshake, Finished (20):
info     libcurl  * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519MLKEM768 / id-ecPublicKey
info     libcurl  * ALPN: server accepted http/1.1
info     libcurl  * Server certificate:
info     libcurl  *   subject: CN=anaconda.org
info     libcurl  *   start date: Jun  8 19:50:01 2026 GMT
info     libcurl  *   expire date: Sep  6 19:50:00 2026 GMT
info     libcurl  *   issuer: C=US; O=Let's Encrypt; CN=YE2
info     libcurl  *   Certificate level 0: Public key type EC/prime256v1 (256/128 Bits/secBits), signed using ecdsa-with-SHA384
info     libcurl  *   Certificate level 1: Public key type EC/secp384r1 (384/192 Bits/secBits), signed using ecdsa-with-SHA384
info     libcurl  *   Certificate level 2: Public key type EC/secp384r1 (384/192 Bits/secBits), signed using ecdsa-with-SHA384
info     libcurl  *   Certificate level 3: Public key type EC/secp384r1 (384/192 Bits/secBits), signed using ecdsa-with-SHA384
info     libcurl  *   subjectAltName: "conda.anaconda.org" matches cert's "*.anaconda.org"
info     libcurl  * OpenSSL verify result: 0
info     libcurl  * SSL certificate verified via OpenSSL.
info     libcurl  * Established connection to conda.anaconda.org (104.19.145.37 port 443) from 172.17.0.2 port 51616 
info     libcurl  * using HTTP/1.x
info     libcurl  > GET /conda-forge/noarch/findpython-0.7.1-pyh332efcf_0.conda HTTP/1.1
Host: conda.anaconda.org
Accept: */*
User-Agent: mamba/2.8.1 libcurl/8.20.0 OpenSSL/3.5.6 zlib/1.3.2 zstd/1.5.7 libssh2/1.11.1 nghttp2/1.68.1 mit-krb5/1.22.2

info     libcurl  * Request completely sent off
info     libcurl  * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
info     libcurl  * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
info     libcurl  < HTTP/1.1 200 OK
info     libcurl  < Date: Tue, 21 Jul 2026 14:04:14 GMT
info     libcurl  < Content-Type: binary/octet-stream
info     libcurl  < Content-Length: 22820
info     libcurl  < Connection: keep-alive
info     libcurl  < CF-Ray: a1eac0ebba9599e4-SLC
info     libcurl  < CF-Cache-Status: HIT
info     libcurl  < Accept-Ranges: bytes
info     libcurl  < Age: 222831
info     libcurl  < Cache-Control: public, max-age=1200
info     libcurl  < ETag: "492691ec4bdfbf95f11e7374079f5f29"
info     libcurl  < Expires: Tue, 21 Jul 2026 14:24:14 GMT
info     libcurl  < Last-Modified: Thu, 13 Nov 2025 11:33:43 GMT
info     libcurl  < Server: cloudflare
info     libcurl  < Strict-Transport-Security: max-age=15552000
info     libcurl  < x-amz-id-2: SNXtKPNUueVRgZ5Kp71Ef002SbgNBa1oMLkt6PMfj7HP/Hn1fynGV0AE8x8RLhrDqu5YcItrjBSt5I6dVh8DMwGhPqurn4mR
info     libcurl  < x-amz-request-id: SH1H365QW4PFM8QK
info     libcurl  < x-amz-version-id: dltuRcyhHDXW96WcnHryK4QIDYRZSH8_
info     libcurl  < set-cookie: __cf_bm=qCkFDn5JOmgzgKlxWb1H4k2CProAvrjbQdESLZHLMzE-1784642654.0359776-1.0.1.1-CC138KL1gQyd4puu4v.qdGAQrYaxeWqPIgzJTaXqgjAYRApV4mk.6PnqR4QBeRCoyaKhXTwmnenGdEWUp80wdXV08u12x.LoBTteYJaTameCWx33hq0f5c74GzS9jmt2JasMvgDoVoCO3XFuKF5G4A; HttpOnly; SameSite=None; Secure; Path=/; Domain=anaconda.org; Expires=Tue, 21 Jul 2026 14:34:14 GMT
info     libcurl  < 
info     libcurl  * Connection #0 to host conda.anaconda.org:443 left intact
info     libmamba Download finished, tarball available at '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0.conda'
debug    libmamba Waiting for decompression "/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0.conda"
debug    libmamba Decompressing '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0.conda'
debug    libmamba Running subprocess extraction '/usr/local/bin/micromamba package extract /root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0.conda /root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0'
debug    libmamba Extracted to '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0'
info     libmamba No python version given to TransactionContext, leaving it empty
Linking findpython-0.7.1-pyh332efcf_0
trace    libmamba Using package_url to infer cache folder path
trace    libmamba Final package cache folder path from package_url: 'https/conda.anaconda.org/conda-forge/noarch'
trace    libmamba Using package_url to infer cache folder path
trace    libmamba Final package cache folder path from package_url: 'https/conda.anaconda.org/conda-forge/noarch'
debug    libmamba Verify cache '/root/.local/share/mamba/pkgs' for package extracted directory 'findpython-0.7.1-pyh332efcf_0'
debug    libmamba 'findpython-0.7.1-pyh332efcf_0' extracted directory cache is valid
trace    libmamba Preparing linking from '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0'
trace    libmamba Opening: "/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/info/paths.json"
trace    libmamba Opening: "/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/info/repodata_record.json"
debug    libmamba Linking package 'findpython-0.7.1-pyh332efcf_0' from '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0'
trace    libmamba linking 'site-packages/findpython-0.7.1.dist-info/INSTALLER'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython-0.7.1.dist-info/INSTALLER'
     --> '/root/.local/share/mamba/envs/test/findpython-0.7.1.dist-info/INSTALLER'
trace    libmamba linking 'site-packages/findpython-0.7.1.dist-info/METADATA'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython-0.7.1.dist-info/METADATA'
     --> '/root/.local/share/mamba/envs/test/findpython-0.7.1.dist-info/METADATA'
trace    libmamba linking 'site-packages/findpython-0.7.1.dist-info/RECORD'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython-0.7.1.dist-info/RECORD'
     --> '/root/.local/share/mamba/envs/test/findpython-0.7.1.dist-info/RECORD'
trace    libmamba linking 'site-packages/findpython-0.7.1.dist-info/REQUESTED'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython-0.7.1.dist-info/REQUESTED'
     --> '/root/.local/share/mamba/envs/test/findpython-0.7.1.dist-info/REQUESTED'
trace    libmamba linking 'site-packages/findpython-0.7.1.dist-info/WHEEL'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython-0.7.1.dist-info/WHEEL'
     --> '/root/.local/share/mamba/envs/test/findpython-0.7.1.dist-info/WHEEL'
trace    libmamba linking 'site-packages/findpython-0.7.1.dist-info/direct_url.json'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython-0.7.1.dist-info/direct_url.json'
     --> '/root/.local/share/mamba/envs/test/findpython-0.7.1.dist-info/direct_url.json'
trace    libmamba linking 'site-packages/findpython-0.7.1.dist-info/entry_points.txt'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython-0.7.1.dist-info/entry_points.txt'
     --> '/root/.local/share/mamba/envs/test/findpython-0.7.1.dist-info/entry_points.txt'
trace    libmamba linking 'site-packages/findpython-0.7.1.dist-info/licenses/LICENSE'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython-0.7.1.dist-info/licenses/LICENSE'
     --> '/root/.local/share/mamba/envs/test/findpython-0.7.1.dist-info/licenses/LICENSE'
trace    libmamba linking 'site-packages/findpython/__init__.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/__init__.py'
     --> '/root/.local/share/mamba/envs/test/findpython/__init__.py'
trace    libmamba linking 'site-packages/findpython/__main__.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/__main__.py'
     --> '/root/.local/share/mamba/envs/test/findpython/__main__.py'
trace    libmamba linking 'site-packages/findpython/__version__.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/__version__.py'
     --> '/root/.local/share/mamba/envs/test/findpython/__version__.py'
trace    libmamba linking 'site-packages/findpython/finder.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/finder.py'
     --> '/root/.local/share/mamba/envs/test/findpython/finder.py'
trace    libmamba linking 'site-packages/findpython/pep514tools/__init__.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/pep514tools/__init__.py'
     --> '/root/.local/share/mamba/envs/test/findpython/pep514tools/__init__.py'
trace    libmamba linking 'site-packages/findpython/pep514tools/__main__.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/pep514tools/__main__.py'
     --> '/root/.local/share/mamba/envs/test/findpython/pep514tools/__main__.py'
trace    libmamba linking 'site-packages/findpython/pep514tools/_registry.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/pep514tools/_registry.py'
     --> '/root/.local/share/mamba/envs/test/findpython/pep514tools/_registry.py'
trace    libmamba linking 'site-packages/findpython/pep514tools/environment.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/pep514tools/environment.py'
     --> '/root/.local/share/mamba/envs/test/findpython/pep514tools/environment.py'
trace    libmamba linking 'site-packages/findpython/providers/__init__.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/providers/__init__.py'
     --> '/root/.local/share/mamba/envs/test/findpython/providers/__init__.py'
trace    libmamba linking 'site-packages/findpython/providers/asdf.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/providers/asdf.py'
     --> '/root/.local/share/mamba/envs/test/findpython/providers/asdf.py'
trace    libmamba linking 'site-packages/findpython/providers/base.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/providers/base.py'
     --> '/root/.local/share/mamba/envs/test/findpython/providers/base.py'
trace    libmamba linking 'site-packages/findpython/providers/macos.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/providers/macos.py'
     --> '/root/.local/share/mamba/envs/test/findpython/providers/macos.py'
trace    libmamba linking 'site-packages/findpython/providers/path.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/providers/path.py'
     --> '/root/.local/share/mamba/envs/test/findpython/providers/path.py'
trace    libmamba linking 'site-packages/findpython/providers/pyenv.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/providers/pyenv.py'
     --> '/root/.local/share/mamba/envs/test/findpython/providers/pyenv.py'
trace    libmamba linking 'site-packages/findpython/providers/rye.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/providers/rye.py'
     --> '/root/.local/share/mamba/envs/test/findpython/providers/rye.py'
trace    libmamba linking 'site-packages/findpython/providers/uv.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/providers/uv.py'
     --> '/root/.local/share/mamba/envs/test/findpython/providers/uv.py'
trace    libmamba linking 'site-packages/findpython/providers/winreg.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/providers/winreg.py'
     --> '/root/.local/share/mamba/envs/test/findpython/providers/winreg.py'
trace    libmamba linking 'site-packages/findpython/python.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/python.py'
     --> '/root/.local/share/mamba/envs/test/findpython/python.py'
trace    libmamba linking 'site-packages/findpython/utils.py'
trace    libmamba hard-linked '/root/.local/share/mamba/pkgs/https/conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0/site-packages/findpython/utils.py'
     --> '/root/.local/share/mamba/envs/test/findpython/utils.py'
debug    libmamba 27 files linked
warning  libmamba Can't compile pyc: Python not found
debug    libmamba Unlocking '/root/.local/share/mamba/envs/test/conda-meta'
trace    libmamba Removing file '/root/.local/share/mamba/envs/test/conda-meta/conda-meta.lock'
debug    libmamba Unlocking '/root/.local/share/mamba/pkgs'
trace    libmamba Removing file '/root/.local/share/mamba/pkgs/pkgs.lock'
debug    libmamba Unlocking '/root/.mamba/pkgs'
trace    libmamba Removing file '/root/.mamba/pkgs/pkgs.lock'
bash: line 6:  2880 Segmentation fault      micromamba create -y -vvv -n test -f /tmp/conda-lock.yml
EXIT_CODE=139

environment.yml

# Issue occurs with this lock file:
# This lock file was generated by conda-lock (https://github.com/conda/conda-lock). DO NOT EDIT!
#
# A "lock file" contains a concrete list of package versions (with checksums) to be installed. Unlike
# e.g. `conda env create`, the resulting environment will not change as new package versions become
# available, unless you explicitly update the lock file.
#
# Install this environment as "YOURENV" with:
#     conda-lock install -n YOURENV --file conda-lock.yml
# To update a single package to the latest version compatible with the version constraints in the source:
#     conda-lock lock  --lockfile conda-lock.yml --update PACKAGE
# To re-solve the entire environment, e.g. after changing a version constraint in the source file:
#     conda-lock -f environment.yml --lockfile conda-lock.yml
version: 1
metadata:
  content_hash:
    linux-64: 75f7379f531f53004ea7396c6b1d4436e8eab950532876adc69a1df3a1849e5a
  channels:
  - url: conda-forge
    used_env_vars: []
  - url: tethysplatform
    used_env_vars: []
  - url: defaults
    used_env_vars: []
  platforms:
  - linux-64
  sources:
  - environment.yml
package:
- name: findpython
  version: 0.7.1
  manager: conda
  platform: linux-64
  dependencies:
    packaging: '>=20'
    platformdirs: '>=4.3.6'
    python: '>=3.10'
  url: https://conda.anaconda.org/conda-forge/noarch/findpython-0.7.1-pyh332efcf_0.conda
  hash:
    md5: 492691ec4bdfbf95f11e7374079f5f29
    sha256: 1e0fcd94988d6124b63da0f0633f6f910b9fc6c158ee9dd8059ccbfc22c6a6d2
  category: main
  optional: false

~/.condarc

No condarc or mambarc exists in the reproduction container. The crash reproduces with no configuration files at all.

swainn avatar Jul 21 '26 14:07 swainn

#4282 + findpython having this non-standard entrypoint:

"findpython = \"findpython.__main__:main\""

are the source of the problem.

jjerphan avatar Jul 22 '26 08:07 jjerphan