python
system_error
ai_generated
partial
WorkerCrash: Worker 0 crashed with exit code -6 (SIGABRT)
ID: python/pytest-xdist-worker-crash
80%Fix Rate
85%Confidence
0Evidence
2024-10-05First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.8 | active | — | — | — |
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
| 3.11 | active | — | — | — |
| 3.12 | active | — | — | — |
Root Cause
A worker process in pytest-xdist crashed due to a segmentation fault or abort, often caused by a C extension bug or memory corruption.
generic中文
pytest-xdist 中的一个工作进程因段错误或中止而崩溃,通常由 C 扩展错误或内存损坏引起。
Workarounds
-
90% success
Run tests with a single worker to isolate the issue: `pytest -p no:xdist` or `pytest -n 0`
-
70% success
Use `pytest --timeout` to detect hanging tests and reduce memory usage, or debug with gdb to find the crash location.
Dead Ends
Common approaches that don't work:
-
80% fail
More workers may increase memory pressure and exacerbate the crash, not fix the underlying issue.
-
90% fail
The crash is likely reproducible and indicates a serious bug; ignoring it leads to unreliable test results.