Commit 1d8446f
fix(crashtracking): resolve frames out-of-process on Linux (#9237)
The Linux/non-Linux resolve mode selection compared `os.platform`, the
function reference, against the string 'linux'. That comparison is
always false, so Linux always fell through to
'EnabledWithInprocessSymbols' instead of the intended
'EnabledWithSymbolsInReceiver'. Out-of-process symbolication is the
only supported path on Linux (per the adjacent comment and the
crashtracking team's original guidance), so in-process symbolication
during a live crash could leave the crash report unwritten.
Call `platform()` so the real platform is evaluated. Add a unit test
asserting resolve_frames matches the running platform, which fails
against the old code on Linux.1 parent 7e4082d commit 1d8446f
2 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
92 | 103 | | |
93 | 104 | | |
94 | 105 | | |
| |||
0 commit comments