intel / intel/torch-xpu-ops

[upstream_ut] test_terminate_handler_on_crash: AbortHandler message not emitted

Open
#5,309 0 comments 0 reactions 0 assignees View on GitHub
test: ut
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.