Skip to content

Python 3.15.0-beta.2-linux 22.04 x64 seems to have issues. #1321

@seberg

Description

@seberg

Description:
It seems that 3.15.0-beta.2-26891732290 and specifically python-3.15.0-beta.2-linux-22.04-x64-freethreaded.tar.gz has some build issue.

I.e. this artifact: https://github.com/actions/python-versions/releases/download/3.15.0-beta.2-26891732290/python-3.15.0-beta.2-linux-22.04-x64-freethreaded.tar.gz
(I can locally verify that 24.04 works just fine with the reproducer below.)

This causes segfaults (one example from numpy import random), but it can also be locally reproduced nicely with gdb:

gdb --args correct_python -c 'while True: pass'

Inside gdb: r then Ctrl+c and then, let's do something that is definitely valid code:

p (void*)PyObject_Realloc(0x0, 128)

which then fails with a Segfault in

mi_free (p=0x0) at Objects/mimalloc/alloc.c:576
warning: 576	Objects/mimalloc/alloc.c: No such file or directory

Action version:
See above for precise artifact.

Platform:

  • Ubuntu 22.04

Runner type:

  • Hosted
  • Self-hosted

Tools version:

Repro steps:
Sorry, I don't have exact reproducer steps at hand right now since I debugged it locally. But I expect that is easier anyway.
As mentioned, installing NumPy and running python -c 'from numpy import random' will reproduce it, though.

EDIT: Ah silly me to repro should just be something like:

python -c 'import ctypes; ctypes.pythonapi.PyObject_Realloc(0, 128)'

(that also simplifies the gdb call)


(Sorry if this is the wrong place, I guess there is a chance it is yet again an upstream issue...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions