Skip to content

Conversation

@stefanor
Copy link
Contributor

@stefanor stefanor commented Dec 1, 2025

Missed in GH-139914, as it was introduced around the same time and is only relevant to pydebug builds.

@stefanor stefanor requested a review from markshannon as a code owner December 1, 2025 17:50
@StanFromIreland StanFromIreland changed the title Fix another stack assert on HP-PA (GH-140028) gh-139914: Fix another stack assert on HP-PA Dec 1, 2025
Python/ceval.c Outdated
assert(base < top);
assert((top - base) >= _PyOS_MIN_STACK_SIZE);
#else
assert(base <= top);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, that's bogus.

We were seeing:
_freeze_module: ../Python/ceval.c:498: tstate_set_stack: Assertion base < top' failed.`
But there must be more to that, because that assert was obviously correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed the commit to what I think should be correct.

Let me just try to reproduce the problem on the 3.14 branch...

Missed in pythonGH-139914, as it was introduced around the same time and is
only relevant to pydebug builds.
@stefanor
Copy link
Contributor Author

stefanor commented Dec 1, 2025

Sorry, don't know what I was thinking.

@stefanor stefanor closed this Dec 1, 2025
@stefanor stefanor deleted the hppa-stack branch December 1, 2025 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants