Commit f243789
authored
handle ESRCH in more ptrace callsites (#91)
we are seeing processes exit with the following:
```
run process: run_parent03:44
Caused by:03:44
0: handle_syscall pid=11203:44
1: get_target_path03:44
2: ptrace::getregs03:44
3: ESRCH: No such process
```
a traced process can exit at any time so any ptrace calls that operate
on the pid must check esrch to see if the traced process has exited and
handle it appropriately
we already do it in a bunch of places but do it in more1 parent 3dfa2da commit f243789
File tree
6 files changed
+29
-11
lines changed- npm
- darwin-arm64
- darwin-x64
- linux-x64-gnu
- src
6 files changed
+29
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| |||
483 | 487 | | |
484 | 488 | | |
485 | 489 | | |
486 | | - | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
487 | 500 | | |
488 | 501 | | |
489 | 502 | | |
| |||
514 | 527 | | |
515 | 528 | | |
516 | 529 | | |
517 | | - | |
| 530 | + | |
518 | 531 | | |
519 | 532 | | |
520 | 533 | | |
521 | 534 | | |
522 | 535 | | |
523 | 536 | | |
524 | 537 | | |
525 | | - | |
526 | | - | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
527 | 545 | | |
528 | 546 | | |
529 | 547 | | |
| |||
0 commit comments