https://github.com/mitar/moby-45622
Test for https://github.com/moby/moby/issues/45622
https://github.com/mitar/moby-45622
Last synced: about 1 year ago
JSON representation
Test for https://github.com/moby/moby/issues/45622
- Host: GitHub
- URL: https://github.com/mitar/moby-45622
- Owner: mitar
- Created: 2023-07-15T22:06:14.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-15T22:21:04.000Z (almost 3 years ago)
- Last Synced: 2025-02-15T13:24:58.187Z (over 1 year ago)
- Language: C
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Run:
```
docker run -t -i --rm -v "$(pwd):/code" ubuntu:jammy /bin/bash
apt-get update
apt-get install --yes build-essential
cd /code
make
./main
```
Expected output:
```
Start
Fork
Child's PID is 454850
Sleep
Pause in the child
ptrace start
PTRACE_SEIZE
PTRACE_INTERRUPT
waitpid
PTRACE_DETACH
ptrace success
pidfd_getfd start
pidfd_open
pidfd_getfd
kcmp
pidfd_getfd success
kcmp start
kcmp
kcmp success
Kill child
Wait for child
End
```
So important are `ptrace success`, `pidfd_getfd success`, and `kcmp success`.