Commit 6db1dd6
committed
Recognize crash mid OAuth2 token fetch as a network error
Windows security software that intercepts TLS (corporate antivirus,
proxies) can make mailsync's HTTPS client throw an uncaught C++
exception while fetching an OAuth2 access token, crashing the process
with SEH code 0xE06D7363 (the MSVC runtime's "C++ exception" signature)
before it can log the usual {"offline":true} marker. This bypassed the
existing network-failure detection in _buildCrashError, so every
occurrence surfaced to users as an unhelpful "unknown error" message
and was reported to Sentry as an unactionable crash (MAILSPRING-CLIENT-DH,
~100 Windows users hitting this exact exit code while linking a new
Gmail/Outlook account).
Detect this specific crash fingerprint - the known SEH code plus a log
tail showing the process died fetching an OAuth2 token - and classify
it the same as the existing offline-marker case.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BfBhpanbqfLKX7csCsArzN1 parent f1a64fe commit 6db1dd6
2 files changed
Lines changed: 56 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
328 | 337 | | |
329 | 338 | | |
330 | 339 | | |
331 | 340 | | |
332 | 341 | | |
333 | 342 | | |
334 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
335 | 347 | | |
336 | 348 | | |
337 | 349 | | |
| |||
0 commit comments