You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[3.13] Ensurepip fails when built with --enable-experimental-jit and --with-pydebug (Linux) #120437
When building for Linux/X64, the 3.13 branch will not run successfully run python -m ensurepip if built with both --enable-experimental-jit and --with-pydebug:
git checkout 3.13
make clean
./configure --enable-experimental-jit --with-pydebug
make -j8
./python -m ensurepip
Playing around with this and bisecting main, it looks like the commit where this was fixed is 9b8611e ... which doesn't make a lot of sense to me, that's part of a PR all about typing... Perhaps I messed up the bisect.
For what its worth, this is what I ran with git bisect run:
#!/bin/sh
make distclean -j8 ||true
(./configure --enable-experimental-jit --with-pydebug && make -j8) ||exit 125
! ./python -m venv venv # Negated, since the earlier commit is bad and the later one is good
Activity
Eclips4 commentedon Jun 13, 2024
Thanks for the report!
Confirmed on 3.13 branch.
Eclips4 commentedon Jun 13, 2024
Here's the full trace:
I guess the main problem at the beginning of trace:
So it seems more related to JIT than to ensurepip.
JeffersGlass commentedon Jun 13, 2024
Bisecting, this looks like it broke in 1ab6356.
JeffersGlass commentedon Jun 13, 2024
This error does not appear to occur on Windows x64 builds on 3.13:
This makes sense - probably some JIT issue that ensurepip happens to be triggering.
Zheaoli commentedon Jun 13, 2024
The bug confirm on 3.13 and has disappered in main branch
Let me find out it
Zheaoli commentedon Jun 13, 2024
@Eclips4 would you mind assigning this to me? I may need a bit of time to find out the root cause
Eclips4 commentedon Jun 13, 2024
Sure!
JeffersGlass commentedon Jun 13, 2024
Playing around with this and bisecting
main, it looks like the commit where this was fixed is 9b8611e ... which doesn't make a lot of sense to me, that's part of a PR all about typing... Perhaps I messed up the bisect.For what its worth, this is what I ran with
git bisect run:Zheaoli commentedon Jun 14, 2024
This bug is confirmed that is introduced into the codebase in
1ab6356
I will dive more deeper, but I may need @markshannon help
Zheaoli commentedon Jun 16, 2024
After more inspect, I think this is about Tier2, not JIT
Continue to dive deeper, but I may need @Fidget-Spinner help...
BTW this issue should be labeled about Tier2 cc @Eclips4
10 remaining items
pythongh-120437: drop specialization when the code frame is exceed cu…
Fidget-Spinner commentedon Jun 19, 2024
The bug is indeed in the pass that combines _CHECK_STACK_SPACE. If you comment out https://github.com/python/cpython/blob/main/Python/optimizer_bytecodes.c#L702 this works.
Fidget-Spinner commentedon Jun 19, 2024
On second thought, for some reason it works for me even if I don't comment that out??
pythongh-120437: fix _CHECK_STACK_SPACE invalid after pythongh-118322
pythongh-120437: fix _CHECK_STACK_SPACE invalid after pythongh-118322
pythongh-120437: fix _CHECK_STACK_SPACE invalid after pythongh-118322
pythongh-120437: Fix `_CHECK_STACK_SPACE` optimization problems after…
pythongh-120437: Fix `_CHECK_STACK_SPACE` optimization problems after…
gh-120437: Fix `_CHECK_STACK_SPACE` optimization problems introduced in
[3.13] gh-120437: Fix `_CHECK_STACK_SPACE` optimization problems int…
pythongh-120437: Fix `_CHECK_STACK_SPACE` optimization problems intro…
pythongh-120437: Fix `_CHECK_STACK_SPACE` optimization problems intro…
pythongh-120437: Fix `_CHECK_STACK_SPACE` optimization problems intro…