[upstream_ut] test_terminate_handler_on_crash: AbortHandler message not emitted
- Dominant language
- Python
- Stars
- 113
- Forks
- 128
- Avg merge
- 5d 9h
- Merged PRs (30d)
- 112
Description
## Description
`test_terminate_handler_on_crash` (TestTorch, device-agnostic) fails in the XPU test run: the expected AbortHandler message is missing (subprocess output empty).
## Error log
```
File "test/test_torch.py", line 9690, in test_terminate_handler_on_crash
self.assertIn('Unhandled exception caught in c10/util/AbortHandler.h', output)
AssertionError: 'Unhandled exception caught in c10/util/AbortHandler.h' not found in ''
```
## Reproduce
Using pytorch/pytorch#196421 on a PVC machine:
```
python test/test_torch.py TestTorch.test_terminate_handler_on_crash
```
## Expected
The terminate handler prints the AbortHandler message on crash.
_Filed with AI assistance; reproduced per the details above._
Contributor guide
Research direction
Start by running python test/test_torch.py TestTorch.test_terminate_handler_on_crash on the reported PVC machine and inspect test/test_torch.py around test_terminate_handler_on_crash. Trace why the XPU subprocess output is empty instead of containing the AbortHandler message. Done means the test passes with the expected message emitted during the crash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, python
- Domain
- backend, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100