Skip to content

gh-116738: Make _json module safe in the free-threading build #164731

gh-116738: Make _json module safe in the free-threading build

gh-116738: Make _json module safe in the free-threading build #164731

Triggered via pull request August 27, 2025 13:01
Status Failure
Total duration 15m 6s
Artifacts

build.yml

on: pull_request
Change detection  /  Create context from changed files
34s
Change detection / Create context from changed files
Matrix: build-android
Matrix: Address sanitizer
Matrix: build-macos
Matrix: build-san
Matrix: Ubuntu SSL tests with AWS-LC
Matrix: Ubuntu SSL tests with OpenSSL
Matrix: build-ubuntu
Matrix: build-windows-msi
Waiting for pending jobs
Matrix: build-windows
Matrix: CIFuzz
Docs  /  Docs
2m 14s
Docs / Docs
Docs  /  Doctest
2m 24s
Docs / Doctest
Docs  /  Check EPUB
2m 0s
Docs / Check EPUB
Check if Autoconf files are up to date
29s
Check if Autoconf files are up to date
Check if generated files are up to date
12m 34s
Check if generated files are up to date
WASI  /  build and test
2m 17s
WASI / build and test
Hypothesis tests on Ubuntu
2m 50s
Hypothesis tests on Ubuntu
Cross build Linux
3m 9s
Cross build Linux
All required checks pass
6s
All required checks pass
Fit to window
Zoom out
Zoom in

Annotations

50 errors, 20 warnings, and 3 notices
Android (aarch64)
Process completed with exit code 1.
Sanitizers / TSan (free-threading)
Process completed with exit code 2.
Android (x86_64)
Process completed with exit code 1.
macOS (free-threading) / build and test (ghcr.io/cirruslabs/macos-runner:sonoma)
Process completed with exit code 2.
Sanitizers / UBSan
Process completed with exit code 2.
Windows / Build and test (Win32)
Process completed with exit code 1.
Windows (free-threading) / Build and test (x64)
Process completed with exit code 1.
Docs / Check EPUB
Process completed with exit code 1.
macOS / build and test (ghcr.io/cirruslabs/macos-runner:sonoma)
Process completed with exit code 2.
Docs / Docs
Process completed with exit code 2.
WASI / build and test
Process completed with exit code 1.
macOS / build and test (macos-13)
Process completed with exit code 2.
Docs / Doctest
Process completed with exit code 2.
Windows / Build and test (x64)
Process completed with exit code 1.
Hypothesis tests on Ubuntu
Process completed with exit code 2.
Hypothesis tests on Ubuntu: Modules/_json.c#L1856
implicit declaration of function ‘Py_END_CRITICAL_SECTION_SEQUENCE_FAST’ [-Werror=implicit-function-declaration]
Hypothesis tests on Ubuntu: Modules/_json.c#L1853
implicit declaration of function ‘Py_BEGIN_CRITICAL_SECTION_SEQUENCE_FAST’; did you mean ‘Py_BEGIN_CRITICAL_SECTION_MUTEX’? [-Werror=implicit-function-declaration]
Windows (free-threading) / Build and test (arm64)
Process completed with exit code 1.
Windows / Build and test (arm64)
Process completed with exit code 1.
Cross build Linux
Process completed with exit code 2.
Cross build Linux: Modules/_json.c#L1856
implicit declaration of function ‘Py_END_CRITICAL_SECTION_SEQUENCE_FAST’ [-Werror=implicit-function-declaration]
Cross build Linux: Modules/_json.c#L1853
implicit declaration of function ‘Py_BEGIN_CRITICAL_SECTION_SEQUENCE_FAST’; did you mean ‘Py_BEGIN_CRITICAL_SECTION_MUTEX’? [-Werror=implicit-function-declaration]
Ubuntu / build and test (ubuntu-24.04-arm)
Process completed with exit code 2.
Ubuntu / build and test (ubuntu-24.04-arm): Modules/_json.c#L1856
implicit declaration of function ‘Py_END_CRITICAL_SECTION_SEQUENCE_FAST’ [-Werror=implicit-function-declaration]
Ubuntu / build and test (ubuntu-24.04-arm): Modules/_json.c#L1853
implicit declaration of function ‘Py_BEGIN_CRITICAL_SECTION_SEQUENCE_FAST’; did you mean ‘Py_BEGIN_CRITICAL_SECTION_MUTEX’? [-Werror=implicit-function-declaration]
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/_json.c#L1856
implicit declaration of function ‘Py_END_CRITICAL_SECTION_SEQUENCE_FAST’ [-Werror=implicit-function-declaration]
Ubuntu (free-threading) / build and test (ubuntu-24.04-arm): Modules/_json.c#L1853
implicit declaration of function ‘Py_BEGIN_CRITICAL_SECTION_SEQUENCE_FAST’; did you mean ‘Py_BEGIN_CRITICAL_SECTION_MUTEX’? [-Werror=implicit-function-declaration]
Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.2.5)
Process completed with exit code 2.
Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.0.17)
Process completed with exit code 2.
Ubuntu SSL tests with AWS-LC (ubuntu-24.04, 1.55.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/_json.c#L1856
implicit declaration of function ‘Py_END_CRITICAL_SECTION_SEQUENCE_FAST’ [-Werror=implicit-function-declaration]
Ubuntu / build and test (ubuntu-24.04): Modules/_json.c#L1853
implicit declaration of function ‘Py_BEGIN_CRITICAL_SECTION_SEQUENCE_FAST’; did you mean ‘Py_BEGIN_CRITICAL_SECTION_MUTEX’? [-Werror=implicit-function-declaration]
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/_json.c#L1856
implicit declaration of function ‘Py_END_CRITICAL_SECTION_SEQUENCE_FAST’ [-Werror=implicit-function-declaration]
Ubuntu (free-threading) / build and test (ubuntu-24.04): Modules/_json.c#L1853
implicit declaration of function ‘Py_BEGIN_CRITICAL_SECTION_SEQUENCE_FAST’; did you mean ‘Py_BEGIN_CRITICAL_SECTION_MUTEX’? [-Werror=implicit-function-declaration]
Address sanitizer (ubuntu-24.04)
Process completed with exit code 2.
Address sanitizer (ubuntu-24.04): Modules/_json.c#L1856
implicit declaration of function ‘Py_END_CRITICAL_SECTION_SEQUENCE_FAST’ [-Werror=implicit-function-declaration]
Address sanitizer (ubuntu-24.04): Modules/_json.c#L1853
implicit declaration of function ‘Py_BEGIN_CRITICAL_SECTION_SEQUENCE_FAST’; did you mean ‘Py_BEGIN_CRITICAL_SECTION_MUTEX’? [-Werror=implicit-function-declaration]
Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.3.4)
Process completed with exit code 2.
Ubuntu (bolt) / build and test (ubuntu-24.04)
Process completed with exit code 2.
Ubuntu (bolt) / build and test (ubuntu-24.04): Modules/_json.c#L1856
implicit declaration of function ‘Py_END_CRITICAL_SECTION_SEQUENCE_FAST’ [-Werror=implicit-function-declaration]
Ubuntu (bolt) / build and test (ubuntu-24.04): Modules/_json.c#L1853
implicit declaration of function ‘Py_BEGIN_CRITICAL_SECTION_SEQUENCE_FAST’; did you mean ‘Py_BEGIN_CRITICAL_SECTION_MUTEX’? [-Werror=implicit-function-declaration]
Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.5.2)
Process completed with exit code 2.
Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.4.2)
Process completed with exit code 2.
Check if generated files are up to date
Process completed with exit code 2.
Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 1.1.1w)
Process completed with exit code 2.
Sanitizers / TSan
Process completed with exit code 2.
All required checks pass
Process completed with exit code 1.
macOS (free-threading) / build and test (ghcr.io/cirruslabs/macos-runner:sonoma)
`$HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set: not checking for outdated dependents or dependents with broken linkage!
macOS (free-threading) / build and test (ghcr.io/cirruslabs/macos-runner:sonoma)
xz 5.8.1 is already installed and up-to-date. To reinstall 5.8.1, run: brew reinstall xz
macOS (free-threading) / build and test (ghcr.io/cirruslabs/macos-runner:sonoma)
pkgconf 2.5.1 is already installed and up-to-date. To reinstall 2.5.1, run: brew reinstall pkgconf
Windows (free-threading) / Build and test (x64): Modules/_json.c#L1856
'Py_END_CRITICAL_SECTION_SEQUENCE_FAST' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (x64): Modules/_json.c#L1853
'Py_BEGIN_CRITICAL_SECTION_SEQUENCE_FAST' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
macOS / build and test (ghcr.io/cirruslabs/macos-runner:sonoma)
`$HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set: not checking for outdated dependents or dependents with broken linkage!
macOS / build and test (ghcr.io/cirruslabs/macos-runner:sonoma)
xz 5.8.1 is already installed and up-to-date. To reinstall 5.8.1, run: brew reinstall xz
macOS / build and test (ghcr.io/cirruslabs/macos-runner:sonoma)
pkgconf 2.5.1 is already installed and up-to-date. To reinstall 2.5.1, run: brew reinstall pkgconf
macOS / build and test (macos-13)
`$HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set: not checking for outdated dependents or dependents with broken linkage!
macOS / build and test (macos-13)
tcl-tk@8 8.6.17 is already installed and up-to-date. To reinstall 8.6.17, run: brew reinstall tcl-tk@8
macOS / build and test (macos-13)
gdbm 1.26 is already installed and up-to-date. To reinstall 1.26, run: brew reinstall gdbm
macOS / build and test (macos-13)
xz 5.8.1 is already installed and up-to-date. To reinstall 5.8.1, run: brew reinstall xz
macOS / build and test (macos-13)
pkgconf 2.5.1 is already installed and up-to-date. To reinstall 2.5.1, run: brew reinstall pkgconf
Windows / Build and test (x64): Modules/_json.c#L1856
'Py_END_CRITICAL_SECTION_SEQUENCE_FAST' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (x64): Modules/_json.c#L1853
'Py_BEGIN_CRITICAL_SECTION_SEQUENCE_FAST' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
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.
Windows (free-threading) / Build and test (arm64): Modules/_json.c#L1856
'Py_END_CRITICAL_SECTION_SEQUENCE_FAST' undefined; assuming extern returning int [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (arm64): Modules/_json.c#L1853
'Py_BEGIN_CRITICAL_SECTION_SEQUENCE_FAST' undefined; assuming extern returning int [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (arm64): Modules/_json.c#L1856
'Py_END_CRITICAL_SECTION_SEQUENCE_FAST' undefined; assuming extern returning int [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (arm64): Modules/_json.c#L1853
'Py_BEGIN_CRITICAL_SECTION_SEQUENCE_FAST' undefined; assuming extern returning int [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (Win32)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
Windows (free-threading) / Build and test (x64)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
Windows / Build and test (x64)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677