Commit a89b9cb
committed
Cygwin: Only return true from try_to_debug() if we launched a JIT debugger
This fixes constantly replaying the exception if we have a segfault
while a debugger is already attached, e.g. stracing a segv, see:
https://cygwin.com/pipermail/cygwin/2025-May/258144.html
Future work:
The 'debugging' static in exception::handle(), which makes us replay the
exception the next half a million times it's hit seems like cruft, maybe
we should look at if it's possible to remove that?
Fixes: 9145737 ("Cygwin: Make 'ulimit -c' control writing a coredump")
Reported-by: Christian Franke <[email protected]>
Signed-off-by: Jon Turney <[email protected]>
(cherry picked from commit b39b510)1 parent ffb3379 commit a89b9cb
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
| 600 | + | |
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
| |||
812 | 812 | | |
813 | 813 | | |
814 | 814 | | |
| 815 | + | |
| 816 | + | |
815 | 817 | | |
816 | 818 | | |
817 | 819 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments