Repository navigation
Conversation
…rge) Bare `pytest ...` (invoking the compiled Scripts\pytest.exe launcher stub) crashes with "Windows fatal exception: code 0xc0000139" collecting the known-failing test files even WITHOUT xdist (confirmed in the sibling ci-diag/no-xdist-single-process PR), ruling out pytest-xdist/execnet's threading model as the cause. A plain `python -c "from grass.pygrass import utils"` and a sequential import of every grass.lib.* submodule both succeed in a single process (see the other sibling diagnostic PRs), and every dumpbin export/import diff of grass_gis.8.6.dll's dependency chain came back clean. The one concrete difference left between the crashing and non-crashing cases: pytest was invoked via the pytest.exe launcher stub (Scripts\pytest.exe\__main__.py), not python.exe directly. This tests the same collection through `python -m pytest` instead, which runs inside the already-running python.exe process with no separate launcher stub, to see if that alone avoids the crash. Temporary, for CI investigation only. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Seventh diagnostic in this investigation. Ruled out so far:
grass_gis.8.6.dll's own dependency chain -- all clean.
from grass.pygrass import utilsimport -- nocrash.
-- no crash (rules out raw DLL-count/TLS-slot exhaustion).
pytest ...with no xdist/-n flag at all --still crashes with the same
Windows fatal exception: code 0xc0000139(seeci-diag/no-xdist-single-process), ruling out pytest-xdist/execnet's
threading model.
So the crash isn't about parallelism, symbol tables, or DLL count --
it's specifically tied to pytest's own test collection somehow. One
concrete, testable difference remains: the crashing runs invoke
pytest ...directly, which resolves to the compiledScripts\pytest.exelauncher stub(
Scripts\pytest.exe\__main__.pyappears in the crash traceback),whereas the passing standalone tests ran via
python -c .../python <script>.pydirectly.What this PR does
Runs the same two known-failing test files
(
test_i_gensig.py,lib/arraystats/tests) throughpython -m pytestinstead of barepytest, which executes pytest'scode inside the already-running
python.exeprocess with no separatelauncher-stub executable, to see if that alone avoids the crash.
This PR is for CI investigation only and is not meant to be merged.
🤖 Generated with Claude Code