Cannot unzip tar files when using Python 3.14

Abierto
#303 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
58/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
python
Área
cli, tooling

Línea de trabajo

Comienza con el stack trace de Python adjunto y el registro completo de mx build. Después, reproduce la extracción del toolchain de musl desde el directorio compiler/ usando Python 3.14, tras limpiar ~/.mx/cache/. Rastrea la ruta de extracción de tar utilizada por mx y verifica que el archivo de musl se extraiga correctamente y que el mx build documentado se complete sin el AbsoluteLinkError.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

While I was trying to compile the graal compiler using the instructions provided in its README I kept getting the same error:

tarfile.AbsoluteLinkError: 'musl-toolchain/x86_64-linux-musl/lib/ld-musl-x86_64.so.1' is a link to an absolute path

After a bit of investigating/searching for answers I pondered upon the tarfile documentation for Python 3.14 where I saw a change/new default for Python 3.14:

Changed in version 3.14: Set the default extraction filter to data, which disallows some dangerous features such as links to absolute paths or paths outside of the destination. Previously, the filter strategy was equivalent to fully_trusted.

Using this new information I tried once again with a lower Python version (Python 3.11) and it seems to have worked - the musl tar file extracted without any problems.

Steps to reproduce

(Delete cache of extracted musl tar file if it exists, on Linux in ~/.mx/cache/)
Clone graal compiler repository (by cloning the graal repo and going intocompiler/ )
Follow the steps
During the step to build (using mx build) observe tarfile extraction failure

Expected behaviour

While compiling graal compiler it extraction of tar files succeeds without any errors.

Observed

While trying to extract musl gcc toolchain it fails with tarfile.AbsoluteLinkError: 'musl-toolchain/x86_64-linux-musl/lib/ld-musl-x86_64.so.1'

Debug info

Platform: Linux (EndeavourOS) x86_64
Kernel version: 7.0.10-zen1-1-zen
Python version affected: Python 3.14

Included two files, stack trace from Python error and mxbuild logs (using --build-logs=full option).

Python stack-trace:

python-stack-trace.txt

mxbuild logs:

buildlog-20260526-231432.html

Lenguaje dominante
Python
Estrellas
205
Forks
131
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de graalvm/mx

Todos los issues de graalvm/mx

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.