Commit 20e32cb
committed
Skip pseudo-libraries like [vdso] during symbolication
Pseudo-modules such as [vdso], [vsyscall], [heap], [stack] and
[anon:...] are kernel- or allocator-provided mappings that have no
symbol files, so requesting symbols for them is always pointless.
Worse, it is now actively harmful because the Mozilla symbolication
server (Eliot) rejects the entire batched /symbolicate/v5 request with
an HTTP 400 ("job N has invalid modules: module index 0 has an invalid
debug_filename") when any job's module name contains brackets. Because
we batch up to 10 libraries into a single request, that 400 has no
`results` field and our response validation throws for the whole chunk,
so every other library in it (most importantly libxul) fails to
symbolicate too. The net effect is a profile with no symbols at all,
even though the symbols are available on the server.
This was previously harmless, Eliot (I think) used to tolerate [vdso],
returning found_modules: false for that job while symbolicating the
rest, which only produced a per-library warning in the console.1 parent 1a7c76c commit 20e32cb
2 files changed
Lines changed: 34 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
248 | 266 | | |
249 | 267 | | |
250 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
273 | 277 | | |
274 | 278 | | |
275 | 279 | | |
| |||
291 | 295 | | |
292 | 296 | | |
293 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
294 | 301 | | |
295 | 302 | | |
296 | 303 | | |
| |||
367 | 374 | | |
368 | 375 | | |
369 | 376 | | |
370 | | - | |
| 377 | + | |
371 | 378 | | |
372 | 379 | | |
373 | 380 | | |
| |||
379 | 386 | | |
380 | 387 | | |
381 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
382 | 397 | | |
383 | 398 | | |
384 | 399 | | |
| |||
0 commit comments