Commit 23d90c0
test(profiler): don't start real kineto in step-fault test (fixes teardown segfault)
test_step_failure_disables_without_raising started a real torch.profiler
session, then nulled self.prof via the fault path without stopping it. The
orphaned libkineto session crashed at interpreter shutdown (exit 139),
surfacing as a CPU-CI teardown segfault after all tests passed. Swap the
faulting stub in before start() so no real profiler is ever opened; the
swallow-and-disable path is still exercised.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 421c669 commit 23d90c0
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | 150 | | |
152 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
153 | 161 | | |
154 | 162 | | |
155 | 163 | | |
156 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
157 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
158 | 173 | | |
159 | 174 | | |
160 | 175 | | |
| |||
0 commit comments