Page MenuHomePhabricator

shell.php broken on most production hosts
Closed, ResolvedPublic

Description

shell.php is an interactive shell based on PsySH (intended to be the successor of eval.php, which is used for testing/debugging). To get around the problem of fatal errors causing the PHP process to exit, it uses a forked subprocess and stream_select to run commands. Apparently when the subprocess is created it immediately receives some kind of signal which confuses stream_select.

tgr@mw1279:~$ sudo -u www-data php /srv/mediawiki/multiversion/MWScript.php shell.php enwiki
[Fri Feb  9 23:36:25 2018] [hphp] [31577:7f7e46ae1200:0:000001] [] 
Notice: Writing to /home/tgr/.config/psysh is not allowed. in /srv/mediawiki/php-1.31.0-wmf.20/vendor/psy/psysh/src/Psy/ConfigPaths.php on line 213
Psy Shell v0.8.11 (PHP 5.6.99-hhvm — cli) by Justin Hileman
>>> 1
=> 1
[Fri Feb  9 23:36:41 2018] [hphp] [31577:7f7e46ae1200:0:000002] [] 
Warning: unable to select [4]: Interrupted system call in /srv/mediawiki/php-1.31.0-wmf.20/vendor/psy/psysh/src/Psy/ExecutionLoop/ForkingLoop.php on line 57
RuntimeException with message 'Error waiting for execution loop.'
>>> tgr@mw1279:~$

shell.php is a lot more powerful than eval.php, it would be nice to get it working everywhere.

(Also PsySH tries to store the history in ~/.config/psysh but can't since it's running as www-data, but that's a much more minor annoyance.)

Workaround: PHP="hhvm -d hhvm.server.light_process_count=0" mwscript shell.php enwiki

Event Timeline

Filed upstream as bobthecow/psysh#494, not really sure this is an upstream problem though.

strace:

1tgr@terbium:~$ strace mwscript shell.php enwiki
2execve("/usr/local/bin/mwscript", ["mwscript", "shell.php", "enwiki"], [/* 19 vars */]) = 0
3brk(0) = 0x805000
4access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
5mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3eef61d000
6access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
7open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
8fstat(3, {st_mode=S_IFREG|0644, st_size=43526, ...}) = 0
9mmap(NULL, 43526, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3eef612000
10close(3) = 0
11access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
12open("/lib/x86_64-linux-gnu/libncurses.so.5", O_RDONLY|O_CLOEXEC) = 3
13read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320l\0\0\0\0\0\0"..., 832) = 832
14fstat(3, {st_mode=S_IFREG|0644, st_size=151120, ...}) = 0
15mmap(NULL, 2246824, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3eef1da000
16mprotect(0x7f3eef1fe000, 2093056, PROT_NONE) = 0
17mmap(0x7f3eef3fd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23000) = 0x7f3eef3fd000
18close(3) = 0
19access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20open("/lib/x86_64-linux-gnu/libtinfo.so.5", O_RDONLY|O_CLOEXEC) = 3
21read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\316\0\0\0\0\0\0"..., 832) = 832
22fstat(3, {st_mode=S_IFREG|0644, st_size=171800, ...}) = 0
23mmap(NULL, 2269152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3eeefb0000
24mprotect(0x7f3eeefd6000, 2093056, PROT_NONE) = 0
25mmap(0x7f3eef1d5000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25000) = 0x7f3eef1d5000
26close(3) = 0
27access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
28open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
29read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\16\0\0\0\0\0\0"..., 832) = 832
30fstat(3, {st_mode=S_IFREG|0644, st_size=14664, ...}) = 0
31mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3eef611000
32mmap(NULL, 2109712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3eeedac000
33mprotect(0x7f3eeedaf000, 2093056, PROT_NONE) = 0
34mmap(0x7f3eeefae000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f3eeefae000
35close(3) = 0
36access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
37open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
38read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\34\2\0\0\0\0\0"..., 832) = 832
39fstat(3, {st_mode=S_IFREG|0755, st_size=1738176, ...}) = 0
40mmap(NULL, 3844640, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3eeea01000
41mprotect(0x7f3eeeba2000, 2097152, PROT_NONE) = 0
42mmap(0x7f3eeeda2000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a1000) = 0x7f3eeeda2000
43mmap(0x7f3eeeda8000, 14880, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f3eeeda8000
44close(3) = 0
45mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3eef610000
46mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3eef60f000
47mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3eef60e000
48arch_prctl(ARCH_SET_FS, 0x7f3eef60f700) = 0
49mprotect(0x7f3eeeda2000, 16384, PROT_READ) = 0
50mprotect(0x7f3eeefae000, 4096, PROT_READ) = 0
51mprotect(0x7f3eef1d5000, 16384, PROT_READ) = 0
52mprotect(0x7f3eef3fd000, 4096, PROT_READ) = 0
53mprotect(0x6f1000, 4096, PROT_READ) = 0
54mprotect(0x7f3eef61f000, 4096, PROT_READ) = 0
55munmap(0x7f3eef612000, 43526) = 0
56open("/dev/tty", O_RDWR|O_NONBLOCK) = 3
57close(3) = 0
58brk(0) = 0x805000
59brk(0x806000) = 0x806000
60open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
61fstat(3, {st_mode=S_IFREG|0644, st_size=1607712, ...}) = 0
62mmap(NULL, 1607712, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3eef485000
63close(3) = 0
64brk(0x807000) = 0x807000
65brk(0x808000) = 0x808000
66getuid() = 2355
67getgid() = 500
68geteuid() = 2355
69getegid() = 500
70rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
71brk(0x809000) = 0x809000
72open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 3
73fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
74mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3eef61c000
75read(3, "MemTotal: 32868688 kB\nMemF"..., 1024) = 1024
76close(3) = 0
77munmap(0x7f3eef61c000, 4096) = 0
78brk(0x80a000) = 0x80a000
79rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER|SA_RESTART, 0x7f3eeea360e0}, {SIG_DFL, [], 0}, 8) = 0
80rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER|SA_RESTART, 0x7f3eeea360e0}, {SIG_DFL, [], SA_RESTORER|SA_RESTART, 0x7f3eeea360e0}, 8) = 0
81rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f3eeea360e0}, {SIG_DFL, [], 0}, 8) = 0
82rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f3eeea360e0}, {SIG_DFL, [], SA_RESTORER, 0x7f3eeea360e0}, 8) = 0
83rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0x7f3eeea360e0}, {SIG_DFL, [], 0}, 8) = 0
84rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0x7f3eeea360e0}, {SIG_DFL, [], SA_RESTORER, 0x7f3eeea360e0}, 8) = 0
85rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
86rt_sigaction(SIGQUIT, {SIG_IGN, [], SA_RESTORER, 0x7f3eeea360e0}, {SIG_DFL, [], SA_RESTORER, 0x7f3eeea360e0}, 8) = 0
87uname({sys="Linux", node="terbium", ...}) = 0
88brk(0x80b000) = 0x80b000
89brk(0x80c000) = 0x80c000
90stat("/home/tgr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
91stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
92getpid() = 21925
93open("/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 3
94fstat(3, {st_mode=S_IFREG|0644, st_size=26258, ...}) = 0
95mmap(NULL, 26258, PROT_READ, MAP_SHARED, 3, 0) = 0x7f3eef616000
96close(3) = 0
97getppid() = 21922
98brk(0x80d000) = 0x80d000
99brk(0x80e000) = 0x80e000
100getpgrp() = 21922
101rt_sigaction(SIGCHLD, {0x446580, [], SA_RESTORER|SA_RESTART, 0x7f3eeea360e0}, {SIG_DFL, [], SA_RESTORER|SA_RESTART, 0x7f3eeea360e0}, 8) = 0
102getrlimit(RLIMIT_NPROC, {rlim_cur=128304, rlim_max=128304}) = 0
103brk(0x80f000) = 0x80f000
104brk(0x810000) = 0x810000
105rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
106open("/usr/local/bin/mwscript", O_RDONLY) = 3
107ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7ffc145dd760) = -1 ENOTTY (Inappropriate ioctl for device)
108lseek(3, 0, SEEK_CUR) = 0
109read(3, "#!/bin/bash\n# Shell wrapper for "..., 80) = 80
110lseek(3, 0, SEEK_SET) = 0
111getrlimit(RLIMIT_NOFILE, {rlim_cur=64*1024, rlim_max=64*1024}) = 0
112fcntl(255, F_GETFD) = -1 EBADF (Bad file descriptor)
113dup2(3, 255) = 255
114close(3) = 0
115fcntl(255, F_SETFD, FD_CLOEXEC) = 0
116fcntl(255, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
117fstat(255, {st_mode=S_IFREG|0555, st_size=1020, ...}) = 0
118lseek(255, 0, SEEK_CUR) = 0
119brk(0x811000) = 0x811000
120read(255, "#!/bin/bash\n# Shell wrapper for "..., 1020) = 1020
121open("/etc/profile.d/mediawiki.sh", O_RDONLY) = 3
122fstat(3, {st_mode=S_IFREG|0444, st_size=387, ...}) = 0
123brk(0x812000) = 0x812000
124read(3, "# MediaWiki-related shell enviro"..., 387) = 387
125close(3) = 0
126rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
127brk(0x813000) = 0x813000
128rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
129pipe([3, 4]) = 0
130brk(0x814000) = 0x814000
131rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD], 8) = 0
132clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f3eef60f9d0) = 21926
133rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
134close(4) = 0
135close(4) = -1 EBADF (Bad file descriptor)
136rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD], 8) = 0
137clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f3eef60f9d0) = 21927
138rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
139close(3) = 0
140rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
141rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
142rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
143rt_sigaction(SIGINT, {0x443740, [], SA_RESTORER, 0x7f3eeea360e0}, {SIG_DFL, [], SA_RESTORER, 0x7f3eeea360e0}, 8) = 0
144wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 21926
145wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 21927
146rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f3eeea360e0}, {0x443740, [], SA_RESTORER, 0x7f3eeea360e0}, 8) = 0
147rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
148close(3) = -1 EBADF (Bad file descriptor)
149rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
150--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21926, si_uid=2355, si_status=0, si_utime=0, si_stime=0} ---
151wait4(-1, 0x7ffc145dc910, WNOHANG, NULL) = -1 ECHILD (No child processes)
152rt_sigreturn() = 0
153umask(02) = 02
154stat("/srv/mediawiki-staging", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
155pipe([3, 4]) = 0
156rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
157rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
158rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
159clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f3eef60f9d0) = 21928
160rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
161rt_sigaction(SIGCHLD, {0x446580, [], SA_RESTORER|SA_RESTART, 0x7f3eeea360e0}, {0x446580, [], SA_RESTORER|SA_RESTART, 0x7f3eeea360e0}, 8) = 0
162close(4) = 0
163read(3, "tgr\n", 128) = 4
164read(3, "", 128) = 0
165close(3) = 0
166rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
167rt_sigaction(SIGINT, {0x443740, [], SA_RESTORER, 0x7f3eeea360e0}, {SIG_DFL, [], SA_RESTORER, 0x7f3eeea360e0}, 8) = 0
168wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 21928
169rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f3eeea360e0}, {0x443740, [], SA_RESTORER, 0x7f3eeea360e0}, 8) = 0
170rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
171--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21928, si_uid=2355, si_status=0, si_utime=0, si_stime=0} ---
172wait4(-1, 0x7ffc145dca10, WNOHANG, NULL) = -1 ECHILD (No child processes)
173rt_sigreturn() = 0
174stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
175stat("/usr/local/bin/sudo", 0x7ffc145dd330) = -1 ENOENT (No such file or directory)
176stat("/usr/bin/sudo", {st_mode=S_IFREG|S_ISUID|0755, st_size=157760, ...}) = 0
177stat("/usr/bin/sudo", {st_mode=S_IFREG|S_ISUID|0755, st_size=157760, ...}) = 0
178geteuid() = 2355
179getegid() = 500
180getuid() = 2355
181getgid() = 500
182access("/usr/bin/sudo", X_OK) = 0
183stat("/usr/bin/sudo", {st_mode=S_IFREG|S_ISUID|0755, st_size=157760, ...}) = 0
184geteuid() = 2355
185getegid() = 500
186getuid() = 2355
187getgid() = 500
188access("/usr/bin/sudo", R_OK) = 0
189stat("/usr/bin/sudo", {st_mode=S_IFREG|S_ISUID|0755, st_size=157760, ...}) = 0
190stat("/usr/bin/sudo", {st_mode=S_IFREG|S_ISUID|0755, st_size=157760, ...}) = 0
191geteuid() = 2355
192getegid() = 500
193getuid() = 2355
194getgid() = 500
195access("/usr/bin/sudo", X_OK) = 0
196stat("/usr/bin/sudo", {st_mode=S_IFREG|S_ISUID|0755, st_size=157760, ...}) = 0
197geteuid() = 2355
198getegid() = 500
199getuid() = 2355
200getgid() = 500
201access("/usr/bin/sudo", R_OK) = 0
202rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
203rt_sigprocmask(SIG_BLOCK, [CHLD], [INT CHLD], 8) = 0
204rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0
205clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f3eef60f9d0) = 21929
206rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
207rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
208rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
209rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
210rt_sigaction(SIGINT, {0x443740, [], SA_RESTORER, 0x7f3eeea360e0}, {SIG_DFL, [], SA_RESTORER, 0x7f3eeea360e0}, 8) = 0
211wait4(-1, [Sat May 12 13:30:45 2018] [hphp] [21930:7f7055fe2200:0:000001] []
212Notice: Writing to /home/tgr/.config/psysh is not allowed. in /srv/mediawiki/php-1.32.0-wmf.3/vendor/psy/psysh/src/Psy/ConfigPaths.php on line 213
213Psy Shell v0.8.11 (PHP 5.6.99-hhvm — cli) by Justin Hileman
214>>> 1
215=> 1
216[Sat May 12 13:30:48 2018] [hphp] [21930:7f7055fe2200:0:000002] []
217Warning: unable to select [4]: Interrupted system call in /srv/mediawiki/php-1.32.0-wmf.3/vendor/psy/psysh/src/Psy/ExecutionLoop/ForkingLoop.php on line 57
218RuntimeException with message 'Error waiting for execution loop.'
219>>> [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 21929
220rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f3eeea360e0}, {0x443740, [], SA_RESTORER, 0x7f3eeea360e0}, 8) = 0
221rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
222--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21929, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
223wait4(-1, 0x7ffc145dce50, WNOHANG, NULL) = -1 ECHILD (No child processes)
224rt_sigreturn() = 0
225read(255, "", 1020) = 0
226rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
227rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
228exit_group(0) = ?
229+++ exited with 0 +++

strace on a vagrant box (with no error) for comparison:
1```
2vagrant@mcr:/vagrant/mediawiki$ sudo strace mwscript shell.php
3execve("/usr/local/bin/mwscript", ["mwscript", "shell.php"], [/* 17 vars */]) = 0
4brk(NULL) = 0x55902ac9a000
5access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
6mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faba1ed4000
7access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
8open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
9fstat(3, {st_mode=S_IFREG|0644, st_size=30013, ...}) = 0
10mmap(NULL, 30013, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faba1ecc000
11close(3) = 0
12access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
13open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
14read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\3\2\0\0\0\0\0"..., 832) = 832
15fstat(3, {st_mode=S_IFREG|0755, st_size=1689360, ...}) = 0
16mmap(NULL, 3795360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7faba1915000
17mprotect(0x7faba1aaa000, 2097152, PROT_NONE) = 0
18mmap(0x7faba1caa000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x195000) = 0x7faba1caa000
19mmap(0x7faba1cb0000, 14752, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7faba1cb0000
20close(3) = 0
21mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faba1eca000
22arch_prctl(ARCH_SET_FS, 0x7faba1eca700) = 0
23mprotect(0x7faba1caa000, 16384, PROT_READ) = 0
24mprotect(0x559028d19000, 4096, PROT_READ) = 0
25mprotect(0x7faba1ed7000, 4096, PROT_READ) = 0
26munmap(0x7faba1ecc000, 30013) = 0
27brk(NULL) = 0x55902ac9a000
28brk(0x55902acbb000) = 0x55902acbb000
29open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
30fstat(3, {st_mode=S_IFREG|0644, st_size=1679488, ...}) = 0
31mmap(NULL, 1679488, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faba1d2f000
32close(3) = 0
33execve("/usr/local/sbin/bash", ["bash", "/usr/local/bin/mwscript", "shell.php"], [/* 17 vars */]) = -1 ENOENT (No such file or directory)
34execve("/usr/local/bin/bash", ["bash", "/usr/local/bin/mwscript", "shell.php"], [/* 17 vars */]) = -1 ENOENT (No such file or directory)
35execve("/usr/sbin/bash", ["bash", "/usr/local/bin/mwscript", "shell.php"], [/* 17 vars */]) = -1 ENOENT (No such file or directory)
36execve("/usr/bin/bash", ["bash", "/usr/local/bin/mwscript", "shell.php"], [/* 17 vars */]) = -1 ENOENT (No such file or directory)
37execve("/sbin/bash", ["bash", "/usr/local/bin/mwscript", "shell.php"], [/* 17 vars */]) = -1 ENOENT (No such file or directory)
38execve("/bin/bash", ["bash", "/usr/local/bin/mwscript", "shell.php"], [/* 17 vars */]) = 0
39brk(NULL) = 0x1ff2000
40access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
41mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2cad144000
42access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
43open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
44fstat(3, {st_mode=S_IFREG|0644, st_size=30013, ...}) = 0
45mmap(NULL, 30013, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f2cad13c000
46close(3) = 0
47access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
48open("/lib/x86_64-linux-gnu/libtinfo.so.5", O_RDONLY|O_CLOEXEC) = 3
49read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\315\0\0\0\0\0\0"..., 832) = 832
50fstat(3, {st_mode=S_IFREG|0644, st_size=170776, ...}) = 0
51mmap(NULL, 2267936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f2caccfa000
52mprotect(0x7f2cacd20000, 2093056, PROT_NONE) = 0
53mmap(0x7f2cacf1f000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25000) = 0x7f2cacf1f000
54close(3) = 0
55access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
56open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
57read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\r\0\0\0\0\0\0"..., 832) = 832
58fstat(3, {st_mode=S_IFREG|0644, st_size=14640, ...}) = 0
59mmap(NULL, 2109680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f2cacaf6000
60mprotect(0x7f2cacaf9000, 2093056, PROT_NONE) = 0
61mmap(0x7f2caccf8000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f2caccf8000
62close(3) = 0
63access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
64open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
65read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\3\2\0\0\0\0\0"..., 832) = 832
66fstat(3, {st_mode=S_IFREG|0755, st_size=1689360, ...}) = 0
67mmap(NULL, 3795360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f2cac757000
68mprotect(0x7f2cac8ec000, 2097152, PROT_NONE) = 0
69mmap(0x7f2cacaec000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x195000) = 0x7f2cacaec000
70mmap(0x7f2cacaf2000, 14752, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f2cacaf2000
71close(3) = 0
72mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2cad13a000
73arch_prctl(ARCH_SET_FS, 0x7f2cad13ab40) = 0
74mprotect(0x7f2cacaec000, 16384, PROT_READ) = 0
75mprotect(0x7f2caccf8000, 4096, PROT_READ) = 0
76mprotect(0x7f2cacf1f000, 16384, PROT_READ) = 0
77mprotect(0x700000, 12288, PROT_READ) = 0
78mprotect(0x7f2cad147000, 4096, PROT_READ) = 0
79munmap(0x7f2cad13c000, 30013) = 0
80open("/dev/tty", O_RDWR|O_NONBLOCK) = 3
81close(3) = 0
82brk(NULL) = 0x1ff2000
83brk(0x1ff3000) = 0x1ff3000
84open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
85fstat(3, {st_mode=S_IFREG|0644, st_size=1679488, ...}) = 0
86mmap(NULL, 1679488, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f2cacf9f000
87close(3) = 0
88brk(0x1ff4000) = 0x1ff4000
89brk(0x1ff5000) = 0x1ff5000
90getuid() = 0
91getgid() = 0
92geteuid() = 0
93getegid() = 0
94rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
95ioctl(-1, TIOCGPGRP, 0x7ffe86455d9c) = -1 EBADF (Bad file descriptor)
96brk(0x1ff6000) = 0x1ff6000
97sysinfo({uptime=189637, loads=[21280, 14432, 13248], totalram=2101465088, freeram=210497536, sharedram=19144704, bufferram=100745216, totalswap=1071640576, freeswap=1071640576, procs=264, totalhigh=0, freehigh=0, mem_unit=1}) = 0
98brk(0x1ff7000) = 0x1ff7000
99rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2cac78a030}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
100rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2cac78a030}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2cac78a030}, 8) = 0
101rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
102rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, 8) = 0
103rt_sigaction(SIGQUIT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
104rt_sigaction(SIGQUIT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, 8) = 0
105rt_sigaction(SIGTSTP, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
106rt_sigaction(SIGTSTP, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, 8) = 0
107rt_sigaction(SIGTTIN, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
108rt_sigaction(SIGTTIN, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, 8) = 0
109rt_sigaction(SIGTTOU, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
110rt_sigaction(SIGTTOU, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, 8) = 0
111rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
112rt_sigaction(SIGQUIT, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, 8) = 0
113uname({sysname="Linux", nodename="mcr", ...}) = 0
114brk(0x1ff8000) = 0x1ff8000
115brk(0x1ffc000) = 0x1ffc000
116brk(0x1ffe000) = 0x1ffe000
117brk(0x2000000) = 0x2000000
118brk(0x2002000) = 0x2002000
119getcwd("/vagrant/mediawiki", 4096) = 19
120getpid() = 26291
121open("/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 3
122fstat(3, {st_mode=S_IFREG|0644, st_size=26258, ...}) = 0
123mmap(NULL, 26258, PROT_READ, MAP_SHARED, 3, 0) = 0x7f2cad13d000
124close(3) = 0
125getppid() = 26289
126stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
127stat("/usr/local/sbin/bash", 0x7ffe86455a10) = -1 ENOENT (No such file or directory)
128stat("/usr/local/bin/bash", 0x7ffe86455a10) = -1 ENOENT (No such file or directory)
129stat("/usr/sbin/bash", 0x7ffe86455a10) = -1 ENOENT (No such file or directory)
130stat("/usr/bin/bash", 0x7ffe86455a10) = -1 ENOENT (No such file or directory)
131stat("/sbin/bash", 0x7ffe86455a10) = -1 ENOENT (No such file or directory)
132stat("/bin/bash", {st_mode=S_IFREG|0755, st_size=1099016, ...}) = 0
133stat("/bin/bash", {st_mode=S_IFREG|0755, st_size=1099016, ...}) = 0
134geteuid() = 0
135getegid() = 0
136getuid() = 0
137getgid() = 0
138access("/bin/bash", X_OK) = 0
139stat("/bin/bash", {st_mode=S_IFREG|0755, st_size=1099016, ...}) = 0
140geteuid() = 0
141getegid() = 0
142getuid() = 0
143getgid() = 0
144access("/bin/bash", R_OK) = 0
145stat("/bin/bash", {st_mode=S_IFREG|0755, st_size=1099016, ...}) = 0
146stat("/bin/bash", {st_mode=S_IFREG|0755, st_size=1099016, ...}) = 0
147geteuid() = 0
148getegid() = 0
149getuid() = 0
150getgid() = 0
151access("/bin/bash", X_OK) = 0
152stat("/bin/bash", {st_mode=S_IFREG|0755, st_size=1099016, ...}) = 0
153geteuid() = 0
154getegid() = 0
155getuid() = 0
156getgid() = 0
157access("/bin/bash", R_OK) = 0
158getpid() = 26291
159brk(0x2003000) = 0x2003000
160getpgrp() = 26288
161ioctl(2, TIOCGPGRP, [26288]) = 0
162rt_sigaction(SIGCHLD, {sa_handler=0x44cf90, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2cac78a030}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2cac78a030}, 8) = 0
163getrlimit(RLIMIT_NPROC, {rlim_cur=7929, rlim_max=7929}) = 0
164rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
165brk(0x2004000) = 0x2004000
166brk(0x2005000) = 0x2005000
167open("/usr/local/bin/mwscript", O_RDONLY) = 3
168stat("/usr/local/bin/mwscript", {st_mode=S_IFREG|0755, st_size=269, ...}) = 0
169ioctl(3, TCGETS, 0x7ffe86455d30) = -1 ENOTTY (Inappropriate ioctl for device)
170lseek(3, 0, SEEK_CUR) = 0
171read(3, "#!/usr/bin/env bash\n# Shell wrap"..., 80) = 80
172lseek(3, 0, SEEK_SET) = 0
173getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024*1024}) = 0
174fcntl(255, F_GETFD) = -1 EBADF (Bad file descriptor)
175dup2(3, 255) = 255
176close(3) = 0
177fcntl(255, F_SETFD, FD_CLOEXEC) = 0
178fcntl(255, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
179fstat(255, {st_mode=S_IFREG|0755, st_size=269, ...}) = 0
180lseek(255, 0, SEEK_CUR) = 0
181brk(0x2006000) = 0x2006000
182read(255, "#!/usr/bin/env bash\n# Shell wrap"..., 269) = 269
183brk(0x2007000) = 0x2007000
184rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
185brk(0x2008000) = 0x2008000
186brk(0x2009000) = 0x2009000
187pipe([3, 4]) = 0
188rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
189rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
190rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
191lseek(255, -68, SEEK_CUR) = 201
192clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f2cad13ae10) = 26292
193rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
194rt_sigaction(SIGCHLD, {sa_handler=0x44cf90, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2cac78a030}, {sa_handler=0x44cf90, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2cac78a030}, 8) = 0
195close(4) = 0
196--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26292, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
197wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 26292
198wait4(-1, 0x7ffe86455110, WNOHANG, NULL) = -1 ECHILD (No child processes)
199rt_sigreturn({mask=[]}) = 0
200read(3, "root\n", 128) = 5
201read(3, "", 128) = 0
202close(3) = 0
203rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
204rt_sigaction(SIGINT, {sa_handler=0x449930, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, 8) = 0
205rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, {sa_handler=0x449930, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, 8) = 0
206rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
207stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
208stat("/usr/local/sbin/sudo", 0x7ffe864557f0) = -1 ENOENT (No such file or directory)
209stat("/usr/local/bin/sudo", 0x7ffe864557f0) = -1 ENOENT (No such file or directory)
210stat("/usr/sbin/sudo", 0x7ffe864557f0) = -1 ENOENT (No such file or directory)
211stat("/usr/bin/sudo", {st_mode=S_IFREG|S_ISUID|0755, st_size=140944, ...}) = 0
212stat("/usr/bin/sudo", {st_mode=S_IFREG|S_ISUID|0755, st_size=140944, ...}) = 0
213geteuid() = 0
214getegid() = 0
215getuid() = 0
216getgid() = 0
217access("/usr/bin/sudo", X_OK) = 0
218stat("/usr/bin/sudo", {st_mode=S_IFREG|S_ISUID|0755, st_size=140944, ...}) = 0
219geteuid() = 0
220getegid() = 0
221getuid() = 0
222getgid() = 0
223access("/usr/bin/sudo", R_OK) = 0
224stat("/usr/bin/sudo", {st_mode=S_IFREG|S_ISUID|0755, st_size=140944, ...}) = 0
225stat("/usr/bin/sudo", {st_mode=S_IFREG|S_ISUID|0755, st_size=140944, ...}) = 0
226geteuid() = 0
227getegid() = 0
228getuid() = 0
229getgid() = 0
230access("/usr/bin/sudo", X_OK) = 0
231stat("/usr/bin/sudo", {st_mode=S_IFREG|S_ISUID|0755, st_size=140944, ...}) = 0
232geteuid() = 0
233getegid() = 0
234getuid() = 0
235getgid() = 0
236access("/usr/bin/sudo", R_OK) = 0
237rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, 8) = 0
238rt_sigaction(SIGQUIT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f2cac78a030}, 8) = 0
239rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2cac78a030}, {sa_handler=0x44cf90, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2cac78a030}, 8) = 0
240execve("/usr/bin/sudo", ["sudo", "--preserve-env", "-u", "www-data", "-n", "--", "/usr/local/bin/mwscript", "shell.php"], [/* 19 vars */]) = 0
241brk(NULL) = 0x55681a721000
242access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
243mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1cbb8a1000
244access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
245open("/usr/lib/sudo/tls/x86_64/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
246stat("/usr/lib/sudo/tls/x86_64", 0x7ffd14b1b990) = -1 ENOENT (No such file or directory)
247open("/usr/lib/sudo/tls/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
248stat("/usr/lib/sudo/tls", 0x7ffd14b1b990) = -1 ENOENT (No such file or directory)
249open("/usr/lib/sudo/x86_64/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
250stat("/usr/lib/sudo/x86_64", 0x7ffd14b1b990) = -1 ENOENT (No such file or directory)
251open("/usr/lib/sudo/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
252stat("/usr/lib/sudo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
253open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
254fstat(3, {st_mode=S_IFREG|0644, st_size=30013, ...}) = 0
255mmap(NULL, 30013, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f1cbb899000
256close(3) = 0
257access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
258open("/lib/x86_64-linux-gnu/libaudit.so.1", O_RDONLY|O_CLOEXEC) = 3
259read(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"..., 832) = 832
260fstat(3, {st_mode=S_IFREG|0644, st_size=120752, ...}) = 0
261mmap(NULL, 2257000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1cbb459000
262mprotect(0x7f1cbb476000, 2093056, PROT_NONE) = 0
263mmap(0x7f1cbb675000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c000) = 0x7f1cbb675000
264mmap(0x7f1cbb677000, 36968, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1cbb677000
265close(3) = 0
266open("/usr/lib/sudo/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
267access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
268open("/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
269read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000k\0\0\0\0\0\0"..., 832) = 832
270fstat(3, {st_mode=S_IFREG|0644, st_size=155400, ...}) = 0
271mmap(NULL, 2259664, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1cbb231000
272mprotect(0x7f1cbb256000, 2093056, PROT_NONE) = 0
273mmap(0x7f1cbb455000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x24000) = 0x7f1cbb455000
274mmap(0x7f1cbb457000, 6864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1cbb457000
275close(3) = 0
276open("/usr/lib/sudo/libutil.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
277access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
278open("/lib/x86_64-linux-gnu/libutil.so.1", O_RDONLY|O_CLOEXEC) = 3
279read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\16\0\0\0\0\0\0"..., 832) = 832
280fstat(3, {st_mode=S_IFREG|0644, st_size=10688, ...}) = 0
281mmap(NULL, 2105608, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1cbb02e000
282mprotect(0x7f1cbb030000, 2093056, PROT_NONE) = 0
283mmap(0x7f1cbb22f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f1cbb22f000
284close(3) = 0
285open("/usr/lib/sudo/libsudo_util.so.0", O_RDONLY|O_CLOEXEC) = 3
286read(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"..., 832) = 832
287fstat(3, {st_mode=S_IFREG|0644, st_size=80264, ...}) = 0
288mmap(NULL, 2175848, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1cbae1a000
289mprotect(0x7f1cbae2d000, 2093056, PROT_NONE) = 0
290mmap(0x7f1cbb02c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12000) = 0x7f1cbb02c000
291close(3) = 0
292open("/usr/lib/sudo/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
293access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
294open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
295read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\r\0\0\0\0\0\0"..., 832) = 832
296fstat(3, {st_mode=S_IFREG|0644, st_size=14640, ...}) = 0
297mmap(NULL, 2109680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1cbac16000
298mprotect(0x7f1cbac19000, 2093056, PROT_NONE) = 0
299mmap(0x7f1cbae18000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f1cbae18000
300close(3) = 0
301open("/usr/lib/sudo/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
302access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
303open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
304read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\3\2\0\0\0\0\0"..., 832) = 832
305fstat(3, {st_mode=S_IFREG|0755, st_size=1689360, ...}) = 0
306mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1cbb897000
307mmap(NULL, 3795360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1cba877000
308mprotect(0x7f1cbaa0c000, 2097152, PROT_NONE) = 0
309mmap(0x7f1cbac0c000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x195000) = 0x7f1cbac0c000
310mmap(0x7f1cbac12000, 14752, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1cbac12000
311close(3) = 0
312access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
313open("/lib/x86_64-linux-gnu/libcap-ng.so.0", O_RDONLY|O_CLOEXEC) = 3
314read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\25\0\0\0\0\0\0"..., 832) = 832
315fstat(3, {st_mode=S_IFREG|0644, st_size=22944, ...}) = 0
316mmap(NULL, 2118008, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1cba671000
317mprotect(0x7f1cba675000, 2097152, PROT_NONE) = 0
318mmap(0x7f1cba875000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7f1cba875000
319close(3) = 0
320access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
321open("/lib/x86_64-linux-gnu/libpcre.so.3", O_RDONLY|O_CLOEXEC) = 3
322read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\25\0\0\0\0\0\0"..., 832) = 832
323fstat(3, {st_mode=S_IFREG|0644, st_size=468920, ...}) = 0
324mmap(NULL, 2564360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1cba3fe000
325mprotect(0x7f1cba470000, 2093056, PROT_NONE) = 0
326mmap(0x7f1cba66f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x71000) = 0x7f1cba66f000
327close(3) = 0
328access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
329open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
330read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0Pa\0\0\0\0\0\0"..., 832) = 832
331fstat(3, {st_mode=S_IFREG|0755, st_size=135440, ...}) = 0
332mmap(NULL, 2212936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1cba1e1000
333mprotect(0x7f1cba1f9000, 2093056, PROT_NONE) = 0
334mmap(0x7f1cba3f8000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f1cba3f8000
335mmap(0x7f1cba3fa000, 13384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1cba3fa000
336close(3) = 0
337mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1cbb895000
338arch_prctl(ARCH_SET_FS, 0x7f1cbb895ec0) = 0
339mprotect(0x7f1cbac0c000, 16384, PROT_READ) = 0
340mprotect(0x7f1cba3f8000, 4096, PROT_READ) = 0
341mprotect(0x7f1cba66f000, 4096, PROT_READ) = 0
342mprotect(0x7f1cba875000, 4096, PROT_READ) = 0
343mprotect(0x7f1cbae18000, 4096, PROT_READ) = 0
344mprotect(0x7f1cbb02c000, 4096, PROT_READ) = 0
345mprotect(0x7f1cbb22f000, 4096, PROT_READ) = 0
346mprotect(0x7f1cbb455000, 4096, PROT_READ) = 0
347mprotect(0x7f1cbb675000, 4096, PROT_READ) = 0
348mprotect(0x55681985c000, 4096, PROT_READ) = 0
349mprotect(0x7f1cbb8a4000, 4096, PROT_READ) = 0
350munmap(0x7f1cbb899000, 30013) = 0
351set_tid_address(0x7f1cbb896190) = 26291
352set_robust_list(0x7f1cbb8961a0, 24) = 0
353rt_sigaction(SIGRTMIN, {sa_handler=0x7f1cba1e6bd0, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f1cba1f20c0}, NULL, 8) = 0
354rt_sigaction(SIGRT_1, {sa_handler=0x7f1cba1e6c60, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f1cba1f20c0}, NULL, 8) = 0
355rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
356getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
357statfs("/sys/fs/selinux", 0x7ffd14b1d1e0) = -1 ENOENT (No such file or directory)
358statfs("/selinux", 0x7ffd14b1d1e0) = -1 ENOENT (No such file or directory)
359brk(NULL) = 0x55681a721000
360brk(0x55681a742000) = 0x55681a742000
361open("/proc/filesystems", O_RDONLY) = 3
362fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
363read(3, "nodev\tsysfs\nnodev\trootfs\nnodev\tr"..., 1024) = 331
364read(3, "", 1024) = 0
365close(3) = 0
366access("/etc/selinux/config", F_OK) = -1 ENOENT (No such file or directory)
367fcntl(0, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
368fcntl(1, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
369fcntl(2, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
370open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
371fstat(3, {st_mode=S_IFREG|0644, st_size=1679488, ...}) = 0
372mmap(NULL, 1679488, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f1cbb6fa000
373close(3) = 0
374open("/etc/localtime", O_RDONLY|O_CLOEXEC) = 3
375fstat(3, {st_mode=S_IFREG|0644, st_size=127, ...}) = 0
376fstat(3, {st_mode=S_IFREG|0644, st_size=127, ...}) = 0
377read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\1\0\0\0\0"..., 4096) = 127
378lseek(3, -71, SEEK_CUR) = 56
379read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\1\0\0\0\0"..., 4096) = 71
380close(3) = 0
381stat("/etc/sudo.conf", 0x7ffd14b1cec0) = -1 ENOENT (No such file or directory)
382geteuid() = 0
383rt_sigaction(SIGALRM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
384rt_sigaction(SIGCHLD, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
385rt_sigaction(SIGCONT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
386rt_sigaction(SIGHUP, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
387rt_sigaction(SIGINT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
388rt_sigaction(SIGPIPE, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
389rt_sigaction(SIGQUIT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
390rt_sigaction(SIGTERM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
391rt_sigaction(SIGTSTP, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
392rt_sigaction(SIGTTIN, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
393rt_sigaction(SIGTTOU, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
394rt_sigaction(SIGUSR1, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
395rt_sigaction(SIGUSR2, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
396pipe([3, 4]) = 0
397fcntl(3, F_GETFL) = 0 (flags O_RDONLY)
398fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
399fcntl(4, F_GETFL) = 0x1 (flags O_WRONLY)
400fcntl(4, F_SETFL, O_WRONLY|O_NONBLOCK) = 0
401rt_sigaction(SIGALRM, {sa_handler=0x55681964d7f0, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
402rt_sigaction(SIGHUP, {sa_handler=0x55681964d7f0, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
403rt_sigaction(SIGINT, {sa_handler=0x55681964d7f0, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
404rt_sigaction(SIGQUIT, {sa_handler=0x55681964d7f0, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
405rt_sigaction(SIGTERM, {sa_handler=0x55681964d7f0, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
406rt_sigaction(SIGTSTP, {sa_handler=0x55681964d7f0, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
407rt_sigaction(SIGUSR1, {sa_handler=0x55681964d7f0, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
408rt_sigaction(SIGUSR2, {sa_handler=0x55681964d7f0, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
409rt_sigaction(SIGPIPE, {sa_handler=SIG_IGN, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
410rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
411stat("/etc/sudo.conf", 0x7ffd14b1cec0) = -1 ENOENT (No such file or directory)
412getpid() = 26291
413getppid() = 26289
414getpgid(0) = 26288
415open("/dev/tty", O_RDWR) = 5
416ioctl(5, TIOCGPGRP, [26288]) = 0
417close(5) = 0
418getsid(0) = 1567
419getuid() = 0
420geteuid() = 0
421getgid() = 0
422getegid() = 0
423socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5
424connect(5, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
425close(5) = 0
426socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5
427connect(5, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
428close(5) = 0
429open("/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 5
430fstat(5, {st_mode=S_IFREG|0644, st_size=497, ...}) = 0
431read(5, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 497
432read(5, "", 4096) = 0
433close(5) = 0
434open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 5
435fstat(5, {st_mode=S_IFREG|0644, st_size=30013, ...}) = 0
436mmap(NULL, 30013, PROT_READ, MAP_PRIVATE, 5, 0) = 0x7f1cbb899000
437close(5) = 0
438access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
439open("/lib/x86_64-linux-gnu/libnss_compat.so.2", O_RDONLY|O_CLOEXEC) = 5
440read(5, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\22\0\0\0\0\0\0"..., 832) = 832
441fstat(5, {st_mode=S_IFREG|0644, st_size=31616, ...}) = 0
442mmap(NULL, 2126944, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x7f1cb9fd9000
443mprotect(0x7f1cb9fe0000, 2093056, PROT_NONE) = 0
444mmap(0x7f1cba1df000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x6000) = 0x7f1cba1df000
445close(5) = 0
446access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
447open("/lib/x86_64-linux-gnu/libnsl.so.1", O_RDONLY|O_CLOEXEC) = 5
448read(5, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320?\0\0\0\0\0\0"..., 832) = 832
449fstat(5, {st_mode=S_IFREG|0644, st_size=89064, ...}) = 0
450mmap(NULL, 2194008, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x7f1cb9dc1000
451mprotect(0x7f1cb9dd5000, 2097152, PROT_NONE) = 0
452mmap(0x7f1cb9fd5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x14000) = 0x7f1cb9fd5000
453mmap(0x7f1cb9fd7000, 6744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1cb9fd7000
454close(5) = 0
455mprotect(0x7f1cb9fd5000, 4096, PROT_READ) = 0
456mprotect(0x7f1cba1df000, 4096, PROT_READ) = 0
457munmap(0x7f1cbb899000, 30013) = 0
458open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 5
459fstat(5, {st_mode=S_IFREG|0644, st_size=30013, ...}) = 0
460mmap(NULL, 30013, PROT_READ, MAP_PRIVATE, 5, 0) = 0x7f1cbb899000
461close(5) = 0
462access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
463open("/lib/x86_64-linux-gnu/libnss_nis.so.2", O_RDONLY|O_CLOEXEC) = 5
464read(5, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340 \0\0\0\0\0\0"..., 832) = 832
465fstat(5, {st_mode=S_IFREG|0644, st_size=47688, ...}) = 0
466mmap(NULL, 2143656, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x7f1cb9bb5000
467mprotect(0x7f1cb9bc0000, 2093056, PROT_NONE) = 0
468mmap(0x7f1cb9dbf000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0xa000) = 0x7f1cb9dbf000
469close(5) = 0
470access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
471open("/lib/x86_64-linux-gnu/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 5
472read(5, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320!\0\0\0\0\0\0"..., 832) = 832
473fstat(5, {st_mode=S_IFREG|0644, st_size=47632, ...}) = 0
474mmap(NULL, 2168600, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x7f1cb99a3000
475mprotect(0x7f1cb99ad000, 2097152, PROT_NONE) = 0
476mmap(0x7f1cb9bad000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0xa000) = 0x7f1cb9bad000
477mmap(0x7f1cb9baf000, 22296, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1cb9baf000
478close(5) = 0
479mprotect(0x7f1cb9bad000, 4096, PROT_READ) = 0
480mprotect(0x7f1cb9dbf000, 4096, PROT_READ) = 0
481munmap(0x7f1cbb899000, 30013) = 0
482open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 5
483lseek(5, 0, SEEK_CUR) = 0
484fstat(5, {st_mode=S_IFREG|0644, st_size=1902, ...}) = 0
485mmap(NULL, 1902, PROT_READ, MAP_SHARED, 5, 0) = 0x7f1cbb8a0000
486lseek(5, 1902, SEEK_SET) = 1902
487munmap(0x7f1cbb8a0000, 1902) = 0
488close(5) = 0
489open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 5
490read(5, "65536\n", 31) = 6
491close(5) = 0
492getgroups(0, NULL) = 1
493getgroups(1, [0]) = 1
494umask(000) = 022
495umask(022) = 000
496getcwd("/vagrant/mediawiki", 4096) = 19
497open("/proc/self/stat", O_RDONLY|O_NOFOLLOW) = 5
498read(5, "26291 (sudo) R 26289 26288 1567 "..., 1024) = 322
499read(5, "", 702) = 0
500stat("/dev/console", {st_mode=S_IFCHR|0600, st_rdev=makedev(5, 1), ...}) = 0
501stat("/dev/pts/0", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
502close(5) = 0
503uname({sysname="Linux", nodename="mcr", ...}) = 0
504ioctl(2, TIOCGWINSZ, {ws_row=62, ws_col=204, ws_xpixel=0, ws_ypixel=0}) = 0
505getrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM64_INFINITY}) = 0
506setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM64_INFINITY}) = 0
507socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE) = 5
508bind(5, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 0
509getsockname(5, {sa_family=AF_NETLINK, nl_pid=26291, nl_groups=00000000}, [12]) = 0
510sendto(5, {{len=20, type=0x12 /* NLMSG_??? */, flags=NLM_F_REQUEST|0x300, seq=1525971745, pid=0}, "\0\0\0\0"}, 20, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 20
511recvmsg(5, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[{{len=1232, type=0x10 /* NLMSG_??? */, flags=NLM_F_MULTI, seq=1525971745, pid=26291}, "\0\0\4\3\1\0\0\0I\0\1\0\0\0\0\0\7\0\3\0lo\0\0\10\0\r\0\1\0\0\0"...}, {{len=1240, type=0x10 /* NLMSG_??? */, flags=NLM_F_MULTI, seq=1525971745, pid=26291}, "\0\0\1\0\2\0\0\0C\20\1\0\0\0\0\0\t\0\3\0eth0\0\0\0\0\10\0\r\0"...}, {{len=1240, type=0x10 /* NLMSG_??? */, flags=NLM_F_MULTI, seq=1525971745, pid=26291}, "\0\0\1\0\3\0\0\0C\20\1\0\0\0\0\0\t\0\3\0eth1\0\0\0\0\10\0\r\0"...}, {{len=0, type=0 /* NLMSG_??? */, flags=0, seq=0, pid=0}}], iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 3712
512recvmsg(5, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[{{len=20, type=NLMSG_DONE, flags=NLM_F_MULTI, seq=1525971745, pid=26291}, "\0\0\0\0"}, {{len=1, type=0x49 /* NLMSG_??? */, flags=NLM_F_REQUEST, seq=0, pid=196615}}], iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 20
513sendto(5, {{len=20, type=0x16 /* NLMSG_??? */, flags=NLM_F_REQUEST|0x300, seq=1525971746, pid=0}, "\0\0\0\0"}, 20, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 20
514recvmsg(5, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[{{len=76, type=0x14 /* NLMSG_??? */, flags=NLM_F_MULTI, seq=1525971746, pid=26291}, "\2\10\200\376\1\0\0\0\10\0\1\0\177\0\0\1\10\0\2\0\177\0\0\1\7\0\3\0lo\0\0"...}, {{len=88, type=0x14 /* NLMSG_??? */, flags=NLM_F_MULTI, seq=1525971746, pid=26291}, "\2\30\200\0\2\0\0\0\10\0\1\0\n\0\2\17\10\0\2\0\n\0\2\17\10\0\4\0\n\0\2\377"...}, {{len=88, type=0x14 /* NLMSG_??? */, flags=NLM_F_MULTI, seq=1525971746, pid=26291}, "\2\30\200\0\3\0\0\0\10\0\1\0\n\v\f\207\10\0\2\0\n\v\f\207\10\0\4\0\n\v\f\377"...}, {{len=0, type=0 /* NLMSG_??? */, flags=0, seq=0, pid=0}}], iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 252
515recvmsg(5, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[{{len=72, type=0x14 /* NLMSG_??? */, flags=NLM_F_MULTI, seq=1525971746, pid=26291}, "\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\24\0\6\0"...}, {{len=72, type=0x14 /* NLMSG_??? */, flags=NLM_F_MULTI, seq=1525971746, pid=26291}, "\n@\200\375\2\0\0\0\24\0\1\0\376\200\0\0\0\0\0\0\n\0'\377\376\215\300M\24\0\6\0"...}, {{len=72, type=0x14 /* NLMSG_??? */, flags=NLM_F_MULTI, seq=1525971746, pid=26291}, "\n@\200\375\3\0\0\0\24\0\1\0\376\200\0\0\0\0\0\0\n\0'\377\376$t\260\24\0\6\0"...}, {{len=828929125, type=0 /* NLMSG_??? */, flags=0, seq=524296, pid=128}, "\24\0\6\0\377\377\377\377\377\377\377\377\320\6\0\0\320\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...}], iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 216
516recvmsg(5, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[{{len=20, type=NLMSG_DONE, flags=NLM_F_MULTI, seq=1525971746, pid=26291}, "\0\0\0\0"}, {{len=1, type=0x14 /* NLMSG_??? */, flags=NLM_F_REQUEST, seq=0, pid=0}}], iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 20
517close(5) = 0
518stat("/usr/lib/sudo/sudoers.so", {st_mode=S_IFREG|0644, st_size=337696, ...}) = 0
519futex(0x7f1cbae190a8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
520open("/usr/lib/sudo/sudoers.so", O_RDONLY|O_CLOEXEC) = 5
521read(5, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20h\0\0\0\0\0\0"..., 832) = 832
522fstat(5, {st_mode=S_IFREG|0644, st_size=337696, ...}) = 0
523mmap(NULL, 2435336, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x7f1cb9750000
524mprotect(0x7f1cb97a0000, 2093056, PROT_NONE) = 0
525mmap(0x7f1cb999f000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x4f000) = 0x7f1cb999f000
526mmap(0x7f1cb99a2000, 2312, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1cb99a2000
527close(5) = 0
528open("/usr/lib/sudo/libpam.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
529open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 5
530fstat(5, {st_mode=S_IFREG|0644, st_size=30013, ...}) = 0
531mmap(NULL, 30013, PROT_READ, MAP_PRIVATE, 5, 0) = 0x7f1cbb899000
532close(5) = 0
533access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
534open("/lib/x86_64-linux-gnu/libpam.so.0", O_RDONLY|O_CLOEXEC) = 5
535read(5, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260&\0\0\0\0\0\0"..., 832) = 832
536fstat(5, {st_mode=S_IFREG|0644, st_size=56016, ...}) = 0
537mmap(NULL, 2151000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x7f1cb9542000
538mprotect(0x7f1cb954f000, 2093056, PROT_NONE) = 0
539mmap(0x7f1cb974e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0xc000) = 0x7f1cb974e000
540close(5) = 0
541mprotect(0x7f1cb974e000, 4096, PROT_READ) = 0
542mprotect(0x7f1cb999f000, 4096, PROT_READ) = 0
543munmap(0x7f1cbb899000, 30013) = 0
544stat("/usr/lib/sudo/sudoers.so", {st_mode=S_IFREG|0644, st_size=337696, ...}) = 0
545open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 5
546fstat(5, {st_mode=S_IFREG|0644, st_size=2995, ...}) = 0
547read(5, "# Locale name alias data base.\n#"..., 4096) = 2995
548read(5, "", 4096) = 0
549close(5) = 0
550open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/sudoers.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
551open("/usr/share/locale/en_US.utf8/LC_MESSAGES/sudoers.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
552open("/usr/share/locale/en_US/LC_MESSAGES/sudoers.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
553open("/usr/share/locale/en.UTF-8/LC_MESSAGES/sudoers.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
554open("/usr/share/locale/en.utf8/LC_MESSAGES/sudoers.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
555open("/usr/share/locale/en/LC_MESSAGES/sudoers.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
556open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 5
557lseek(5, 0, SEEK_CUR) = 0
558fstat(5, {st_mode=S_IFREG|0644, st_size=1902, ...}) = 0
559mmap(NULL, 1902, PROT_READ, MAP_SHARED, 5, 0) = 0x7f1cbb8a0000
560lseek(5, 1902, SEEK_SET) = 1902
561munmap(0x7f1cbb8a0000, 1902) = 0
562close(5) = 0
563getresuid([0], [0], [0]) = 0
564getresgid([0], [0], [0]) = 0
565open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 5
566lseek(5, 0, SEEK_CUR) = 0
567fstat(5, {st_mode=S_IFREG|0644, st_size=1902, ...}) = 0
568mmap(NULL, 1902, PROT_READ, MAP_SHARED, 5, 0) = 0x7f1cbb8a0000
569lseek(5, 1902, SEEK_SET) = 1902
570munmap(0x7f1cbb8a0000, 1902) = 0
571close(5) = 0
572open("/etc/nsswitch.conf", O_RDONLY) = 5
573fstat(5, {st_mode=S_IFREG|0644, st_size=497, ...}) = 0
574read(5, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 497
575read(5, "", 4096) = 0
576close(5) = 0
577setresuid(-1, 1, -1) = 0
578stat("/etc/sudoers", {st_mode=S_IFREG|0440, st_size=669, ...}) = 0
579open("/etc/sudoers", O_RDONLY) = 5
580fstat(5, {st_mode=S_IFREG|0440, st_size=669, ...}) = 0
581read(5, "#\n# This file MUST be edited wit"..., 4096) = 669
582lseek(5, 0, SEEK_SET) = 0
583fcntl(5, F_SETFD, FD_CLOEXEC) = 0
584setresuid(-1, 0, -1) = 0
585setresuid(-1, 0, -1) = 0
586setresgid(-1, -1, -1) = 0
587ioctl(5, TCGETS, 0x7ffd14b1ce00) = -1 ENOTTY (Inappropriate ioctl for device)
588read(5, "#\n# This file MUST be edited wit"..., 8192) = 669
589read(5, "", 4096) = 0
590stat("/etc/sudoers.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
591open("/etc/sudoers.d", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 6
592fstat(6, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
593getdents(6, /* 4 entries */, 32768) = 112
594stat("/etc/sudoers.d/README", {st_mode=S_IFREG|0440, st_size=958, ...}) = 0
595stat("/etc/sudoers.d/vagrant", {st_mode=S_IFREG|0440, st_size=31, ...}) = 0
596getdents(6, /* 0 entries */, 32768) = 0
597close(6) = 0
598setresuid(-1, 1, -1) = 0
599stat("/etc/sudoers.d/README", {st_mode=S_IFREG|0440, st_size=958, ...}) = 0
600open("/etc/sudoers.d/README", O_RDONLY) = 6
601fstat(6, {st_mode=S_IFREG|0440, st_size=958, ...}) = 0
602read(6, "#\n# As of Debian version 1.7.2p1"..., 4096) = 958
603lseek(6, 0, SEEK_SET) = 0
604fcntl(6, F_SETFD, FD_CLOEXEC) = 0
605setresuid(-1, 0, -1) = 0
606setresuid(-1, 0, -1) = 0
607setresgid(-1, -1, -1) = 0
608ioctl(6, TCGETS, 0x7ffd14b1cc50) = -1 ENOTTY (Inappropriate ioctl for device)
609read(6, "#\n# As of Debian version 1.7.2p1"..., 8192) = 958
610read(6, "", 4096) = 0
611read(6, "", 8192) = 0
612ioctl(6, TCGETS, 0x7ffd14b1ce00) = -1 ENOTTY (Inappropriate ioctl for device)
613close(6) = 0
614setresuid(-1, 1, -1) = 0
615stat("/etc/sudoers.d/vagrant", {st_mode=S_IFREG|0440, st_size=31, ...}) = 0
616open("/etc/sudoers.d/vagrant", O_RDONLY) = 6
617fstat(6, {st_mode=S_IFREG|0440, st_size=31, ...}) = 0
618read(6, "vagrant ALL=(ALL) NOPASSWD:ALL\n", 4096) = 31
619lseek(6, 0, SEEK_SET) = 0
620fcntl(6, F_SETFD, FD_CLOEXEC) = 0
621setresuid(-1, 0, -1) = 0
622setresuid(-1, 0, -1) = 0
623setresgid(-1, -1, -1) = 0
624ioctl(6, TCGETS, 0x7ffd14b1ce00) = -1 ENOTTY (Inappropriate ioctl for device)
625read(6, "vagrant ALL=(ALL) NOPASSWD:ALL\n", 8192) = 31
626read(6, "", 4096) = 0
627read(6, "", 8192) = 0
628ioctl(6, TCGETS, 0x7ffd14b1ce00) = -1 ENOTTY (Inappropriate ioctl for device)
629close(6) = 0
630read(5, "", 8192) = 0
631ioctl(5, TCGETS, 0x7ffd14b1ce00) = -1 ENOTTY (Inappropriate ioctl for device)
632socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 6
633connect(6, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
634close(6) = 0
635socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 6
636connect(6, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
637close(6) = 0
638open("/etc/host.conf", O_RDONLY|O_CLOEXEC) = 6
639fstat(6, {st_mode=S_IFREG|0644, st_size=9, ...}) = 0
640read(6, "multi on\n", 4096) = 9
641read(6, "", 4096) = 0
642close(6) = 0
643futex(0x7f1cbac14a64, FUTEX_WAKE_PRIVATE, 2147483647) = 0
644getpid() = 26291
645open("/etc/resolv.conf", O_RDONLY|O_CLOEXEC) = 6
646fstat(6, {st_mode=S_IFREG|0644, st_size=20, ...}) = 0
647read(6, "nameserver 10.0.2.3\n", 4096) = 20
648read(6, "", 4096) = 0
649close(6) = 0
650uname({sysname="Linux", nodename="mcr", ...}) = 0
651open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 6
652fstat(6, {st_mode=S_IFREG|0644, st_size=263, ...}) = 0
653read(6, "127.0.0.1\tmcr.mediawiki-vagrant."..., 4096) = 263
654read(6, "", 4096) = 0
655close(6) = 0
656setresuid(-1, -1, -1) = 0
657setresgid(-1, -1, -1) = 0
658getrlimit(RLIMIT_NPROC, {rlim_cur=7929, rlim_max=7929}) = 0
659setrlimit(RLIMIT_NPROC, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}) = 0
660getresuid([0], [0], [0]) = 0
661getresgid([0], [0], [0]) = 0
662setresgid(-1, 33, -1) = 0
663open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 6
664read(6, "65536\n", 31) = 6
665close(6) = 0
666mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1cb94c1000
667mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1cb9440000
668socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 6
669connect(6, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
670close(6) = 0
671socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 6
672connect(6, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
673close(6) = 0
674open("/etc/group", O_RDONLY|O_CLOEXEC) = 6
675lseek(6, 0, SEEK_CUR) = 0
676fstat(6, {st_mode=S_IFREG|0644, st_size=881, ...}) = 0
677mmap(NULL, 881, PROT_READ, MAP_SHARED, 6, 0) = 0x7f1cbb8a0000
678lseek(6, 881, SEEK_SET) = 881
679fstat(6, {st_mode=S_IFREG|0644, st_size=881, ...}) = 0
680munmap(0x7f1cbb8a0000, 881) = 0
681close(6) = 0
682munmap(0x7f1cb9440000, 528384) = 0
683munmap(0x7f1cb94c1000, 528384) = 0
684setgroups(1, [33]) = 0
685setresuid(-1, 33, -1) = 0
686stat("/usr/local/bin/mwscript", {st_mode=S_IFREG|0755, st_size=269, ...}) = 0
687setresuid(-1, 0, -1) = 0
688setresuid(-1, 0, -1) = 0
689setresgid(-1, 0, -1) = 0
690setgroups(1, [0]) = 0
691setresgid(-1, 33, -1) = 0
692setgroups(1, [33]) = 0
693setresuid(-1, 33, -1) = 0
694open("/etc/group", O_RDONLY|O_CLOEXEC) = 6
695lseek(6, 0, SEEK_CUR) = 0
696fstat(6, {st_mode=S_IFREG|0644, st_size=881, ...}) = 0
697mmap(NULL, 881, PROT_READ, MAP_SHARED, 6, 0) = 0x7f1cbb8a0000
698lseek(6, 881, SEEK_SET) = 881
699munmap(0x7f1cbb8a0000, 881) = 0
700close(6) = 0
701setresuid(-1, 0, -1) = 0
702setresuid(-1, 0, -1) = 0
703setresgid(-1, 0, -1) = 0
704setgroups(1, [0]) = 0
705stat("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
706open("/etc/pam.d/sudo", O_RDONLY) = 6
707fstat(6, {st_mode=S_IFREG|0644, st_size=95, ...}) = 0
708read(6, "#%PAM-1.0\n\n@include common-auth\n"..., 4096) = 95
709stat("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
710open("/etc/pam.d/common-auth", O_RDONLY) = 7
711fstat(7, {st_mode=S_IFREG|0644, st_size=1221, ...}) = 0
712read(7, "#\n# /etc/pam.d/common-auth - aut"..., 4096) = 1221
713open("/lib/x86_64-linux-gnu/security/pam_unix.so", O_RDONLY|O_CLOEXEC) = 8
714read(8, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000)\0\0\0\0\0\0"..., 832) = 832
715fstat(8, {st_mode=S_IFREG|0644, st_size=60336, ...}) = 0
716mmap(NULL, 2204640, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 8, 0) = 0x7f1cb9327000
717mprotect(0x7f1cb9334000, 2097152, PROT_NONE) = 0
718mmap(0x7f1cb9534000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 8, 0xd000) = 0x7f1cb9534000
719mmap(0x7f1cb9536000, 46048, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1cb9536000
720close(8) = 0
721open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 8
722fstat(8, {st_mode=S_IFREG|0644, st_size=30013, ...}) = 0
723mmap(NULL, 30013, PROT_READ, MAP_PRIVATE, 8, 0) = 0x7f1cbb899000
724close(8) = 0
725access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
726open("/lib/x86_64-linux-gnu/libcrypt.so.1", O_RDONLY|O_CLOEXEC) = 8
727read(8, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\v\0\0\0\0\0\0"..., 832) = 832
728fstat(8, {st_mode=S_IFREG|0644, st_size=39256, ...}) = 0
729mmap(NULL, 2322912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 8, 0) = 0x7f1cb90ef000
730mprotect(0x7f1cb90f7000, 2097152, PROT_NONE) = 0
731mmap(0x7f1cb92f7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 8, 0x8000) = 0x7f1cb92f7000
732mmap(0x7f1cb92f9000, 184800, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1cb92f9000
733close(8) = 0
734mprotect(0x7f1cb92f7000, 4096, PROT_READ) = 0
735mprotect(0x7f1cb9534000, 4096, PROT_READ) = 0
736munmap(0x7f1cbb899000, 30013) = 0
737open("/lib/x86_64-linux-gnu/security/pam_deny.so", O_RDONLY|O_CLOEXEC) = 8
738read(8, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\5\0\0\0\0\0\0"..., 832) = 832
739fstat(8, {st_mode=S_IFREG|0644, st_size=6000, ...}) = 0
740mmap(NULL, 2101288, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 8, 0) = 0x7f1cb8eed000
741mprotect(0x7f1cb8eee000, 2093056, PROT_NONE) = 0
742mmap(0x7f1cb90ed000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 8, 0) = 0x7f1cb90ed000
743close(8) = 0
744mprotect(0x7f1cb90ed000, 4096, PROT_READ) = 0
745open("/lib/x86_64-linux-gnu/security/pam_permit.so", O_RDONLY|O_CLOEXEC) = 8
746read(8, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\6\0\0\0\0\0\0"..., 832) = 832
747fstat(8, {st_mode=S_IFREG|0644, st_size=6168, ...}) = 0
748mmap(NULL, 2101312, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 8, 0) = 0x7f1cb8ceb000
749mprotect(0x7f1cb8cec000, 2093056, PROT_NONE) = 0
750mmap(0x7f1cb8eeb000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 8, 0) = 0x7f1cb8eeb000
751close(8) = 0
752mprotect(0x7f1cb8eeb000, 4096, PROT_READ) = 0
753read(7, "", 4096) = 0
754close(7) = 0
755stat("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
756open("/etc/pam.d/common-account", O_RDONLY) = 7
757fstat(7, {st_mode=S_IFREG|0644, st_size=1208, ...}) = 0
758read(7, "#\n# /etc/pam.d/common-account - "..., 4096) = 1208
759read(7, "", 4096) = 0
760close(7) = 0
761stat("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
762open("/etc/pam.d/common-session-noninteractive", O_RDONLY) = 7
763fstat(7, {st_mode=S_IFREG|0644, st_size=1154, ...}) = 0
764read(7, "#\n# /etc/pam.d/common-session-no"..., 4096) = 1154
765read(7, "", 4096) = 0
766close(7) = 0
767read(6, "", 4096) = 0
768close(6) = 0
769open("/etc/pam.d/other", O_RDONLY) = 6
770fstat(6, {st_mode=S_IFREG|0644, st_size=520, ...}) = 0
771read(6, "#\n# /etc/pam.d/other - specify t"..., 4096) = 520
772stat("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
773open("/etc/pam.d/common-auth", O_RDONLY) = 7
774fstat(7, {st_mode=S_IFREG|0644, st_size=1221, ...}) = 0
775read(7, "#\n# /etc/pam.d/common-auth - aut"..., 4096) = 1221
776read(7, "", 4096) = 0
777close(7) = 0
778stat("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
779open("/etc/pam.d/common-account", O_RDONLY) = 7
780fstat(7, {st_mode=S_IFREG|0644, st_size=1208, ...}) = 0
781read(7, "#\n# /etc/pam.d/common-account - "..., 4096) = 1208
782read(7, "", 4096) = 0
783close(7) = 0
784stat("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
785open("/etc/pam.d/common-password", O_RDONLY) = 7
786fstat(7, {st_mode=S_IFREG|0644, st_size=1440, ...}) = 0
787read(7, "#\n# /etc/pam.d/common-password -"..., 4096) = 1440
788read(7, "", 4096) = 0
789close(7) = 0
790stat("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
791open("/etc/pam.d/common-session", O_RDONLY) = 7
792fstat(7, {st_mode=S_IFREG|0644, st_size=1189, ...}) = 0
793read(7, "#\n# /etc/pam.d/common-session - "..., 4096) = 1189
794open("/lib/x86_64-linux-gnu/security/pam_systemd.so", O_RDONLY|O_CLOEXEC) = 8
795read(8, "\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) = 832
796fstat(8, {st_mode=S_IFREG|0644, st_size=279032, ...}) = 0
797mmap(NULL, 282752, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 8, 0) = 0x7f1cbb6b4000
798mmap(0x7f1cbb6f5000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 8, 0x40000) = 0x7f1cbb6f5000
799mmap(0x7f1cbb6f9000, 128, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1cbb6f9000
800close(8) = 0
801open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 8
802fstat(8, {st_mode=S_IFREG|0644, st_size=30013, ...}) = 0
803mmap(NULL, 30013, PROT_READ, MAP_PRIVATE, 8, 0) = 0x7f1cbb899000
804close(8) = 0
805access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
806open("/lib/x86_64-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 8
807read(8, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340 \0\0\0\0\0\0"..., 832) = 832
808fstat(8, {st_mode=S_IFREG|0644, st_size=31744, ...}) = 0
809mmap(NULL, 2128832, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 8, 0) = 0x7f1cb8ae3000
810mprotect(0x7f1cb8aea000, 2093056, PROT_NONE) = 0
811mmap(0x7f1cb8ce9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 8, 0x6000) = 0x7f1cb8ce9000
812close(8) = 0
813access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
814open("/lib/x86_64-linux-gnu/libpam_misc.so.0", O_RDONLY|O_CLOEXEC) = 8
815read(8, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\20\0\0\0\0\0\0"..., 832) = 832
816fstat(8, {st_mode=S_IFREG|0644, st_size=14640, ...}) = 0
817mmap(NULL, 2109744, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 8, 0) = 0x7f1cb88df000
818mprotect(0x7f1cb88e2000, 2093056, PROT_NONE) = 0
819mmap(0x7f1cb8ae1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 8, 0x2000) = 0x7f1cb8ae1000
820close(8) = 0
821mprotect(0x7f1cb8ae1000, 4096, PROT_READ) = 0
822mprotect(0x7f1cb8ce9000, 4096, PROT_READ) = 0
823mprotect(0x7f1cbb6f5000, 12288, PROT_READ) = 0
824munmap(0x7f1cbb899000, 30013) = 0
825read(7, "", 4096) = 0
826close(7) = 0
827read(6, "", 4096) = 0
828close(6) = 0
829open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 6
830lseek(6, 0, SEEK_CUR) = 0
831fstat(6, {st_mode=S_IFREG|0644, st_size=1902, ...}) = 0
832mmap(NULL, 1902, PROT_READ, MAP_SHARED, 6, 0) = 0x7f1cbb8a0000
833lseek(6, 1902, SEEK_SET) = 1902
834munmap(0x7f1cbb8a0000, 1902) = 0
835close(6) = 0
836socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 6
837connect(6, {sa_family=AF_UNIX, sun_path="/dev/log"}, 110) = 0
838sendto(6, "<85>May 10 17:02:25 sudo: ro"..., 131, MSG_NOSIGNAL, NULL, 0) = 131
839close(6) = 0
840setresuid(-1, -1, -1) = 0
841setresgid(-1, -1, -1) = 0
842close(5) = 0
843socket(AF_NETLINK, SOCK_RAW, NETLINK_AUDIT) = 5
844fcntl(5, F_SETFD, FD_CLOEXEC) = 0
845fcntl(5, F_SETFD, FD_CLOEXEC) = 0
846ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
847fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
848readlink("/proc/self/fd/0", "/dev/pts/0", 31) = 10
849stat("/dev/pts/0", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
850lstat("/dev/pts/0", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
851getcwd("/vagrant/mediawiki", 4096) = 19
852sendto(5, {{len=140, type=0x463 /* NLMSG_??? */, flags=NLM_F_REQUEST|NLM_F_ACK, seq=1, pid=0}, "cwd=\"/vagrant/mediawiki\" cmd=2F7"...}, 140, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 140
853poll([{fd=5, events=POLLIN}], 1, 500) = 1 ([{fd=5, revents=POLLIN}])
854recvfrom(5, {{len=36, type=NLMSG_ERROR, flags=0, seq=1, pid=26291}, "\0\0\0\0\214\0\0\0c\4\5\0\1\0\0\0\0\0\0\0"}, 8988, MSG_PEEK|MSG_DONTWAIT, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, [12]) = 36
855recvfrom(5, {{len=36, type=NLMSG_ERROR, flags=0, seq=1, pid=26291}, "\0\0\0\0\214\0\0\0c\4\5\0\1\0\0\0\0\0\0\0"}, 8988, MSG_DONTWAIT, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, [12]) = 36
856setresuid(-1, -1, -1) = 0
857setresgid(-1, -1, -1) = 0
858setrlimit(RLIMIT_NPROC, {rlim_cur=7929, rlim_max=7929}) = 0
859open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 6
860lseek(6, 0, SEEK_CUR) = 0
861fstat(6, {st_mode=S_IFREG|0644, st_size=1902, ...}) = 0
862mmap(NULL, 1902, PROT_READ, MAP_SHARED, 6, 0) = 0x7f1cbb8a0000
863lseek(6, 1902, SEEK_SET) = 1902
864munmap(0x7f1cbb8a0000, 1902) = 0
865close(6) = 0
866open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 6
867lseek(6, 0, SEEK_CUR) = 0
868fstat(6, {st_mode=S_IFREG|0644, st_size=1902, ...}) = 0
869mmap(NULL, 1902, PROT_READ, MAP_SHARED, 6, 0) = 0x7f1cbb8a0000
870lseek(6, 1902, SEEK_SET) = 1902
871munmap(0x7f1cbb8a0000, 1902) = 0
872close(6) = 0
873setuid(0) = 0
874setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM64_INFINITY}) = 0
875read(3, 0x7ffd14b1cf00, 1) = -1 EAGAIN (Resource temporarily unavailable)
876socketpair(AF_UNIX, SOCK_STREAM, 0, [6, 7]) = 0
877rt_sigaction(SIGTERM, {sa_handler=0x556819643200, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_INTERRUPT|SA_SIGINFO, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
878rt_sigaction(SIGHUP, {sa_handler=0x556819643200, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_INTERRUPT|SA_SIGINFO, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
879rt_sigaction(SIGALRM, {sa_handler=0x556819643200, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_INTERRUPT|SA_SIGINFO, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
880rt_sigaction(SIGPIPE, {sa_handler=0x556819643200, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_INTERRUPT|SA_SIGINFO, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
881rt_sigaction(SIGUSR1, {sa_handler=0x556819643200, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_INTERRUPT|SA_SIGINFO, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
882rt_sigaction(SIGUSR2, {sa_handler=0x556819643200, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_INTERRUPT|SA_SIGINFO, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
883rt_sigaction(SIGINT, {sa_handler=0x556819643140, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_INTERRUPT|SA_SIGINFO, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
884rt_sigaction(SIGQUIT, {sa_handler=0x556819643140, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_INTERRUPT|SA_SIGINFO, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
885setgroups(1, [33]) = 0
886setgid(33) = 0
887socket(AF_NETLINK, SOCK_RAW, NETLINK_AUDIT) = 8
888fcntl(8, F_SETFD, FD_CLOEXEC) = 0
889readlink("/proc/self/exe", "/usr/bin/sudo", 4096) = 13
890sendto(8, {{len=120, type=0x456 /* NLMSG_??? */, flags=NLM_F_REQUEST|NLM_F_ACK, seq=2, pid=0}, "op=PAM:setcred acct=\"www-data\" e"...}, 120, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 120
891poll([{fd=8, events=POLLIN}], 1, 500) = 1 ([{fd=8, revents=POLLIN}])
892recvfrom(8, {{len=36, type=NLMSG_ERROR, flags=0, seq=2, pid=2844428582}, "\0\0\0\0x\0\0\0V\4\5\0\2\0\0\0\0\0\0\0"}, 8988, MSG_PEEK|MSG_DONTWAIT, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, [12]) = 36
893recvfrom(8, {{len=36, type=NLMSG_ERROR, flags=0, seq=2, pid=2844428582}, "\0\0\0\0x\0\0\0V\4\5\0\2\0\0\0\0\0\0\0"}, 8988, MSG_DONTWAIT, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, [12]) = 36
894close(8) = 0
895getuid() = 0
896open("/etc/login.defs", O_RDONLY) = 8
897fstat(8, {st_mode=S_IFREG|0644, st_size=10477, ...}) = 0
898read(8, "#\n# /etc/login.defs - Configurat"..., 4096) = 4096
899read(8, " issuing \n# the \"mesg y\" command"..., 4096) = 4096
900read(8, "t supports passwords of unlimite"..., 4096) = 2285
901close(8) = 0
902access("/var/run/utmpx", F_OK) = -1 ENOENT (No such file or directory)
903open("/var/run/utmp", O_RDONLY|O_CLOEXEC) = 8
904lseek(8, 0, SEEK_SET) = 0
905alarm(0) = 0
906rt_sigaction(SIGALRM, {sa_handler=0x7f1cba993f20, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f1cba8aa030}, {sa_handler=0x556819643200, sa_mask=~[KILL STOP RTMIN RT_1], sa_flags=SA_RESTORER|SA_INTERRUPT|SA_SIGINFO, sa_restorer=0x7f1cba8aa030}, 8) = 0
907alarm(10) = 0
908fcntl(8, F_SETLKW, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
909read(8, "\2\0\0\0\0\0\0\0~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
910read(8, "\6\0\0\0<\2\0\0tty1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
911read(8, "\1\0\0\0005\0\0\0~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
912read(8, "\7\0\0\0\26\6\0\0pts/0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
913fcntl(8, F_SETLKW, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
914alarm(0) = 10
915rt_sigaction(SIGALRM, {sa_handler=0x556819643200, sa_mask=~[KILL STOP RTMIN RT_1], sa_flags=SA_RESTORER|SA_INTERRUPT|SA_SIGINFO, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
916close(8) = 0
917getuid() = 0
918socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 8
919connect(8, {sa_family=AF_UNIX, sun_path="/dev/log"}, 110) = 0
920sendto(8, "<86>May 10 17:02:25 sudo: pam_un"..., 100, MSG_NOSIGNAL, NULL, 0) = 100
921socket(AF_NETLINK, SOCK_RAW, NETLINK_AUDIT) = 9
922fcntl(9, F_SETFD, FD_CLOEXEC) = 0
923sendto(9, {{len=124, type=0x451 /* NLMSG_??? */, flags=NLM_F_REQUEST|NLM_F_ACK, seq=3, pid=0}, "op=PAM:session_open acct=\"www-da"...}, 124, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 124
924poll([{fd=9, events=POLLIN}], 1, 500) = 1 ([{fd=9, revents=POLLIN}])
925recvfrom(9, {{len=36, type=NLMSG_ERROR, flags=0, seq=3, pid=3270505455}, "\0\0\0\0|\0\0\0Q\4\5\0\3\0\0\0\0\0\0\0"}, 8988, MSG_PEEK|MSG_DONTWAIT, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, [12]) = 36
926recvfrom(9, {{len=36, type=NLMSG_ERROR, flags=0, seq=3, pid=3270505455}, "\0\0\0\0|\0\0\0Q\4\5\0\3\0\0\0\0\0\0\0"}, 8988, MSG_DONTWAIT, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, [12]) = 36
927close(9) = 0
928getpgrp() = 26288
929rt_sigaction(SIGCHLD, {sa_handler=0x556819643200, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_INTERRUPT|SA_SIGINFO, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
930rt_sigaction(SIGCONT, {sa_handler=0x556819643200, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_INTERRUPT|SA_SIGINFO, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
931rt_sigaction(SIGTSTP, {sa_handler=0x556819643140, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER|SA_INTERRUPT|SA_SIGINFO, sa_restorer=0x7f1cba8aa030}, NULL, 8) = 0
932clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f1cbb896190) = 26294
933close(7) = 0
934poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, -1) = 1 ([{fd=6, revents=POLLIN|POLLHUP}])
935recvfrom(6, "", 8, MSG_WAITALL, NULL, NULL) = 0
936poll([{fd=3, events=POLLIN}], 1, -1PHP Notice: Writing to /root/.config/psysh is not allowed. in /vagrant/mediawiki/vendor/psy/psysh/src/Psy/ConfigPaths.php on line 213
937PHP Stack trace:
938PHP 1. {main}() /var/www/w/MWScript.php:0
939PHP 2. require_once() /var/www/w/MWScript.php:98
940PHP 3. require_once() /vagrant/mediawiki/maintenance/shell.php:100
941PHP 4. MediaWikiShell->execute() /vagrant/mediawiki/maintenance/doMaintenance.php:94
942PHP 5. Psy\Shell->__construct() /vagrant/mediawiki/maintenance/shell.php:72
943PHP 6. Psy\Configuration->getReadline() /vagrant/mediawiki/vendor/psy/psysh/src/Psy/Shell.php:82
944PHP 7. Psy\Configuration->getHistoryFile() /vagrant/mediawiki/vendor/psy/psysh/src/Psy/Configuration.php:546
945PHP 8. Psy\Configuration->setHistoryFile() /vagrant/mediawiki/vendor/psy/psysh/src/Psy/Configuration.php:409
946PHP 9. Psy\ConfigPaths::touchFileWithMkdir() /vagrant/mediawiki/vendor/psy/psysh/src/Psy/Configuration.php:361
947PHP 10. trigger_error() /vagrant/mediawiki/vendor/psy/psysh/src/Psy/ConfigPaths.php:213
948
949Notice: Writing to /root/.config/psysh is not allowed. in /vagrant/mediawiki/vendor/psy/psysh/src/Psy/ConfigPaths.php on line 213
950
951Call Stack:
952 0.0002 362176 1. {main}() /var/www/w/MWScript.php:0
953 0.0028 411296 2. require_once('/vagrant/mediawiki/maintenance/shell.php') /var/www/w/MWScript.php:98
954 0.0075 689936 3. require_once('/vagrant/mediawiki/maintenance/doMaintenance.php') /vagrant/mediawiki/maintenance/shell.php:100
955 0.3292 9960848 4. MediaWikiShell->execute() /vagrant/mediawiki/maintenance/doMaintenance.php:94
956 0.6119 12357400 5. Psy\Shell->__construct() /vagrant/mediawiki/maintenance/shell.php:72
957 0.6211 12427496 6. Psy\Configuration->getReadline() /vagrant/mediawiki/vendor/psy/psysh/src/Psy/Shell.php:82
958 0.6276 12521008 7. Psy\Configuration->getHistoryFile() /vagrant/mediawiki/vendor/psy/psysh/src/Psy/Configuration.php:546
959 0.6278 12521272 8. Psy\Configuration->setHistoryFile() /vagrant/mediawiki/vendor/psy/psysh/src/Psy/Configuration.php:409
960 0.6278 12521272 9. Psy\ConfigPaths::touchFileWithMkdir() /vagrant/mediawiki/vendor/psy/psysh/src/Psy/Configuration.php:361
961 0.6348 12562568 10. trigger_error() /vagrant/mediawiki/vendor/psy/psysh/src/Psy/ConfigPaths.php:213
962
963Psy Shell v0.8.11 (PHP 7.0.27-0+deb9u1 — cli) by Justin Hileman
964>>> 1
965=> 1
966>>> ^D
967Exit: Ctrl+D
968) = ? ERESTART_RESTARTBLOCK (Interrupted by signal)
969--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26294, si_uid=33, si_status=0, si_utime=22, si_stime=13} ---
970write(4, "\21", 1) = 1
971rt_sigreturn({mask=[]}) = -1 EINTR (Interrupted system call)
972poll([{fd=3, events=POLLIN}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
973read(3, "\21", 1) = 1
974wait4(26294, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED, NULL) = 26294
975getuid() = 0
976open("/etc/login.defs", O_RDONLY) = 7
977fstat(7, {st_mode=S_IFREG|0644, st_size=10477, ...}) = 0
978read(7, "#\n# /etc/login.defs - Configurat"..., 4096) = 4096
979read(7, " issuing \n# the \"mesg y\" command"..., 4096) = 4096
980read(7, "t supports passwords of unlimite"..., 4096) = 2285
981close(7) = 0
982sendto(8, "<86>May 10 17:02:30 sudo: pam_un"..., 82, MSG_NOSIGNAL, NULL, 0) = 82
983socket(AF_NETLINK, SOCK_RAW, NETLINK_AUDIT) = 7
984fcntl(7, F_SETFD, FD_CLOEXEC) = 0
985sendto(7, {{len=124, type=0x452 /* NLMSG_??? */, flags=NLM_F_REQUEST|NLM_F_ACK, seq=4, pid=0}, "op=PAM:session_close acct=\"www-d"...}, 124, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 124
986poll([{fd=7, events=POLLIN}], 1, 500) = 1 ([{fd=7, revents=POLLIN}])
987recvfrom(7, {{len=36, type=NLMSG_ERROR, flags=0, seq=4, pid=2237329034}, "\0\0\0\0|\0\0\0R\4\5\0\4\0\0\0\0\0\0\0"}, 8988, MSG_PEEK|MSG_DONTWAIT, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, [12]) = 36
988recvfrom(7, {{len=36, type=NLMSG_ERROR, flags=0, seq=4, pid=2237329034}, "\0\0\0\0|\0\0\0R\4\5\0\4\0\0\0\0\0\0\0"}, 8988, MSG_DONTWAIT, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, [12]) = 36
989close(7) = 0
990socket(AF_NETLINK, SOCK_RAW, NETLINK_AUDIT) = 7
991fcntl(7, F_SETFD, FD_CLOEXEC) = 0
992sendto(7, {{len=120, type=0x450 /* NLMSG_??? */, flags=NLM_F_REQUEST|NLM_F_ACK, seq=5, pid=0}, "op=PAM:setcred acct=\"www-data\" e"...}, 120, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 120
993poll([{fd=7, events=POLLIN}], 1, 500) = 1 ([{fd=7, revents=POLLIN}])
994recvfrom(7, {{len=36, type=NLMSG_ERROR, flags=0, seq=5, pid=2347360514}, "\0\0\0\0x\0\0\0P\4\5\0\5\0\0\0\0\0\0\0"}, 8988, MSG_PEEK|MSG_DONTWAIT, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, [12]) = 36
995recvfrom(7, {{len=36, type=NLMSG_ERROR, flags=0, seq=5, pid=2347360514}, "\0\0\0\0x\0\0\0P\4\5\0\5\0\0\0\0\0\0\0"}, 8988, MSG_DONTWAIT, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, [12]) = 36
996close(7) = 0
997munmap(0x7f1cb9327000, 2204640) = 0
998munmap(0x7f1cb90ef000, 2322912) = 0
999munmap(0x7f1cb8eed000, 2101288) = 0
1000munmap(0x7f1cb8ceb000, 2101312) = 0
1001munmap(0x7f1cbb6b4000, 282752) = 0
1002munmap(0x7f1cb88df000, 2109744) = 0
1003exit_group(0) = ?
1004+++ exited with 0 +++
1005```

I can't really read strace but the relevant line seems to be

rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f3eeea360e0}, {0x443740, [], SA_RESTORER, 0x7f3eeea360e0}, 8) = 0
Tgr updated the task description. (Show Details)

The problem comes with assumptions we do about how we want to fork processes from HHVM in production and how shell.php assumes forks should be treated:

by default, we use a non-zero number of "light processes" as HHVM calls them, which are preforked children of the main process with certain characteristics, and that can be used any time pcntl_fork is used, or a external command is executed. That speeds the execution up sensibly, but it bears some non-standard behaviour.

Specifically, your example works if you disable light processes:

sudo -u www-data hhvm -d hhvm.server.light_process_count=0 /srv/mediawiki/multiversion/MWScript.php shell.php enwiki

(please note that in this case the php alias doesn't work as expected as you can't pass -d to hhvm when it's invoked with the -p switch, or as php. Yes, that's crazy :P)

Change 439954 had a related patch set uploaded (by Gergő Tisza; owner: Gergő Tisza):
[mediawiki/vendor@master] PsySH: 0.8.11 -> 0.9.6

https://gerrit.wikimedia.org/r/439954

Change 439954 merged by jenkins-bot:
[mediawiki/vendor@master] PsySH: 0.8.11 -> 0.9.6

https://gerrit.wikimedia.org/r/439954

Still happening on beta (but not in production).

Workaround: PHP="hhvm -d hhvm.server.light_process_count=0" mwscript shell.php enwiki

PHP=php7.2 also seems to work (since these “light processes” are HHVM-specific), so presumably this will resolve itself once we use PHP7 everywhere? (Specifically T195392, I guess.)

I think this has been resolved with the switch to PHP7 – I can now run shell.php on mwdebug1002 or mwmaint1002 (prod) and deployment-deploy01 (beta) without any workarounds.