Commit 4c53d11
test(native): repro /dev/shm exhaustion on alpine/musl Docker CI
Add a Linux-only integration test that runs the native-backend crash
example 40 times in a row, well past the ~27-iteration threshold at
which Docker's default 64 MB /dev/shm fills with leaked /dev/shm/s-<id>
entries. With the leak present, the next ftruncate succeeds (lazy) but
the first page-fault from memset takes a SIGBUS and the app dies.
Also instrument sentry__crash_ipc_init_app on Linux/Android with raw
write(2) diagnostics around the new-shm ftruncate and the subsequent
memset, so a CI run can pinpoint the SIGBUS to the page-fault rather
than to ftruncate or any later step.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent bfa2c8f commit 4c53d11
2 files changed
Lines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
19 | 34 | | |
20 | 35 | | |
21 | 36 | | |
| |||
89 | 104 | | |
90 | 105 | | |
91 | 106 | | |
| 107 | + | |
92 | 108 | | |
93 | 109 | | |
94 | 110 | | |
| |||
99 | 115 | | |
100 | 116 | | |
101 | 117 | | |
| 118 | + | |
102 | 119 | | |
103 | 120 | | |
104 | 121 | | |
| |||
152 | 169 | | |
153 | 170 | | |
154 | 171 | | |
| 172 | + | |
155 | 173 | | |
| 174 | + | |
156 | 175 | | |
157 | 176 | | |
158 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
250 | 283 | | |
251 | 284 | | |
252 | 285 | | |
| |||
0 commit comments