Commit 87d1aee
Parser: install LLVM stack-trace signal handler in main
Install `llvm::sys::PrintStackTraceOnErrorSignal` at the top of `main()`
so a `SIGSEGV` / Windows SEH `STATUS_ACCESS_VIOLATION` from inside libclang
prints a backtrace to stderr instead of silently dying. Diagnostic-only —
no behavior change on the happy path.
With `RelWithDebInfo` builds (already the default per
`install_mrbind_windows_msys2.bat`), mrbind frames carry DWARF source
locations. libclang-cpp / libLLVM frames show function names only,
because msys2 strips DLL debug info.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 878c8c2 commit 87d1aee
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
3470 | 3472 | | |
3471 | 3473 | | |
3472 | 3474 | | |
| 3475 | + | |
| 3476 | + | |
| 3477 | + | |
| 3478 | + | |
| 3479 | + | |
| 3480 | + | |
| 3481 | + | |
3473 | 3482 | | |
3474 | 3483 | | |
3475 | 3484 | | |
| |||
0 commit comments