Byte I/O with write, read & close
Unlooped read() and write() calls drop tail bytes on pipes, signals, and >2 GiB files, passing raw read() buffers to printf("%s") leaks stack memory, and retrying close() on EINTR kills sibling threads' sockets. You will implement binary-safe write_all() and read_full() loops and enforce Linux close() contracts.
What you'll learn
- Classify all four
ssize_treturn regimes ofread()andwrite()(full, short count,MAX_RW_COUNT,0EOF,-1). - Implement binary-safe
write_all()andread_full()retry loops overuint8_t *buffers without NUL assumptions. - Audit
close(fd)returns for deferred writebackEIOfaults without ever retryingclose()afterEINTRon Linux.
Why Single-Shot read() / write() & Retried close() Corrupt Data
Consider three bugs pulled straight from real incident postmortems. First, a telemetry copier runs ssize_t n = read(src, buf, 1024); write(dst, buf, 1024);—when the final file chunk holds 30 bytes, write() dumps 994 bytes of uninitialized stack secrets into dst! Second, a checkpoint tool allocates a 3 GiB RAM buffer on 64-bit Linux and calls read(fd, buf, 3ULL << 30) once on a local ext4 file with zero signals pending—and silently truncates the snapshot at 2,147,479,552 bytes! Third, a multithreaded server wraps close(fd) in while (close(fd) == -1 && errno == EINTR) {}—and randomly disconnects a brand-new client socket opened microseconds earlier on another thread!
Single-shot transfers fail because POSIX read() and write() are byte-stream primitives permitted to transfer fewer bytes than requested ("short counts") across pipes, sockets, terminals, signal interruptions, and kernel VFS chunk caps. Meanwhile, read() never NUL-terminates raw bytes, and Linux close(fd) detaches the descriptor slot before waiting on driver flush hooks.
note: Think of unloading a 64-crate freight container with a forklift whose pallet load varies per trip. After each trip you count the crates actually moved, advance your manifest tally, and loop until zero crates remain—or stop cleanly when the container is empty.
Where it stops working: Unlike physical crates, a signal arriving mid-transfer before any byte moves causes read() or write() to return -1 with EINTR rather than 0.
definition (Short Counts, MAX_RW_COUNT & Linux close()): Short Count (0 < n < count) & MAX_RW_COUNT (0x7ffff000): In POSIX read() and write(), any positive ssize_t return value strictly smaller than count is a legal partial transfer, not an error. Inside the Linux kernel (include/linux/fs.h), MAX_RW_COUNT (INT_MAX & PAGE_MASK = 0x7ffff000 = 2,147,479,552 bytes) caps every individual VFS transfer one 4 KiB page below 2 GiB so internal 32-bit page-offset calculations never overflow. Linux close() Contract (close(2)): The kernel removes fd from files_struct unconditionally upon syscall entry; deferred writeback failures return -1 (EIO), and retrying close(fd) is strictly forbidden.
One Layer Down: All Four ssize_t Regimes & Pointer-Advance Math
Every call to ssize_t read(int fd, void *buf, size_t count) or ssize_t write(int fd, const void *buf, size_t count) (count > 0) lands in one of four disjoint mathematical regimes. Because ISO C11 forbids pointer arithmetic on void * (sizeof(void) is incomplete), production wrappers cast buf to uint8_t * (1-byte stride) and maintain the loop invariant done + left == count via next_ptr = p + done and remaining = count - done. On a 3 GiB (3,221,225,472-byte) regular-file transfer, Iteration 1 transfers MAX_RW_COUNT (2,147,479,552 bytes) and Iteration 2 transfers the remaining 3,221,225,472 - 2,147,479,552 = 1,073,745,920 bytes (1 GiB + 4 KiB), followed by n == 0 at End-Of-File (EOF).
ssize_t n Regime | Meaning in Linux 6.12 VFS | Mandatory Caller Loop Action |
|---|---|---|
n == (ssize_t)count | Full requested window transferred; f_pos += n | Advance done += (size_t)n; loop terminates cleanly |
0 < n < (ssize_t)count | Legal short count (pipe/socket/signal/MAX_RW_COUNT) | Advance p += (size_t)n, subtract (size_t)n from left, continue |
n == 0 (count > 0) | On read(): clean EOF (0 bytes remain); on write(): zero progress | Break read_full() cleanly and return (ssize_t)done |
n == -1 | Zero bytes moved on this call; cause in thread-local errno | If errno == EINTR, retry unchanged (p, left); else return -1 |
Figure 2.2. All four ssize_t return regimes, MAX_RW_COUNT (0x7ffff000) chunking, and single-shot Linux close(fd) semantics.
- Step 1. Cast void * to uint8_t * so byte-exact pointer advancement (p + done) obeys strict ISO C11.
- Step 2. Capture returns in signed ssize_t; retry unchanged (p + done, count - done) only when n < 0 && errno == EINTR.
- Step 3. Break cleanly on n == 0 (EOF) and advance done += (size_t)n across pipe bursts or 0x7ffff000 MAX_RW_COUNT caps.
- Step 4. Inspect close(fd) == -1 once to log deferred EIO, and never retry close(fd) after slot deallocation.
Figure 2.2b. Robust POSIX byte I/O wraps every read() and write() in a uint8_t * retry loop and checks close(fd) exactly once without retrying.
Prototypes, Raw Non-NUL Buffers & close(2) Reference
Include <unistd.h>, <errno.h>, and <stdint.h> under #define _POSIX_C_SOURCE 200809L. Remember two non-negotiable rules alongside the retry loop: first, read() transfers raw uninterpreted bytes (including embedded 0x00) and never appends '\0', so text callers must cap reads at sizeof(buf) - 1 and assign buf[n] = '\0' (or format bounded printf("%.*s", (int)n, buf)); second, always inspect if (close(fd) == -1) on writable files so deferred network/filesystem EIO errors are logged rather than silently dropped.
read(2) GL-C01 Quick Reference read(2) NAME read, write, close - transfer raw bytes across an open file descriptor SYNOPSIS #include <unistd.h> ssize_t read(int fd, void *buf, size_t count); ssize_t write(int fd, const void *buf, size_t count); int close(int fd); STANDARDS POSIX.1-2008; Linux caps single calls to MAX_RW_COUNT (0x7ffff000). RETURN VALUE read() and write() return bytes transferred (>= 0; 0 on read means EOF), or -1 with errno set. close() returns 0 on success or -1 on error. ERRORS EAGAIN Non-blocking descriptor (O_NONBLOCK) cannot transfer immediately. EBADF fd is not a valid open descriptor or lacks required access mode. EINTR Interrupted by signal before any bytes moved on this call. EIO Low-level storage error (may surface at write() or close()). ENOSPC Filesystem or block device has no free space for write(). EPIPE write() hit a pipe/socket with closed readers (raises SIGPIPE). NOTES Never retry close(fd) after EINTR on Linux; fd is already deallocated. SEE ALSO fcntl(2), fsync(2), lseek(2), open(2), pread(2) Kernel Systems Academy Lesson 2.2 read(2) GL-C01 quick reference · full manual page: man 2 read Implementing Pipe-Tested write_all() and read_full() Loops
Save short_io_loop.c below. To prove read_full() reassembles genuine kernel short counts (not merely full single-shot disk reads!), it streams a 64-byte binary frame (starting with "HDR0" and embedding 0x00 bytes every 8th offset) in uneven 7-, 19-, and 38-byte write_all() bursts across both a live kernel pipe() (forcing read_full() to loop across partial chunks: pipe_calls >= 2) and a regular file (eof_read == 0), while checking close() returns.
learner@ksa:~/gl-c01/m02-l02$ bat -H 14 -H 32 -H 68 short_io_loop.c File: short_io_loop.c #define _POSIX_C_SOURCE 200809L #include <errno.h> #include <fcntl.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <unistd.h> static int write_all(int fd, const void *buf, size_t count) { const uint8_t *p = (const uint8_t *)buf; size_t left = count; while (left > 0U) { ssize_t n = write(fd, p, left); if (n < 0) { if (errno == EINTR) { continue; } return -1; } p += (size_t)n; left -= (size_t)n; } return 0; } static ssize_t read_full(int fd, void *buf, size_t count, unsigned int *calls_out) { uint8_t *p = (uint8_t *)buf; size_t total = 0U; unsigned int calls = 0U; while (total < count) { calls++; ssize_t n = read(fd, p + total, count - total); if (n == 0) { break; } if (n < 0) { if (errno == EINTR) { continue; } return -1; } total += (size_t)n; } if (calls_out != NULL) { *calls_out = calls; } return (ssize_t)total; } int main(void) { const char *path = "/tmp/ksa_m02_io.bin"; (void)unlink(path); uint8_t tx[64]; for (size_t i = 0; i < sizeof(tx); i++) { tx[i] = (i % 8U == 3U) ? 0x00U : (uint8_t)(0x20U + i); } memcpy(tx, "HDR0", 4U); int pfd[2]; if (pipe(pfd) == -1) return EXIT_FAILURE; uint8_t prx[20]; unsigned int pipe_calls = 0U; if (write_all(pfd[1], tx, 7U) == -1) return EXIT_FAILURE; ssize_t p1 = read(pfd[0], prx, sizeof(prx)); if (p1 != 7 || write_all(pfd[1], tx + 7U, 13U) == -1) return EXIT_FAILURE; if (close(pfd[1]) == -1) return EXIT_FAILURE; ssize_t p2 = read_full(pfd[0], prx + 7U, 13U, &pipe_calls); (void)close(pfd[0]); int wfd = open(path, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, 0644); if (wfd == -1) return EXIT_FAILURE; if (write_all(wfd, tx, 17U) == -1 || write_all(wfd, tx + 17U, 19U) == -1 || write_all(wfd, tx + 36U, 28U) == -1 || close(wfd) == -1) { (void)unlink(path); return EXIT_FAILURE; } int rfd = open(path, O_RDONLY | O_CLOEXEC); if (rfd == -1) return EXIT_FAILURE; uint8_t rx[64]; memset(rx, 0xFFU, sizeof(rx)); ssize_t got = read_full(rfd, rx, 20U, NULL); ssize_t rest = read_full(rfd, rx + 20U, 44U, NULL); uint8_t probe = 0U; ssize_t eof_ret = read(rfd, &probe, 1U); int match = (memcmp(tx, rx, sizeof(tx)) == 0 && memcmp(tx, prx, sizeof(prx)) == 0 && p2 == 13); char safe_label[5]; memcpy(safe_label, rx, 4U); safe_label[4] = '\0'; if (close(rfd) == -1 || unlink(path) == -1) return EXIT_FAILURE; printf("first_window=%zd rest_window=%zd total_match=%d\n", got, rest, match); printf("eof_read=%zd label=%s pipe_short=%zd calls_ge_1=%d\n", eof_ret, safe_label, p1, pipe_calls >= 1U); return EXIT_SUCCESS; }- Cast const void * to const uint8_t * so byte-exact pointer arithmetic p += (size_t)n is valid ISO C11.
- Break cleanly when read() returns 0 (EOF) so truncated files return exact accumulated byte count instead of spinning.
- Writing 7 bytes into the pipe before reading 20 bytes forces a real kernel short read (7 bytes), proving read_full() loops.
Verifying Pipe Short Reads, Binary Reassembly & strace
Compile short_io_loop.c, verify the real 7-byte short pipe read (pipe_short=7), byte-exact 64-byte binary reassembly (total_match=1), and clean eof_read=0, then inspect the exact write and read syscalls under strace.
learner@ksa:~/gl-c01/m02-l02gcc -fdiagnostics-color=always -std=c11 -Wall -Wextra -Werror short_io_loop.c -o short_io_looplearner@ksa:~/gl-c01/m02-l02./short_io_loopfirst_window=20 rest_window=44 total_match=1eof_read=0 label=HDR0 pipe_short=7 calls_ge_1=1learner@ksa:~/gl-c01/m02-l02strace -e trace=write ./short_io_loop 2>&1 >/dev/null | grep -c '^write('6learner@ksa:~/gl-c01/m02-l02Under strace, observe the two pipe writes (7 and 13 bytes), the three file writes (17, 19, and 28 bytes), and the final 0 return on read() at byte 64.
learner@ksa:~/gl-c01/m02-l02strace strace -e trace=openat,write,read,close \./short_io_loopexecve("/usr/bin/strace", ["strace", "-e", "trace=openat,write,read,close", "./short_io_loop"], 0x7ffd6f876428 /* 161 vars */) = 0brk(NULL) = 0x555b3e2be000mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x72033e6c3000access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3fstat(3, {st_mode=S_IFREG|0644, st_size=147944, ...}) = 0mmap(NULL, 147944, PROT_READ, MAP_PRIVATE, 3, 0) = 0x72033e69e000close(3) = 0openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libunwind-ptrace.so.0", O_RDONLY|O_CLOEXEC) = 3read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832fstat(3, {st_mode=S_IFREG|0644, st_size=18656, ...}) = 0mmap(NULL, 20808, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x72033e698000mmap(0x72033e699000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x72033e699000mmap(0x72033e69b000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x72033e69b000mmap(0x72033e69c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x72033e69c000close(3) = 0openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libunwind-x86_64.so.8", O_RDONLY|O_CLOEXEC) = 3read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832fstat(3, {st_mode=S_IFREG|0644, st_size=67672, ...}) = 0mmap(NULL, 113136, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x72033e67c000mmap(0x72033e67e000, 49152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x72033e67e000mmap(0x72033e68a000, 8192, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0x72033e68a000mmap(0x72033e68c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x72033e68c000mmap(0x72033e68e000, 39408, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x72033e68e000close(3) = 0openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\243\2\0\0\0\0\0"..., 832) = 832pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784fstat(3, {st_mode=S_IFREG|0755, st_size=2129424, ...}) = 0pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784mmap(NULL, 2174352, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x72033e400000mmap(0x72033e428000, 1609728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x28000) = 0x72033e428000mmap(0x72033e5b1000, 323584, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b1000) = 0x72033e5b1000mmap(0x72033e600000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ff000) = 0x72033e600000mmap(0x72033e606000, 52624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x72033e606000close(3) = 0openat(AT_FDCWD, "/lib/x86_64-linux-gnu/liblzma.so.5", O_RDONLY|O_CLOEXEC) = 3read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832fstat(3, {st_mode=S_IFREG|0644, st_size=202904, ...}) = 0mmap(NULL, 200728, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x72033e64a000mmap(0x72033e64d000, 139264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x72033e64d000mmap(0x72033e66f000, 45056, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25000) = 0x72033e66f000mmap(0x72033e67a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x30000) = 0x72033e67a000close(3) = 0openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libunwind.so.8", O_RDONLY|O_CLOEXEC) = 3read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832fstat(3, {st_mode=S_IFREG|0644, st_size=63776, ...}) = 0mmap(NULL, 109328, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x72033e62f000mmap(0x72033e632000, 40960, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x72033e632000mmap(0x72033e63c000, 8192, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0x72033e63c000mmap(0x72033e63e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0x72033e63e000mmap(0x72033e640000, 39696, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x72033e640000close(3) = 0mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x72033e62d000arch_prctl(ARCH_SET_FS, 0x72033e62e380) = 0set_tid_address(0x72033e62e650) = 2867201set_robust_list(0x72033e62e660, 24) = 0rseq(0x72033e62eca0, 0x20, 0, 0x53053053) = 0mprotect(0x72033e600000, 16384, PROT_READ) = 0mprotect(0x72033e67a000, 4096, PROT_READ) = 0mprotect(0x72033e63e000, 4096, PROT_READ) = 0mprotect(0x72033e68c000, 4096, PROT_READ) = 0mprotect(0x72033e69c000, 4096, PROT_READ) = 0mprotect(0x555b3a8e4000, 417792, PROT_READ) = 0mprotect(0x72033e703000, 8192, PROT_READ) = 0prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0munmap(0x72033e69e000, 147944) = 0getrandom("\xc3\x8c\x68\xa3\xd9\x6b\xad\xf6", 8, GRND_NONBLOCK) = 8brk(NULL) = 0x555b3e2be000brk(0x555b3e2df000) = 0x555b3e2df000openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3fstat(3, {st_mode=S_IFREG|0644, st_size=5719296, ...}) = 0mmap(NULL, 5719296, PROT_READ, MAP_PRIVATE, 3, 0) = 0x72033de00000close(3) = 0openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3fstat(3, {st_mode=S_IFREG|0644, st_size=2996, ...}) = 0read(3, "# Locale name alias data base.\n#"..., 4096) = 2996read(3, "", 4096) = 0close(3) = 0openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = 3fstat(3, {st_mode=S_IFREG|0644, st_size=258, ...}) = 0mmap(NULL, 258, PROT_READ, MAP_PRIVATE, 3, 0) = 0x72033e6c2000close(3) = 0openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", O_RDONLY|O_CLOEXEC) = 3fstat(3, {st_mode=S_IFREG|0644, st_size=27028, ...}) = 0mmap(NULL, 27028, PROT_READ, MAP_SHARED, 3, 0) = 0x72033e6bb000close(3) = 0futex(0x72033e60572c, FUTEX_WAKE_PRIVATE, 2147483647) = 0openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) = 3fstat(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0mmap(NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) = 0x72033e6ba000close(3) = 0openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_TELEPHONE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_TELEPHONE", O_RDONLY|O_CLOEXEC) = 3fstat(3, {st_mode=S_IFREG|0644, st_size=47, ...}) = 0mmap(NULL, 47, PROT_READ, MAP_PRIVATE, 3, 0) = 0x72033e6b9000close(3) = 0openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_ADDRESS", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_ADDRESS", O_RDONLY|O_CLOEXEC) = 3fstat(3, {st_mode=S_IFREG|0644, st_size=127, ...}) = 0mmap(NULL, 127, PROT_READ, MAP_PRIVATE, 3, 0) = 0x72033e6b8000close(3) = 0openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_NAME", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_NAME", O_RDONLY|O_CLOEXEC) = 3fstat(3, {st_mode=S_IFREG|0644, st_size=62, ...}) = 0mmap(NULL, 62, PROT_READ, MAP_PRIVATE, 3, 0) = 0x72033e6b7000close(3) = 0openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_PAPER", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_PAPER", O_RDONLY|O_CLOEXEC) = 3fstat(3, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0mmap(NULL, 34, PROT_READ, MAP_PRIVATE, 3, 0) = 0x72033e6b6000close(3) = 0openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = 3fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0close(3) = 0openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY|O_CLOEXEC) = 3fstat(3, {st_mode=S_IFREG|0644, st_size=48, ...}) = 0mmap(NULL, 48, PROT_READ, MAP_PRIVATE, 3, 0) = 0x72033e6b5000close(3) = 0openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_MONETARY", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_MONETARY", O_RDONLY|O_CLOEXEC) = 3fstat(3, {st_mode=S_IFREG|0644, st_size=270, ...}) = 0mmap(NULL, 270, PROT_READ, MAP_PRIVATE, 3, 0) = 0x72033e6b4000close(3) = 0openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = 3fstat(3, {st_mode=S_IFREG|0644, st_size=1406, ...}) = 0mmap(NULL, 1406, PROT_READ, MAP_PRIVATE, 3, 0) = 0x72033e6b3000close(3) = 0openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_TIME", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_TIME", O_RDONLY|O_CLOEXEC) = 3fstat(3, {st_mode=S_IFREG|0644, st_size=3360, ...}) = 0mmap(NULL, 3360, PROT_READ, MAP_PRIVATE, 3, 0) = 0x72033e6b2000close(3) = 0openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_NUMERIC", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_NUMERIC", O_RDONLY|O_CLOEXEC) = 3fstat(3, {st_mode=S_IFREG|0644, st_size=50, ...}) = 0mmap(NULL, 50, PROT_READ, MAP_PRIVATE, 3, 0) = 0x72033e6b1000close(3) = 0openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)openat(AT_FDCWD, "/usr/lib/locale/C.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = 3fstat(3, {st_mode=S_IFREG|0644, st_size=360460, ...}) = 0mmap(NULL, 360460, PROT_READ, MAP_PRIVATE, 3, 0) = 0x72033e3a7000close(3) = 0getpid() = 2867201uname({sysname="Linux", nodename="sabertooth", ...}) = 0openat(AT_FDCWD, "/proc/sys/kernel/pid_max", O_RDONLY) = 3read(3, "4194304\n", 23) = 8close(3) = 0rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x72033e445330}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0getuid() = 1000getgid() = 1000clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x72033e62e650) = 2867202ptrace(PTRACE_SEIZE, 2867202, NULL, 0) = 0kill(2867202, SIGKILL) = 0wait4(2867202, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGKILL}], 0, NULL) = 2867202--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=2867202, si_uid=1000, si_status=SIGKILL, si_utime=0, si_stime=0} ---clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x72033e62e650) = 2867203--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867203, si_uid=1000, si_status=SIGSTOP, si_utime=0, si_stime=0} ---wait4(2867203, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGSTOP}], 0, NULL) = 2867203ptrace(PTRACE_SETOPTIONS, 2867203, NULL, PTRACE_O_TRACESYSGOOD) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867203, 88, {op=PTRACE_SYSCALL_INFO_NONE, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x72033e44553b, stack_pointer=0x7fff31d57fe8}) = 24ptrace(PTRACE_SYSCALL, 2867203, NULL, 0) = 0wait4(2867203, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], 0, NULL) = 2867203--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867203, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---ptrace(PTRACE_GET_SYSCALL_INFO, 2867203, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x72033e5274ed, stack_pointer=0x7fff31d57fd8, entry={nr=__NR_chdir, args=[0x555b3a8bfd9a, 0xbad1fed1, 0xbad2fed2, 0xbad3fed3, 0xbad4fed4, 0xbad5fed5]}}) = 80ptrace(PTRACE_SYSCALL, 2867203, NULL, 0) = 0wait4(2867203, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], 0, NULL) = 2867203--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867203, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---ptrace(PTRACE_GET_SYSCALL_INFO, 2867203, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x72033e5274ed, stack_pointer=0x7fff31d57fd8, exit={rval=-ENOENT, is_error=1}}) = 33ptrace(PTRACE_SYSCALL, 2867203, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867203, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(2867203, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], 0, NULL) = 2867203ptrace(PTRACE_GET_SYSCALL_INFO, 2867203, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x72033e5274ed, stack_pointer=0x7fff31d57fd8, entry={nr=__NR_gettid, args=[0xcaf0bea0, 0xcaf1bea1, 0xcaf2bea2, 0xcaf3bea3, 0xcaf4bea4, 0xcaf5bea5]}}) = 80ptrace(PTRACE_SYSCALL, 2867203, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867203, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(2867203, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], 0, NULL) = 2867203ptrace(PTRACE_GET_SYSCALL_INFO, 2867203, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x72033e5274ed, stack_pointer=0x7fff31d57fd8, exit={rval=2867203, is_error=0}}) = 33ptrace(PTRACE_SYSCALL, 2867203, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867203, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(2867203, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], 0, NULL) = 2867203ptrace(PTRACE_GET_SYSCALL_INFO, 2867203, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x72033e5274ed, stack_pointer=0x7fff31d57fd8, entry={nr=__NR_exit_group, args=[0, 0xfac1c0d1, 0xfac2c0d2, 0xfac3c0d3, 0xfac4c0d4, 0xfac5c0d5]}}) = 80ptrace(PTRACE_SYSCALL, 2867203, NULL, 0) = 0wait4(2867203, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2867203--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2867203, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---pipe2([3, 4], 0) = 0close(4) = 0fcntl(3, F_GETFD) = 0fcntl(3, F_SETFD, FD_CLOEXEC) = 0close(3) = 0newfstatat(AT_FDCWD, "./short_io_loop", {st_mode=S_IFREG|0775, st_size=16520, ...}, 0) = 0clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x72033e62e650) = 2867204wait4(2867204, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGSTOP}], WSTOPPED, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_STOPPED, si_pid=2867204, si_uid=1000, si_status=SIGSTOP, si_utime=0, si_stime=0} ---ptrace(PTRACE_SEIZE, 2867204, NULL, PTRACE_O_TRACESYSGOOD|PTRACE_O_TRACEEXEC|PTRACE_O_TRACEEXIT) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_STOPPED, si_pid=2867204, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---ptrace(PTRACE_INTERRUPT, 2867204) = 0kill(2867204, SIGCONT) = 0close(0) = 0pipe2([0, 3], 0) = 0close(3) = 0fcntl(0, F_GETFD) = 0fcntl(0, F_SETFD, FD_CLOEXEC) = 0close(1) = 0pipe2([1, 3], 0) = 0close(3) = 0fcntl(1, F_GETFD) = 0fcntl(1, F_SETFD, FD_CLOEXEC) = 0rt_sigaction(SIGTTOU, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x72033e445330}, NULL, 8) = 0rt_sigaction(SIGTTIN, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x72033e445330}, NULL, 8) = 0rt_sigaction(SIGHUP, {sa_handler=0x555b3a7dff10, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x72033e445330}, NULL, 8) = 0rt_sigaction(SIGINT, {sa_handler=0x555b3a7dff10, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x72033e445330}, NULL, 8) = 0rt_sigaction(SIGQUIT, {sa_handler=0x555b3a7dff10, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x72033e445330}, NULL, 8) = 0rt_sigaction(SIGPIPE, {sa_handler=0x555b3a7dff10, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x72033e445330}, NULL, 8) = 0rt_sigaction(SIGTERM, {sa_handler=0x555b3a7dff10, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x72033e445330}, NULL, 8) = 0rt_sigprocmask(SIG_BLOCK, [ALRM], NULL, 8) = 0rt_sigaction(SIGALRM, {sa_handler=0x555b3a7ebc20, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x72033e445330}, NULL, 8) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGSTOP}|PTRACE_EVENT_STOP<<16], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_LISTEN, 2867204) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}|PTRACE_EVENT_STOP<<16], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_CONTINUED, si_pid=2867204, si_uid=1000, si_status=SIGCONT, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGCONT}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGCONT, si_utime=0, si_stime=0} ---ptrace(PTRACE_GETSIGINFO, 2867204, NULL, {si_signo=SIGCONT, si_code=SI_USER, si_pid=2867201, si_uid=1000}) = 0wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, SIGCONT) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x72033e4eeffb, stack_pointer=0x7fff31d56ec8, entry={nr=__NR_execve, args=[0x7fff31d56fa0, 0x7fff31d584b0, 0x7fff31d584c0, 0x72033e7060b8, 0x1, 0x72033e62e380]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}|PTRACE_EVENT_EXEC<<16], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---ptrace(PTRACE_GETEVENTMSG, 2867204, NULL, [2867204]) = 0wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca19bb, stack_pointer=0x7ffce96cbd58, entry={nr=__NR_brk, args=[0, 0x78d508cb3a18, 0, 0x37f, 0, 0x78d508cb3440]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2d1c, stack_pointer=0x7ffce96cb9e0, entry={nr=__NR_mmap, args=[0, 0x2000, 0x3, 0x22, 0xffffffff, 0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca28bb, stack_pointer=0x7ffce96cba98, entry={nr=__NR_access, args=[0x78d508cac5b0, 0x4, 0x5b3dadc8adf0, 0x22, 0x78d508c7d000, 0x78d508cb3440]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2b61, stack_pointer=0x7ffce96cae30, entry={nr=__NR_openat, args=[0xffffff9c, 0x78d508cab38f, 0x80000, 0, 0xffff, 0]}}) = 80fstat(2, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0process_vm_readv(2867204, [{iov_base="2\0dl-lookup.c\0out of memory\n\0, v"..., iov_len=4096}], 1, [{iov_base=0x78d508cab000, iov_len=4096}], 1, 0) = 4096write(2, "openat(AT_FDCWD, \"/etc/ld.so.cac"..., 55) = 55ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2b61, stack_pointer=0x7ffce96cae30, exit={rval=3, is_error=0}}) = 33write(2, ") = 3\n", 6) = 6ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca28eb, stack_pointer=0x7ffce96cae38, entry={nr=__NR_fstat, args=[0x3, 0x7ffce96cae40, 0x80000, 0, 0xffff, 0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2d1c, stack_pointer=0x7ffce96cae20, entry={nr=__NR_mmap, args=[0, 0x241e8, 0x1, 0x2, 0x3, 0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2a1b, stack_pointer=0x7ffce96cae38, entry={nr=__NR_close, args=[0x3, 0x241e8, 0x1, 0x2, 0x3, 0]}}) = 80write(2, "close(3", 7) = 7ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2a1b, stack_pointer=0x7ffce96cae38, exit={rval=0, is_error=0}}) = 33write(2, ") "..., 37) = 37ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2b61, stack_pointer=0x7ffce96cafa0, entry={nr=__NR_openat, args=[0xffffff9c, 0x78d508c73140, 0x80000, 0, 0x7ffce96cb057, 0]}}) = 80process_vm_readv(2867204, [{iov_base="P0\307\10\325x\0\0\362\256\312\10\325x\0\0\0\0\0\0\0\0\0\0@\220\312\10\325x\0\0"..., iov_len=4096}], 1, [{iov_base=0x78d508c73000, iov_len=4096}], 1, 0) = 4096write(2, "openat(AT_FDCWD, \"/lib/x86_64-li"..., 70) = 70ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2b61, stack_pointer=0x7ffce96cafa0, exit={rval=3, is_error=0}}) = 33write(2, ") = 3\n", 6) = 6ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2bd8, stack_pointer=0x7ffce96cafa8, entry={nr=__NR_read, args=[0x3, 0x7ffce96cb078, 0x340, 0, 0x7ffce96cb057, 0]}}) = 80write(2, "read(3, ", 8) = 8ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2bd8, stack_pointer=0x7ffce96cafa8, exit={rval=832, is_error=0}}) = 33process_vm_readv(2867204, [{iov_base="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340b\313\10\325x\0\0@1\307\10\325x\0\0"..., iov_len=4096}], 1, [{iov_base=0x7ffce96cb000, iov_len=4096}], 1, 0) = 4096write(2, "\"\\177ELF\\2\\1\\1\\3\\0\\0\\0\\0\\0\\0\\0\\0"..., 84) = 84ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2bae, stack_pointer=0x7ffce96cac88, entry={nr=__NR_pread64, args=[0x3, 0x7ffce96cac90, 0x310, 0x40, 0x7ffce96cb057, 0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca28eb, stack_pointer=0x7ffce96cae78, entry={nr=__NR_fstat, args=[0x3, 0x7ffce96caf10, 0x3, 0x40, 0x78d508c73140, 0x78d508cb62e0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2bae, stack_pointer=0x7ffce96cab58, entry={nr=__NR_pread64, args=[0x3, 0x7ffce96cab60, 0x310, 0x40, 0xc0ff, 0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2d1c, stack_pointer=0x7ffce96ca830, entry={nr=__NR_mmap, args=[0, 0x212d90, 0x1, 0x802, 0x3, 0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2d1c, stack_pointer=0x7ffce96ca830, entry={nr=__NR_mmap, args=[0x78d508a28000, 0x189000, 0x5, 0x812, 0x3, 0x28000]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2d1c, stack_pointer=0x7ffce96ca830, entry={nr=__NR_mmap, args=[0x78d508bb1000, 0x4f000, 0x1, 0x812, 0x3, 0x1b1000]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2d1c, stack_pointer=0x7ffce96ca830, entry={nr=__NR_mmap, args=[0x78d508c00000, 0x6000, 0x3, 0x812, 0x3, 0x1ff000]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2d1c, stack_pointer=0x7ffce96ca830, entry={nr=__NR_mmap, args=[0x78d508c06000, 0xcd90, 0x3, 0x32, 0xffffffff, 0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2a1b, stack_pointer=0x7ffce96cab58, entry={nr=__NR_close, args=[0x3, 0x78d508c73160, 0x1, 0xc0000002, 0x78d508a00378, 0x4]}}) = 80write(2, "close(3", 7) = 7ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2a1b, stack_pointer=0x7ffce96cab58, exit={rval=0, is_error=0}}) = 33write(2, ") "..., 37) = 37ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2d1c, stack_pointer=0x7ffce96cba00, entry={nr=__NR_mmap, args=[0, 0x3000, 0x3, 0x22, 0xffffffff, 0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508c9d11d, stack_pointer=0x7ffce96cba80, entry={nr=__NR_arch_prctl, args=[0x1002, 0x78d508c4b740, 0xffff872af73b3f30, 0x22, 0xffffffff, 0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508c91f12, stack_pointer=0x7ffce96cba50, entry={nr=__NR_set_tid_address, args=[0x78d508c4ba10, 0x78d508c4b740, 0x78d508cb60c8, 0x22, 0xffffffff, 0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508c91f6e, stack_pointer=0x7ffce96cba50, entry={nr=__NR_set_robust_list, args=[0x78d508c4ba20, 0x18, 0x78d508cb60c8, 0x22, 0xffffffff, 0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508c91fe6, stack_pointer=0x7ffce96cba50, entry={nr=__NR_rseq, args=[0x78d508c4c060, 0x20, 0, 0x53053053, 0, 0x78d508cb3440]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2dab, stack_pointer=0x7ffce96cb968, entry={nr=__NR_mprotect, args=[0x78d508c00000, 0x4000, 0x1, 0x78d508c73160, 0x78d508c73160, 0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2dab, stack_pointer=0x7ffce96cb968, entry={nr=__NR_mprotect, args=[0x5b3dadc8a000, 0x1000, 0x1, 0x78d508cb62e0, 0x78d508cb62e0, 0x78d508b1b3b0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2dab, stack_pointer=0x7ffce96cb968, entry={nr=__NR_mprotect, args=[0x78d508cb3000, 0x2000, 0x1, 0x78d508cb5ab0, 0x78d508cb5ab0, 0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1d454, stack_pointer=0x7ffce96cba58, entry={nr=__NR_prlimit64, args=[0, 0x3, 0, 0x7ffce96cba60, 0, 0xd]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508ca2ddb, stack_pointer=0x7ffce96cba88, entry={nr=__NR_munmap, args=[0x78d508c4e000, 0x241e8, 0, 0x7ffce96cba60, 0, 0x78d508cb3440]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1c69b, stack_pointer=0x7ffce96cbc28, entry={nr=__NR_unlink, args=[0x5b3dadc89008, 0x7ffce96cbe68, 0x7ffce96cbe78, 0x7ffce96cba60, 0, 0x78d508c82380]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1b6ad, stack_pointer=0x7ffce96cbc28, entry={nr=__NR_pipe2, args=[0x7ffce96cbc80, 0, 0x4, 0x7ffce96cba60, 0, 0x78d508c82380]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1c804, stack_pointer=0x7ffce96cbbd8, entry={nr=__NR_write, args=[0x4, 0x7ffce96cbcb0, 0x7, 0x7ffce96cba60, 0, 0x78d508c82380]}}) = 80process_vm_readv(2867204, [{iov_base="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@1\307\10\0\0\0\0"..., iov_len=4096}], 1, [{iov_base=0x7ffce96cb000, iov_len=4096}], 1, 0) = 4096write(2, "write(4, \"HDR0$%&\", 7", 21) = 21ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1c804, stack_pointer=0x7ffce96cbbd8, exit={rval=7, is_error=0}}) = 33write(2, ") = 7\n", 23) = 23ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1bcf1, stack_pointer=0x7ffce96cbc28, entry={nr=__NR_read, args=[0x3, 0x7ffce96cbc90, 0x14, 0x7ffce96cba60, 0, 0x78d508c82380]}}) = 80write(2, "read(3, ", 8) = 8ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1bcf1, stack_pointer=0x7ffce96cbc28, exit={rval=7, is_error=0}}) = 33process_vm_readv(2867204, [{iov_base="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@1\307\10\0\0\0\0"..., iov_len=4096}], 1, [{iov_base=0x7ffce96cb000, iov_len=4096}], 1, 0) = 4096write(2, "\"HDR0$%&\", 20) "..., 36) = 36ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1c804, stack_pointer=0x7ffce96cbbd8, entry={nr=__NR_write, args=[0x4, 0x7ffce96cbcb7, 0xd, 0x7ffce96cba60, 0, 0x78d508c82380]}}) = 80process_vm_readv(2867204, [{iov_base="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@1\307\10\0\0\0\0"..., iov_len=4096}], 1, [{iov_base=0x7ffce96cb000, iov_len=4096}], 1, 0) = 4096write(2, "write(4, \"'()*\\0,-./012\\0\", 13", 30) = 30ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1c804, stack_pointer=0x7ffce96cbbd8, exit={rval=13, is_error=0}}) = 33write(2, ") = 13\n", 15) = 15ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b16984, stack_pointer=0x7ffce96cbc28, entry={nr=__NR_close, args=[0x4, 0x7ffce96cbcb7, 0xd, 0x7ffce96cba60, 0, 0x78d508c82380]}}) = 80write(2, "close(4", 7) = 7ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b16984, stack_pointer=0x7ffce96cbc28, exit={rval=0, is_error=0}}) = 33write(2, ") "..., 37) = 37ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1bcf1, stack_pointer=0x7ffce96cbbd8, entry={nr=__NR_read, args=[0x3, 0x7ffce96cbc97, 0xd, 0x7ffce96cba60, 0, 0x78d508c82380]}}) = 80write(2, "read(3, ", 8) = 8ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1bcf1, stack_pointer=0x7ffce96cbbd8, exit={rval=13, is_error=0}}) = 33process_vm_readv(2867204, [{iov_base="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@1\307\10\0\0\0\0"..., iov_len=4096}], 1, [{iov_base=0x7ffce96cb000, iov_len=4096}], 1, 0) = 4096write(2, "\"'()*\\0,-./012\\0\", 13) "..., 37) = 37ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b16984, stack_pointer=0x7ffce96cbc28, entry={nr=__NR_close, args=[0x3, 0x7ffce96cbc97, 0x1, 0x7ffce96cba60, 0, 0x78d508c82380]}}) = 80write(2, "close(3", 7) = 7ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b16984, stack_pointer=0x7ffce96cbc28, exit={rval=0, is_error=0}}) = 33write(2, ") "..., 37) = 37ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1b405, stack_pointer=0x7ffce96cbbb0, entry={nr=__NR_openat, args=[0xffffff9c, 0x5b3dadc89008, 0x80241, 0x1a4, 0, 0x78d508c82380]}}) = 80process_vm_readv(2867204, [{iov_base="\1\0\2\0\0\0\0\0/tmp/ksa_m02_io.bin\0HDR0"..., iov_len=4096}], 1, [{iov_base=0x5b3dadc89000, iov_len=4096}], 1, 0) = 4096write(2, "openat(AT_FDCWD, \"/tmp/ksa_m02_i"..., 80) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1b405, stack_pointer=0x7ffce96cbbb0, exit={rval=3, is_error=0}}) = 33write(2, ") = 3\n", 6) = 6ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1c804, stack_pointer=0x7ffce96cbbd8, entry={nr=__NR_write, args=[0x3, 0x7ffce96cbcb0, 0x11, 0x1a4, 0, 0x78d508c82380]}}) = 80process_vm_readv(2867204, [{iov_base="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@1\307\10\0\0\0\0"..., iov_len=4096}], 1, [{iov_base=0x7ffce96cb000, iov_len=4096}], 1, 0) = 4096write(2, "write(3, \"HDR0$%&'()*\\0,-./0\", 1"..., 33) = 33ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1c804, stack_pointer=0x7ffce96cbbd8, exit={rval=17, is_error=0}}) = 33write(2, ") = 17\n", 12) = 12ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1c804, stack_pointer=0x7ffce96cbbd8, entry={nr=__NR_write, args=[0x3, 0x7ffce96cbcc1, 0x13, 0x1a4, 0, 0x78d508c82380]}}) = 80process_vm_readv(2867204, [{iov_base="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@1\307\10\0\0\0\0"..., iov_len=4096}], 1, [{iov_base=0x7ffce96cb000, iov_len=4096}], 1, 0) = 4096write(2, "write(3, \"12\\000456789:\\0<=>?@AB"..., 39) = 39ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1c804, stack_pointer=0x7ffce96cbbd8, exit={rval=19, is_error=0}}) = 33write(2, ") = 19\n", 7) = 7ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1c804, stack_pointer=0x7ffce96cbbd8, entry={nr=__NR_write, args=[0x3, 0x7ffce96cbcd4, 0x1c, 0x1a4, 0, 0x78d508c82380]}}) = 80process_vm_readv(2867204, [{iov_base="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@1\307\10\0\0\0\0"..., iov_len=4096}], 1, [{iov_base=0x7ffce96cb000, iov_len=4096}], 1, 0) = 4096write(2, "write(3, \"DEFGHIJ\\0LMNOPQR\\0TUVW"..., 47) = 47ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1c804, stack_pointer=0x7ffce96cbbd8, exit={rval=28, is_error=0}}) = 33write(2, ") = 28\n", 7) = 7ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b16984, stack_pointer=0x7ffce96cbc28, entry={nr=__NR_close, args=[0x3, 0x7ffce96cbcd4, 0x1c, 0x1a4, 0, 0x78d508c82380]}}) = 80write(2, "close(3", 7) = 7ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b16984, stack_pointer=0x7ffce96cbc28, exit={rval=0, is_error=0}}) = 33write(2, ") "..., 37) = 37ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1b405, stack_pointer=0x7ffce96cbbb0, entry={nr=__NR_openat, args=[0xffffff9c, 0x5b3dadc89008, 0x80000, 0, 0, 0x78d508c82380]}}) = 80process_vm_readv(2867204, [{iov_base="\1\0\2\0\0\0\0\0/tmp/ksa_m02_io.bin\0HDR0"..., iov_len=4096}], 1, [{iov_base=0x5b3dadc89000, iov_len=4096}], 1, 0) = 4096write(2, "openat(AT_FDCWD, \"/tmp/ksa_m02_i"..., 58) = 58ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1b405, stack_pointer=0x7ffce96cbbb0, exit={rval=3, is_error=0}}) = 33write(2, ") = 3\n", 6) = 6ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1bcf1, stack_pointer=0x7ffce96cbbd8, entry={nr=__NR_read, args=[0x3, 0x7ffce96cbcf0, 0x14, 0, 0, 0x78d508c82380]}}) = 80write(2, "read(3, ", 8) = 8ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1bcf1, stack_pointer=0x7ffce96cbbd8, exit={rval=20, is_error=0}}) = 33process_vm_readv(2867204, [{iov_base="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@1\307\10\0\0\0\0"..., iov_len=4096}], 1, [{iov_base=0x7ffce96cb000, iov_len=4096}], 1, 0) = 4096write(2, "\"HDR0$%&'()*\\0,-./012\\0\", 20) "..., 37) = 37ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1bcf1, stack_pointer=0x7ffce96cbbd8, entry={nr=__NR_read, args=[0x3, 0x7ffce96cbd04, 0x2c, 0, 0, 0x78d508c82380]}}) = 80write(2, "read(3, ", 8) = 8ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1bcf1, stack_pointer=0x7ffce96cbbd8, exit={rval=44, is_error=0}}) = 33process_vm_readv(2867204, [{iov_base="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@1\307\10\0\0\0\0"..., iov_len=4096}], 1, [{iov_base=0x7ffce96cb000, iov_len=4096}], 1, 0) = 4096write(2, "\"456789:\\0<=>?@AB\\0DEFGHIJ\\0LMNO"..., 52) = 52ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1bcf1, stack_pointer=0x7ffce96cbc28, entry={nr=__NR_read, args=[0x3, 0x7ffce96cbc37, 0x1, 0, 0, 0x78d508c82380]}}) = 80write(2, "read(3, ", 8) = 8ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1bcf1, stack_pointer=0x7ffce96cbc28, exit={rval=0, is_error=0}}) = 33write(2, "\"\", 1) "..., 36) = 36ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b16984, stack_pointer=0x7ffce96cbc28, entry={nr=__NR_close, args=[0x3, 0x7ffce96cbc90, 0, 0, 0, 0x78d508c82380]}}) = 80write(2, "close(3", 7) = 7ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b16984, stack_pointer=0x7ffce96cbc28, exit={rval=0, is_error=0}}) = 33write(2, ") "..., 37) = 37ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1c69b, stack_pointer=0x7ffce96cbc28, entry={nr=__NR_unlink, args=[0x5b3dadc89008, 0x7ffce96cbc90, 0, 0, 0, 0x78d508c82380]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1761b, stack_pointer=0x7ffce96cb858, entry={nr=__NR_fstat, args=[0x1, 0x7ffce96cb860, 0x78d508c02ee0, 0, 0x64, 0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508aa9e69, stack_pointer=0x7ffce96cb7e0, entry={nr=__NR_getrandom, args=[0x78d508c0b178, 0x8, 0x1, 0, 0x64, 0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1da0b, stack_pointer=0x7ffce96cb718, entry={nr=__NR_brk, args=[0, 0x78d508c04b20, 0x78d508c04b20, 0x1, 0x21000, 0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1da0b, stack_pointer=0x7ffce96cb718, entry={nr=__NR_brk, args=[0x5b3db8db0000, 0x78d508c04b20, 0x78d508c0bd70, 0x1, 0x21000, 0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1c804, stack_pointer=0x7ffce96cbb68, entry={nr=__NR_write, args=[0x1, 0x5b3db8d8f2a0, 0x5d, 0x7ffce96cbc0f, 0x7ffce96cbc80, 0]}}) = 80process_vm_readv(2867204, [{iov_base="\0\0\0\0\0\0\0\0\221\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., iov_len=4096}], 1, [{iov_base=0x5b3db8d8f000, iov_len=4096}], 1, 0) = 4096write(2, "write(1, \"first_window=20 rest_w"..., 50) = 50ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_EXIT, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508b1c804, stack_pointer=0x7ffce96cbb68, exit={rval=93, is_error=0}}) = 33write(2, ") = 93\n", 7) = 7ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP | 0x80}], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_GET_SYSCALL_INFO, 2867204, 88, {op=PTRACE_SYSCALL_INFO_ENTRY, arch=AUDIT_ARCH_X86_64, instruction_pointer=0x78d508aee2dd, stack_pointer=0x7ffce96cbcd8, entry={nr=__NR_exit_group, args=[0, 0xffffffffffffff88, 0xe7, 0x7ffce96cbc0f, 0x7ffce96cbc80, 0]}}) = 80ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=2867204, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}|PTRACE_EVENT_EXIT<<16], __WALL, NULL) = 2867204wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = 0ptrace(PTRACE_SYSCALL, 2867204, NULL, 0) = 0wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], __WALL, NULL) = 2867204--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2867204, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---wait4(-1, 0x7fff31d5821c, WNOHANG|__WALL, NULL) = -1 ECHILD (No child processes)write(2, "+++ exited with 0 +++\n", 22) = 22wait4(-1, 0x7fff31d5821c, __WALL, NULL) = -1 ECHILD (No child processes)exit_group(0) = ?+++ exited with 0 +++Why write_all() and read_full() Anchor Every Storage Protocol
Look at strace_m02_l02: when pfd[1] held only 7 bytes, read(pfd[0], prx, 20) legally returned 7 (pipe_short=7) rather than blocking for 20 bytes! Without a retry loop advancing p + total and count - total, the caller would lose 13 bytes of the header. On /tmp/ksa_m02_io.bin, read_full() reassembled all 64 bytes—including eight embedded 0x00 bytes that would have truncated strcpy()—and confirmed read() == 0 at EOF.
Guided Practice: Diagnosing a Torn-Header Framing Bug
A student writes a length-prefixed packet reader uint32_t len; if (read(fd, &len, 4) <= 0) return -1; read_full(fd, payload, len, NULL);:
- Step 1 (Spot the partial-header hazard): Trace what happens on a slow serial link or pipe when
read(fd, &len, 4)returns2(> 0): how many bytes ofuint32_t lenremain uninitialized stack garbage, and where do the remaining2header bytes land duringread_full(fd, payload, ...)? - Step 2 (Fix the exact-count check): Replace the raw
read()withssize_t hdr_n = read_full(fd, &len, sizeof(len), NULL);and write the three-way check distinguishinghdr_n == 0(clean stream end between frames),0 < hdr_n < 4(truncated frameEPROTO), andhdr_n == -1(syscall error).
Independent Practice: CLOCK_MONOTONIC Chunk-Size Throughput Sweep
Write a C11 benchmark chunk_sweep.c (-std=c11 -O2 -Wall -Wextra -Werror) that writes and reads back a 1 MiB (1,048,576-byte) /tmp/ksa_sweep.bin file using write_all() and read_full() across chunk sizes 16 B, 512 B, 4,096 B (4 KiB), and 65,536 B (64 KiB). Time each pass with CLOCK_MONOTONIC, compute throughput in MiB/s and syscall count (1,048,576 / chunk), and verify memcmp() equality before unlinking the file.
Common Production Pitfalls
warning: Symptom: Calling char buf[64]; ssize_t n = read(fd, buf, 64); printf("%s\n", buf); prints valid configuration text followed by binary stack garbage or crashes with SIGSEGV. Root Cause: read() copies raw bytes and never appends a '\0' terminator; when n == 64 (or n < 64 over dirty stack bytes), %s scans past valid data until hitting a chance zero byte. Fix: Read at most sizeof(buf) - 1 bytes and assign buf[n] = '\0', or use printf("%.*s\n", (int)n, buf).
warning: Symptom: Wrapping close(fd) in while (close(fd) == -1 && errno == EINTR) {} inside a multithreaded daemon randomly closes another thread's newly opened file or client socket! Root Cause: On the Linux kernel, close(fd) releases slot fd from files_struct before flushing driver state; if a sibling thread immediately allocates that lowest unused fd, retrying close(fd) closes the sibling's handle! Fix: Check if (close(fd) == -1) once to log deferred EIO, and never retry close(fd) on Linux.
Knowledge Check
Key takeaways
write()andread()return signedssize_tacross four regimes: full count, positive short count (0 < n < count, including the LinuxMAX_RW_COUNT0x7ffff000cap),0(cleanEOFonread()), and-1(EINTRretry vs fatalerrno).- Wrap binary transfers in
write_all()andread_full()loops that castvoid *touint8_t *and advance(p + done, count - done). - Never pass raw
read()buffers to NUL-terminated string routines without reservingsizeof(buf) - 1and writing'\0'explicitly. - Always call
close(fd), checkclose(fd) == -1for deferredEIOfaults, and never retryclose(fd)on the Linux kernel. - Next, we move beyond sequential byte streams to random-access cursor positioning with 64-bit
lseek(), sparse-extent queries (SEEK_DATA/SEEK_HOLE), and pre-validated byte slicing.