Skip to content

gh-150436: Skip subprocess test on STATUS_DLL_INIT_FAILED#150704

Merged
vstinner merged 4 commits into
python:mainfrom
vstinner:desktop_heap_memory
Jun 1, 2026
Merged

gh-150436: Skip subprocess test on STATUS_DLL_INIT_FAILED#150704
vstinner merged 4 commits into
python:mainfrom
vstinner:desktop_heap_memory

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Jun 1, 2026

If a subprocess spawned with CREATE_NEW_CONSOLE creation flag fails with STATUS_DLL_INIT_FAILED return code, skip the test. It's likely a memory allocation failure in the desktop heap memory which caused the DLL init failure.

If a subprocess spawned with CREATE_NEW_CONSOLE creation flag fails
with STATUS_DLL_INIT_FAILED return code, skip the test. It's likely a
memory allocation failure in the desktop heap memory which caused the
DLL init failure.
@vstinner
Copy link
Copy Markdown
Member Author

vstinner commented Jun 1, 2026

cc @zooba @chris-eibl

@vstinner
Copy link
Copy Markdown
Member Author

vstinner commented Jun 1, 2026

@vstinner
Copy link
Copy Markdown
Member Author

vstinner commented Jun 1, 2026

There was a tool named DHeapMon.exe to monitor the usage of the Desktop Heap Memory, but I failed to find a website to download it. It seems like it's not longer maintained.

@vstinner vstinner enabled auto-merge (squash) June 1, 2026 14:27
@vstinner vstinner merged commit e8034dd into python:main Jun 1, 2026
49 checks passed
@vstinner vstinner deleted the desktop_heap_memory branch June 1, 2026 14:50
@miss-islington-app
Copy link
Copy Markdown

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

@miss-islington-app
Copy link
Copy Markdown

Sorry, @vstinner, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker e8034dd841808416e243a4b2f8e08f0edf9caff3 3.14

@miss-islington-app
Copy link
Copy Markdown

Sorry, @vstinner, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker e8034dd841808416e243a4b2f8e08f0edf9caff3 3.13

@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented Jun 1, 2026

GH-150713 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Jun 1, 2026
@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented Jun 1, 2026

GH-150715 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jun 1, 2026
@vstinner vstinner removed the needs backport to 3.13 bugs and security fixes label Jun 1, 2026
vstinner added a commit that referenced this pull request Jun 1, 2026
…0704) (#150715)

gh-150436: Skip subprocess test on STATUS_DLL_INIT_FAILED (#150704)

If a subprocess spawned with CREATE_NEW_CONSOLE creation flag fails
with STATUS_DLL_INIT_FAILED return code, skip the test. It's likely a
memory allocation failure in the desktop heap memory which caused the
DLL init failure.

(cherry picked from commit e8034dd)
@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented Jun 1, 2026

GH-150721 is a backport of this pull request to the 3.13 branch.

vstinner added a commit that referenced this pull request Jun 1, 2026
…0704) (#150721)

gh-150436: Skip subprocess test on STATUS_DLL_INIT_FAILED (#150704)

If a subprocess spawned with CREATE_NEW_CONSOLE creation flag fails
with STATUS_DLL_INIT_FAILED return code, skip the test. It's likely a
memory allocation failure in the desktop heap memory which caused the
DLL init failure.

(cherry picked from commit e8034dd)
vstinner added a commit that referenced this pull request Jun 4, 2026
…150704) (#150713)

gh-150436: Skip subprocess test on STATUS_DLL_INIT_FAILED (GH-150704)

If a subprocess spawned with CREATE_NEW_CONSOLE creation flag fails
with STATUS_DLL_INIT_FAILED return code, skip the test. It's likely a
memory allocation failure in the desktop heap memory which caused the
DLL init failure.
(cherry picked from commit e8034dd)

Co-authored-by: Victor Stinner <vstinner@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OS-windows skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants