Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-143946: ShowJitOptSymbol on abstract stack when set PYTHON_OPT_DEBUG > 4#143957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Fidget-Spinner merged 7 commits intopython:mainfromcocolato:add_debug_info
Jan 17, 2026

Conversation

@cocolato
Copy link
Contributor

@cocolatococolato commentedJan 17, 2026
edited
Loading

Now we can get more debug info when set PYTHON_OPT_DEBUG > 4:

test_code:

deffoo():total=0foriinrange(4002):total=total+ireturntotalfoo()

RunPYTHON_OPT_DEBUG=5 ./python test.py

will get output:
debug.log

yihong0618 reacted with thumbs up emoji
@Fidget-SpinnerFidget-Spinner changed the titlegh-143946: Show_JitSymType on abstract stack when set PYTHON_OPT_DEBUG > 4gh-143946: ShowJitOptSymbol on abstract stack when set PYTHON_OPT_DEBUG > 4Jan 17, 2026
@Fidget-Spinner
Copy link
Member

I think we also need to add aninvalid tag to the JIT ref tags. Otherwise, this might crash when we push an abstract frame onto the stack. The abstract frame should be marked as invalid.

cocolato reacted with thumbs up emoji

@cocolato
Copy link
ContributorAuthor

updated!

@Fidget-Spinner
Copy link
Member

Fidget-Spinner commentedJan 17, 2026
edited
Loading

Sorry that's the wrong tag, it should the tag inpycore_optimizer.h. E.g.#define REF_IS_BORROWED 1 is one of them. I think the invalid tag should followpycore_stackref.h's number

@cocolato
Copy link
ContributorAuthor

I think we also need to add aninvalid tag to the JIT ref tags. Otherwise, this might crash when we push an abstract frame onto the stack. The abstract frame should be marked as invalid.

Sorry about that, I've just figured out the bitwise operations here.

Copy link
Member

@Fidget-SpinnerFidget-Spinner left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@Fidget-SpinnerFidget-Spinner merged commit61ec66a intopython:mainJan 17, 2026
67 checks passed
@cocolatococolato deleted the add_debug_info branchJanuary 20, 2026 14:13
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@Fidget-SpinnerFidget-SpinnerFidget-Spinner approved these changes

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

@tomasr8tomasr8Awaiting requested review from tomasr8tomasr8 is a code owner

@savannahostrowskisavannahostrowskiAwaiting requested review from savannahostrowskisavannahostrowski is a code owner

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@cocolato@Fidget-Spinner

[8]ページ先頭

©2009-2026 Movatter.jp