Skip to content

[3.15] gh-152132: Fix bugs in Py_RunMain() (#153461) #200830

[3.15] gh-152132: Fix bugs in Py_RunMain() (#153461)

[3.15] gh-152132: Fix bugs in Py_RunMain() (#153461) #200830

Triggered via pull request July 9, 2026 23:38
Status Cancelled
Total duration 3m 50s
Artifacts 1

build.yml

on: pull_request
Change detection  /  Create context from changed files
11s
Change detection / Create context from changed files
Matrix: Address sanitizer
Matrix: build-macos
Matrix: build-san
Matrix: Ubuntu SSL tests
Matrix: build-ubuntu
Matrix: build-windows-msi
Waiting for pending jobs
Matrix: build-windows
Matrix: cifuzz
Waiting for pending jobs
Check if Autoconf files are up to date
41s
Check if Autoconf files are up to date
Check if generated files are up to date
1m 25s
Check if generated files are up to date
C API Docs  /  Check if all C APIs are documented
11s
C API Docs / Check if all C APIs are documented
iOS
1m 5s
iOS
Emscripten  /  build and test
1m 5s
Emscripten / build and test
WASI  /  build and test
54s
WASI / build and test
Hypothesis tests on Ubuntu
1m 27s
Hypothesis tests on Ubuntu
Sanitizers  /  TSan (free-threading)
2m 36s
Sanitizers / TSan (free-threading)
Cross build Linux
1m 43s
Cross build Linux
Docs  /  Check EPUB
Docs / Check EPUB
Docs  /  Doctest
Docs / Doctest
Docs  /  Docs
Docs / Docs
Check if the ABI has changed
2m 11s
Check if the ABI has changed
Matrix: build-android
Docs  /  ...  /  Check for removed HTML IDs
Docs / Check for removed HTML IDs / Check for removed HTML IDs
All required checks pass
4s
All required checks pass
Fit to window
Zoom out
Zoom in

Annotations

55 errors and 83 warnings
WASI / build and test
Process completed with exit code 1.
iOS
Process completed with exit code 1.
Emscripten / build and test
Process completed with exit code 1.
Android (x86_64)
Process completed with exit code 1.
Ubuntu SSL tests (ubuntu-24.04, openssl, 4.0.1)
Process completed with exit code 2.
Ubuntu SSL tests (ubuntu-24.04, openssl, 1.1.1w)
Process completed with exit code 2.
Ubuntu SSL tests (ubuntu-24.04, openssl, 3.5.7)
Process completed with exit code 2.
Ubuntu SSL tests (ubuntu-24.04, openssl, 3.4.6)
Process completed with exit code 2.
Check if generated files are up to date
Process completed with exit code 2.
Android (aarch64)
Process completed with exit code 1.
Ubuntu SSL tests (ubuntu-24.04, openssl, 3.6.3)
Process completed with exit code 2.
Ubuntu SSL tests (ubuntu-24.04, openssl, 3.0.21)
Process completed with exit code 2.
Hypothesis tests on Ubuntu
Process completed with exit code 2.
Hypothesis tests on Ubuntu: Modules/main.c#L692
void value not ignored as it ought to be
Ubuntu SSL tests (ubuntu-24.04, aws-lc, 5.0.0)
Process completed with exit code 2.
Ubuntu / build and test (ubuntu-24.04)
Process completed with exit code 2.
Ubuntu / build and test (ubuntu-24.04): Modules/main.c#L692
void value not ignored as it ought to be
Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)
Process completed with exit code 2.
Ubuntu (free-threading) / build and test (ubuntu-24.04-arm): Modules/main.c#L692
void value not ignored as it ought to be
Cross build Linux
Process completed with exit code 2.
Cross build Linux: Modules/main.c#L692
void value not ignored as it ought to be
Ubuntu (free-threading) / build and test (ubuntu-24.04)
Process completed with exit code 2.
Ubuntu (free-threading) / build and test (ubuntu-24.04): Modules/main.c#L692
void value not ignored as it ought to be
Windows (free-threading) / Build and test (x64, switch-case)
Process completed with exit code 1.
Windows (free-threading) / Build and test (x64, switch-case): Modules/main.c#L692
'<': an operand cannot have type 'void' [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (Win32, switch-case)
Process completed with exit code 1.
Windows / Build and test (x64, switch-case)
Process completed with exit code 1.
Windows / Build and test (x64, switch-case): Modules/main.c#L692
'<': an operand cannot have type 'void' [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Ubuntu / build and test (ubuntu-24.04-arm)
Process completed with exit code 2.
Ubuntu / build and test (ubuntu-24.04-arm): Modules/main.c#L692
void value not ignored as it ought to be
Ubuntu (bolt) / build and test (ubuntu-24.04)
Process completed with exit code 2.
Ubuntu (bolt) / build and test (ubuntu-24.04): Modules/main.c#L692
void value not ignored as it ought to be
Windows (free-threading) / Build and test (x64, tail-call)
Process completed with exit code 1.
Windows (free-threading) / Build and test (x64, tail-call): Modules/main.c#L692
'<': an operand cannot have type 'void' [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Address sanitizer (ubuntu-24.04)
Process completed with exit code 2.
Address sanitizer (ubuntu-24.04): Modules/main.c#L692
void value not ignored as it ought to be
Check if the ABI has changed
Process completed with exit code 2.
Windows / Build and test (x64, tail-call)
Process completed with exit code 1.
Windows / Build and test (x64, tail-call): Modules/main.c#L692
'<': an operand cannot have type 'void' [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (arm64, switch-case)
Process completed with exit code 1.
Windows / Build and test (arm64, switch-case): Modules/main.c#L692
'<': an operand cannot have type 'void' [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Sanitizers / TSan (free-threading)
Process completed with exit code 2.
macOS (free-threading) / build and test (macos-26)
Process completed with exit code 2.
Sanitizers / TSan
Process completed with exit code 2.
Windows (free-threading) / Build and test (arm64, switch-case)
Process completed with exit code 1.
Windows (free-threading) / Build and test (arm64, switch-case): Modules/main.c#L692
'<': an operand cannot have type 'void' [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
macOS / build and test (macos-26)
Process completed with exit code 2.
macOS / build and test (macos-26-intel)
Canceling since a higher priority waiting request for Tests-vstinner-pymain_fixes15 exists
macOS / build and test (macos-26-intel)
The operation was canceled.
Sanitizers / UBSan
Canceling since a higher priority waiting request for Tests-vstinner-pymain_fixes15 exists
Sanitizers / UBSan
The operation was canceled.
All required checks pass
Process completed with exit code 1.
Tests
Canceling since a higher priority waiting request for Tests-vstinner-pymain_fixes15 exists
Tests
Canceling since a higher priority waiting request for Tests-vstinner-pymain_fixes15 exists
Tests
Canceling since a higher priority waiting request for Tests-vstinner-pymain_fixes15 exists
Hypothesis tests on Ubuntu
No files were found with the provided path: /home/runner/work/cpython/cpython-builddir/.hypothesis/examples/. No artifacts will be uploaded.
Hypothesis tests on Ubuntu: Modules/main.c#L241
‘return’ with a value, in function returning void [-Wreturn-type]
Hypothesis tests on Ubuntu: Modules/main.c#L224
‘return’ with a value, in function returning void [-Wreturn-type]
Hypothesis tests on Ubuntu: Modules/main.c#L221
‘return’ with a value, in function returning void [-Wreturn-type]
Hypothesis tests on Ubuntu: Modules/main.c#L218
‘return’ with a value, in function returning void [-Wreturn-type]
Hypothesis tests on Ubuntu: Modules/main.c#L214
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu / build and test (ubuntu-24.04): Modules/main.c#L241
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu / build and test (ubuntu-24.04): Modules/main.c#L224
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu / build and test (ubuntu-24.04): Modules/main.c#L221
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu / build and test (ubuntu-24.04): Modules/main.c#L218
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu / build and test (ubuntu-24.04): Modules/main.c#L214
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu (free-threading) / build and test (ubuntu-24.04-arm): Modules/main.c#L241
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu (free-threading) / build and test (ubuntu-24.04-arm): Modules/main.c#L224
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu (free-threading) / build and test (ubuntu-24.04-arm): Modules/main.c#L221
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu (free-threading) / build and test (ubuntu-24.04-arm): Modules/main.c#L218
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu (free-threading) / build and test (ubuntu-24.04-arm): Modules/main.c#L214
‘return’ with a value, in function returning void [-Wreturn-type]
Cross build Linux: Modules/main.c#L241
‘return’ with a value, in function returning void [-Wreturn-type]
Cross build Linux: Modules/main.c#L224
‘return’ with a value, in function returning void [-Wreturn-type]
Cross build Linux: Modules/main.c#L221
‘return’ with a value, in function returning void [-Wreturn-type]
Cross build Linux: Modules/main.c#L218
‘return’ with a value, in function returning void [-Wreturn-type]
Cross build Linux: Modules/main.c#L214
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu (free-threading) / build and test (ubuntu-24.04): Modules/main.c#L241
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu (free-threading) / build and test (ubuntu-24.04): Modules/main.c#L224
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu (free-threading) / build and test (ubuntu-24.04): Modules/main.c#L221
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu (free-threading) / build and test (ubuntu-24.04): Modules/main.c#L218
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu (free-threading) / build and test (ubuntu-24.04): Modules/main.c#L214
‘return’ with a value, in function returning void [-Wreturn-type]
Windows (free-threading) / Build and test (x64, switch-case): Modules/_interpchannelsmodule.c#L2938
'function': conversion from 'int64_t' to 'int', possible loss of data [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (x64, switch-case): Modules/main.c#L241
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (x64, switch-case): Modules/main.c#L224
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (x64, switch-case): Modules/main.c#L221
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (x64, switch-case): Modules/main.c#L218
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (x64, switch-case): Modules/main.c#L214
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (x64, switch-case): Modules/_interpchannelsmodule.c#L2938
'function': conversion from 'int64_t' to 'int', possible loss of data [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (x64, switch-case): Modules/main.c#L241
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (x64, switch-case): Modules/main.c#L224
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (x64, switch-case): Modules/main.c#L221
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (x64, switch-case): Modules/main.c#L218
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (x64, switch-case): Modules/main.c#L214
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Ubuntu / build and test (ubuntu-24.04-arm): Modules/main.c#L241
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu / build and test (ubuntu-24.04-arm): Modules/main.c#L224
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu / build and test (ubuntu-24.04-arm): Modules/main.c#L221
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu / build and test (ubuntu-24.04-arm): Modules/main.c#L218
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu / build and test (ubuntu-24.04-arm): Modules/main.c#L214
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu (bolt) / build and test (ubuntu-24.04): Modules/main.c#L241
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu (bolt) / build and test (ubuntu-24.04): Modules/main.c#L224
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu (bolt) / build and test (ubuntu-24.04): Modules/main.c#L221
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu (bolt) / build and test (ubuntu-24.04): Modules/main.c#L218
‘return’ with a value, in function returning void [-Wreturn-type]
Ubuntu (bolt) / build and test (ubuntu-24.04): Modules/main.c#L214
‘return’ with a value, in function returning void [-Wreturn-type]
Windows (free-threading) / Build and test (x64, tail-call): Modules/_interpchannelsmodule.c#L2938
'function': conversion from 'int64_t' to 'int', possible loss of data [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (x64, tail-call): Modules/main.c#L241
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (x64, tail-call): Modules/main.c#L224
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (x64, tail-call): Modules/main.c#L221
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (x64, tail-call): Modules/main.c#L218
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (x64, tail-call): Modules/main.c#L214
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Address sanitizer (ubuntu-24.04): Modules/main.c#L241
‘return’ with a value, in function returning void [-Wreturn-type]
Address sanitizer (ubuntu-24.04): Modules/main.c#L224
‘return’ with a value, in function returning void [-Wreturn-type]
Address sanitizer (ubuntu-24.04): Modules/main.c#L221
‘return’ with a value, in function returning void [-Wreturn-type]
Address sanitizer (ubuntu-24.04): Modules/main.c#L218
‘return’ with a value, in function returning void [-Wreturn-type]
Address sanitizer (ubuntu-24.04): Modules/main.c#L214
‘return’ with a value, in function returning void [-Wreturn-type]
Windows / Build and test (x64, tail-call): Modules/_interpchannelsmodule.c#L2938
'function': conversion from 'int64_t' to 'int', possible loss of data [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (x64, tail-call): Modules/main.c#L241
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (x64, tail-call): Modules/main.c#L224
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (x64, tail-call): Modules/main.c#L221
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (x64, tail-call): Modules/main.c#L218
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (x64, tail-call): Modules/main.c#L214
'pymain_import_readline': 'void' function returning a value [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (arm64, switch-case): Modules/_interpchannelsmodule.c#L2938
'function': conversion from 'int64_t' to 'int', possible loss of data [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (arm64, switch-case): Modules/main.c#L241
'pymain_import_readline': 'void' function returning a value [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (arm64, switch-case): Modules/main.c#L224
'pymain_import_readline': 'void' function returning a value [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (arm64, switch-case): Modules/main.c#L221
'pymain_import_readline': 'void' function returning a value [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (arm64, switch-case): Modules/main.c#L218
'pymain_import_readline': 'void' function returning a value [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (arm64, switch-case): Modules/main.c#L214
'pymain_import_readline': 'void' function returning a value [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
macOS (free-threading) / build and test (macos-26)
`$HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set: not checking for outdated dependents or dependents with broken linkage!
macOS (free-threading) / build and test (macos-26)
The following taps are not trusted: aws/tap Homebrew is currently ignoring formulae, casks and commands from these taps because tap trust is required. Untap them with: brew untap aws/tap Trust specific formulae, casks and commands with: brew trust --formula <user>/<tap>/<formula> brew trust --cask <user>/<tap>/<cask> brew trust --command <user>/<tap>/<command> Whole-tap trust is broader and includes all current and future formulae, casks and commands from the listed taps. Trust whole taps with: brew trust aws/tap To disable trust checks: export HOMEBREW_NO_REQUIRE_TAP_TRUST=1 This is not recommended and will be removed in a later release. For more information, see: https://docs.brew.sh/Tap-Trust
Windows (free-threading) / Build and test (arm64, switch-case): Modules/_interpchannelsmodule.c#L2938
'function': conversion from 'int64_t' to 'int', possible loss of data [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (arm64, switch-case): Modules/main.c#L241
'pymain_import_readline': 'void' function returning a value [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (arm64, switch-case): Modules/main.c#L224
'pymain_import_readline': 'void' function returning a value [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (arm64, switch-case): Modules/main.c#L221
'pymain_import_readline': 'void' function returning a value [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (arm64, switch-case): Modules/main.c#L218
'pymain_import_readline': 'void' function returning a value [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (arm64, switch-case): Modules/main.c#L214
'pymain_import_readline': 'void' function returning a value [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
macOS / build and test (macos-26)
`$HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set: not checking for outdated dependents or dependents with broken linkage!
macOS / build and test (macos-26)
The following taps are not trusted: aws/tap Homebrew is currently ignoring formulae, casks and commands from these taps because tap trust is required. Untap them with: brew untap aws/tap Trust specific formulae, casks and commands with: brew trust --formula <user>/<tap>/<formula> brew trust --cask <user>/<tap>/<cask> brew trust --command <user>/<tap>/<command> Whole-tap trust is broader and includes all current and future formulae, casks and commands from the listed taps. Trust whole taps with: brew trust aws/tap To disable trust checks: export HOMEBREW_NO_REQUIRE_TAP_TRUST=1 This is not recommended and will be removed in a later release. For more information, see: https://docs.brew.sh/Tap-Trust
macOS / build and test (macos-26-intel)
`$HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set: not checking for outdated dependents or dependents with broken linkage!
macOS / build and test (macos-26-intel)
The following taps are not trusted: aws/tap Homebrew is currently ignoring formulae, casks and commands from these taps because tap trust is required. Untap them with: brew untap aws/tap Trust specific formulae, casks and commands with: brew trust --formula <user>/<tap>/<formula> brew trust --cask <user>/<tap>/<cask> brew trust --command <user>/<tap>/<command> Whole-tap trust is broader and includes all current and future formulae, casks and commands from the listed taps. Trust whole taps with: brew trust aws/tap To disable trust checks: export HOMEBREW_NO_REQUIRE_TAP_TRUST=1 This is not recommended and will be removed in a later release. For more information, see: https://docs.brew.sh/Tap-Trust

Artifacts

Produced during runtime
Name Size Digest
UBSan-logs-default
360 Bytes
sha256:5775c1bdb4f8f1ccd7273a38193315818d568ca866d6f3cca165db082e16e8d2