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-91048: Refactor _testexternalinspection and add Windows support#132852

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
pablogsal merged 10 commits intopython:mainfrompablogsal:gh-91048-2
Apr 25, 2025

Conversation

pablogsal
Copy link
Member

@pablogsalpablogsal commentedApr 23, 2025
edited by bedevere-appbot
Loading

1st1 reacted with thumbs up emoji
@pablogsalpablogsalforce-pushed thegh-91048-2 branch 3 times, most recently from66b7014 tob04fbc5CompareApril 23, 2025 19:28
@pablogsalpablogsal requested a review fromambvApril 23, 2025 19:31
@pablogsalpablogsalforce-pushed thegh-91048-2 branch 2 times, most recently from46bf7d7 toe13c5a6CompareApril 23, 2025 19:35
@pablogsalpablogsalforce-pushed thegh-91048-2 branch 2 times, most recently from5ab86ad to4ffe070CompareApril 23, 2025 20:15
@pablogsal
Copy link
MemberAuthor

Man, getting windows to work was NOT easy

@pablogsalpablogsal merged commite8cf3a1 intopython:mainApr 25, 2025
41 checks passed
@pablogsalpablogsal deleted the gh-91048-2 branchApril 25, 2025 13:12
@vstinner
Copy link
Member

This change broke FreeBSD buildbot:

--- Modules/_testexternalinspection.o ---In file included from ./Modules/_testexternalinspection.c:20:./Modules/../Python/remote_debug.h:695:15: error: call to undeclared function 'search_map_for_section'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]  695 |     address = search_map_for_section(handle, "PyRuntime", "libpython");      |               ^./Modules/_testexternalinspection.c:62:15: error: call to undeclared function 'search_map_for_section'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]   62 |     address = search_map_for_section(handle, "AsyncioDebug", "_asyncio.cpython");      |               ^2 errors generated.

@vstinner
Copy link
Member

This change broke FreeBSD buildbot

I wrote#132945 to fix the build on FreeBSD.

@Fidget-Spinner
Copy link
Member

Seems like this change broke JIT CI onmain for Windows#132953

@pablogsal
Copy link
MemberAuthor

Seems like this change broke JIT CI onmain for Windows#132953

How? This should not affect the JIT in any way

@zooba
Copy link
Member

======================================================================ERROR: test_async_gather_remote_stack_trace (test.test_external_inspection.TestGetStackTrace.test_async_gather_remote_stack_trace)----------------------------------------------------------------------Traceback (most recent call last):  File "D:\a\cpython\cpython\Lib\test\test_external_inspection.py", line 314, in test_async_gather_remote_stack_trace    stack_trace = get_async_stack_trace(p.pid)RuntimeError: Failed to read asyncio debug offsets

All look like that

@Fidget-Spinner
Copy link
Member

Fidget-Spinner commentedApr 25, 2025
edited
Loading

Seems like this change broke JIT CI onmain for Windows#132953

How? This should not affect the JIT in any way

Yeah I'm confused as well. See what Steve said above about the tests failing though. I wonder if the JIT build lays out stuff differently in memory? No clue.

@pablogsal
Copy link
MemberAuthor

pablogsal commentedApr 25, 2025
edited
Loading

======================================================================ERROR: test_async_gather_remote_stack_trace (test.test_external_inspection.TestGetStackTrace.test_async_gather_remote_stack_trace)----------------------------------------------------------------------Traceback (most recent call last):  File "D:\a\cpython\cpython\Lib\test\test_external_inspection.py", line 314, in test_async_gather_remote_stack_trace    stack_trace = get_async_stack_trace(p.pid)RuntimeError: Failed to read asyncio debug offsets

All look like that

No, that looks like whatever the JIT build is doing is breaking this feature, which is different. This PR makes that test run on windows and is failing, ergo is not that this broke the JIT but the other way around.

@pablogsal
Copy link
MemberAuthor

I am looking into it

@Fidget-Spinner
Copy link
Member

No, that looks like whatever the JIT build is doing is breaking this feature, which is different. This PR makes that test run on windows and is failing, ergo is not that this broke the JIT but the other way around

Yeah I believe the JIT broke the test internal inspection, but the JIT CI was passing before this, so if I'm being pedantic, the PR did add tests that broke the JITCI :).

Pedantics aside,@chris-eibl is looking into it, and I'm looking too.

@pablogsal
Copy link
MemberAuthor

Pedantics aside,@chris-eibl is looking into it, and I'm looking too.

Hold on I am looking into this I think I know what's going on

chris-eibl and Fidget-Spinner reacted with thumbs up emoji

@chris-eibl
Copy link
Member

But JIT must do something different on Windows, because Linux is green?

@pablogsal
Copy link
MemberAuthor

But JIT must do something different on Windows, because Linux is green?

Windows is also green in the normal CI. My bet is that it has to be with release/vs not release and not related to the JIT

Fidget-Spinner reacted with thumbs up emoji

@Fidget-Spinner
Copy link
Member

But JIT must do something different on Windows, because Linux is green?

Windows is also green in the normal CI. My bet is that it has to be with release/vs not release and not related to the JIT

I think you're right. On the commit, Azure pipelines (which uses release builds for Windows) fails, but not the normal debug builds.

@chris-eibl
Copy link
Member

chris-eibl commentedApr 25, 2025
edited
Loading

Can confirm on a local Windows release 64bit build, that the tests fail:

======================================================================ERROR: test_asyncgen_remote_stack_trace (test.test_external_inspection.TestGetStackTrace.test_asyncgen_remote_stack_trace)----------------------------------------------------------------------Traceback (most recent call last):  File "e:\cpython_chris\Lib\test\test_external_inspection.py", line 246, in test_asyncgen_remote_stack_trace    stack_trace = get_async_stack_trace(p.pid)RuntimeError: Failed to read asyncio debug offsets

@pablogsal
Copy link
MemberAuthor

pablogsal commentedApr 25, 2025
edited
Loading

Can confirm on a local Windows release 64bit build, that the tests fail:

I know what the problem is, I am working on a fix

Fidget-Spinner reacted with heart emoji

@pablogsal
Copy link
MemberAuthor

As a takeaway: it would be good to get at least one release CI run on all PRs :)

Fidget-Spinner and chris-eibl reacted with thumbs up emoji

@pablogsal
Copy link
MemberAuthor

#132963

@chris-eibl
Copy link
Member

chris-eibl commentedApr 25, 2025
edited
Loading

Yeah,

Dump of file amd64\_asyncio.pydFile Type: DLL  Summary        2000 .data        1000 .pdata        6000 .rdata        1000 .reloc        1000 .rsrc        8000 .text

dumpbin shows noAsyncioD section.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@zoobazoobazooba left review comments

@erlend-aaslanderlend-aaslandAwaiting requested review from erlend-aasland

@ambvambvAwaiting requested review from ambv

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@pablogsal@vstinner@Fidget-Spinner@zooba@chris-eibl@ambv

[8]ページ先頭

©2009-2025 Movatter.jp