GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GH-126910: Revert "Make `_Py_get_machine_stack_pointer` return the stack pointer (#147945)" by encukou · Pull Request #147994 · python/cpython

Conversation

@encukou

@encukou encukou commented Apr 2, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

This reverts commit 255026d.

I suspect this commit broke a tier-1 buildbot; I'll use this PR to confirm.
Per PEP-11, any breakage should be fixed or reverted immediately.

  • Issue: Supporting stack unwinding in the JIT compiler #126910

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@encukou
Revert "pythonGH-126910: Make _Py_get_machine_stack_pointer return …
6803150
…the stack pointer (python#147945)"

This reverts commit 255026d.
@bedevere-app bedevere-app Bot mentioned this pull request Apr 2, 2026
Supporting stack unwinding in the JIT compiler #126910
Open
@encukou

encukou commented Apr 2, 2026

Copy link
Copy Markdown
Member Author

!buildbot AMD64.CentOS9.NoGIL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-bot

bedevere-bot commented Apr 2, 2026

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @encukou for commit 6803150 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F147994%2Fmerge

The command will test the builders whose names match following regular expression: AMD64.CentOS9.NoGIL

The builders matched are:

  • AMD64 CentOS9 NoGIL Refleaks PR
  • AMD64 CentOS9 NoGIL PR
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@encukou
encukou marked this pull request as ready for review April 2, 2026 08:35
@encukou
encukou requested review from FFY00, ZeroIntensity, brandtbucher, diegorusso, ericsnowcurrently, markshannon and savannahostrowski as code owners April 2, 2026 08:35
@bedevere-app bedevere-app Bot added the awaiting core review label Apr 2, 2026
@encukou

encukou commented Apr 2, 2026

Copy link
Copy Markdown
Member Author

@Fidget-Spinner @markshannon Are you able to investigate/fix this today?
If not, let's revert so the buildbot can catch other issues, and re-apply later.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@markshannon

markshannon commented Apr 2, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

I can't reproduce the failure on either fedora x86-64 or ubuntu Aarch64.

Note, that #147945 doesn't change the way frames are laid out or any aspect of the program, except:

  • How JIT frames are laid out (there is no JIT active on the failing buildbot)
  • How deep the stack can go before a RecursionError is raised.

Does CentOS have a glibc missing a way to tell the stack size?

I want to try increasing the estimated stack size a bit, as I suspect the combination of debug build, no-gil and perf trampolines is causing the stack to grow very fast.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@markshannon

markshannon commented Apr 2, 2026

Copy link
Copy Markdown
Member

#148002

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@markshannon

markshannon commented Apr 2, 2026

Copy link
Copy Markdown
Member

It doesn't look like it is a stack issue.

It looks like py_trampoline_evaluator isn't calling the generated function for the code object. I don't know why.
It looks like whatever the problem is is being swallowed, not reported:
https://github.com/python/cpython/blob/main/Python/perf_trampoline.c#L452

@pablogsal any idea why py_trampoline_evaluator is not working?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@markshannon markshannon added the skip news label Apr 2, 2026
markshannon
markshannon approved these changes Apr 2, 2026
View reviewed changes

@markshannon markshannon left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@encukou go ahead with the revert. I doubt this will be fixed before the weekend

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

encukou reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting core review labels Apr 2, 2026
@encukou
encukou merged commit 9b08f8c into python:main Apr 2, 2026
83 of 84 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the awaiting merge label Apr 2, 2026
@encukou

encukou commented Apr 2, 2026

Copy link
Copy Markdown
Member Author

I also can't reproduce on a centos container (on a Fedora kernel).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@encukou
encukou deleted the revert-255026d branch April 2, 2026 14:53
@pablogsal pablogsal mentioned this pull request Apr 4, 2026
gh-130273: Fix traceback color output with unicode characters #142529
Merged
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
@encukou @ljfp
pythonGH-126910: Revert "Make _Py_get_machine_stack_pointer return …
eb941df
…the stack pointer (python#147945)" (pythonGH-147994)

Revert "pythonGH-126910: Make `_Py_get_machine_stack_pointer` return the stack pointer (python#147945)"

This reverts commit 255026d,
which broke a tier-1 buildbot.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@markshannon markshannon markshannon approved these changes
@ericsnowcurrently ericsnowcurrently Awaiting requested review from ericsnowcurrently ericsnowcurrently is a code owner
@ZeroIntensity ZeroIntensity Awaiting requested review from ZeroIntensity ZeroIntensity is a code owner
@FFY00 FFY00 Awaiting requested review from FFY00 FFY00 is a code owner
@brandtbucher brandtbucher Awaiting requested review from brandtbucher brandtbucher is a code owner
@savannahostrowski savannahostrowski Awaiting requested review from savannahostrowski
@diegorusso diegorusso Awaiting requested review from diegorusso diegorusso is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

skip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@encukou @bedevere-bot @markshannon
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.