Created
August 25, 2020 20:01
-
-
Save BatmanAoD/a223863dd0c699c46f540b26d59ab4bc to your computer and use it in GitHub Desktop.
WSL failing to fork with `cmd.exe /c notepad`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1376 execve("/mnt/c/WINDOWS/system32/cmd.exe", ["cmd.exe", "/c", "notepad"], 0x7ffccb428d48 /* 36 vars */) = 0 | |
1376 arch_prctl(ARCH_SET_FS, 0x2a2110) = 0 | |
1376 set_tid_address(0x2a2148) = 1376 | |
1376 brk(NULL) = 0x1525000 | |
1376 brk(0x1526000) = 0x1526000 | |
1376 sched_getaffinity(0, 128, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]) = 32 | |
1376 getpid() = 1376 | |
1376 getcwd("/mnt/c", 4096) = 7 | |
1376 uname({sysname="Linux", nodename="Razz", ...}) = 0 | |
1376 getcwd("/mnt/c", 4096) = 7 | |
1376 open("/mnt/c/WINDOWS/system32/cmd.exe", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_PATH) = 3 | |
1376 readlink("/proc/self/fd/3", "/mnt/c/WINDOWS/system32/cmd.exe", 4095) = 31 | |
1376 fstat(3, {st_mode=S_IFREG|0555, st_size=323584, ...}) = 0 | |
1376 stat("/mnt/c/WINDOWS/system32/cmd.exe", {st_mode=S_IFREG|0555, st_size=323584, ...}) = 0 | |
1376 close(3) = 0 | |
1376 open("/proc/self/mountinfo", O_RDONLY) = 3 | |
1376 readv(3, [{iov_base="", iov_len=0}, {iov_base="38 26 8:16 / / rw,relatime - ext"..., iov_len=1024}], 2) = 1024 | |
1376 readv(3, [{iov_base="", iov_len=0}, {iov_base="=755\n51 38 0:30 / /usr/lib/wsl/d"..., iov_len=1024}], 2) = 1024 | |
1376 readv(3, [{iov_base="", iov_len=0}, {iov_base="suid,nodev,noexec,relatime - cgr"..., iov_len=1024}], 2) = 899 | |
1376 readv(3, [{iov_base="", iov_len=0}, {iov_base="", iov_len=1024}], 2) = 0 | |
1376 close(3) = 0 | |
1376 getcwd("/mnt/c", 4096) = 7 | |
1376 open("/proc/self/mountinfo", O_RDONLY) = 3 | |
1376 readv(3, [{iov_base="", iov_len=0}, {iov_base="38 26 8:16 / / rw,relatime - ext"..., iov_len=1024}], 2) = 1024 | |
1376 readv(3, [{iov_base="", iov_len=0}, {iov_base="=755\n51 38 0:30 / /usr/lib/wsl/d"..., iov_len=1024}], 2) = 1024 | |
1376 readv(3, [{iov_base="", iov_len=0}, {iov_base="suid,nodev,noexec,relatime - cgr"..., iov_len=1024}], 2) = 899 | |
1376 readv(3, [{iov_base="", iov_len=0}, {iov_base="", iov_len=1024}], 2) = 0 | |
1376 close(3) = 0 | |
1376 ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0 | |
1376 ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0 | |
1376 ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0 | |
1376 ioctl(0, TIOCGPGRP, [1374]) = 0 | |
1376 getpgid(0) = 1374 | |
1376 fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 | |
1376 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 | |
1376 fstat(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 | |
1376 ioctl(0, TIOCGWINSZ, {ws_row=42, ws_col=113, ws_xpixel=0, ws_ypixel=0}) = 0 | |
1376 ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 -opost -isig -icanon -echo ...}) = 0 | |
1376 dup(0) = 3 | |
1376 socket(AF_VSOCK, SOCK_STREAM|SOCK_CLOEXEC, 0) = 4 | |
1376 bind(4, {sa_family=AF_VSOCK, sa_data="\0\0\377\377\377\377\377\377\377\377\0\0\0\0"}, 16) = 0 | |
1376 getsockname(4, {sa_family=AF_VSOCK, sa_data="\0\0|\270\264\300\377\377\377\377\0\0\0\0"}, [16]) = 0 | |
1376 listen(4, 4) = 0 | |
1376 socket(AF_UNIX, SOCK_SEQPACKET|SOCK_CLOEXEC, 0) = 5 | |
1376 connect(5, {sa_family=AF_UNIX, sun_path="/run/WSL/7_interop"}, 110) = 0 | |
1376 write(5, "\6\0\0\0\257\0\0\0|\270\264\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 175) = 175 | |
1376 poll([{fd=4, events=POLLIN}], 1, 10000) = 1 ([{fd=4, revents=POLLIN}]) | |
1376 accept4(4, {sa_family=AF_VSOCK, sa_data="\0\0\341\247\363\212\2\0\0\0\0\0\0\0"}, [16], SOCK_CLOEXEC) = 6 | |
1376 poll([{fd=4, events=POLLIN}], 1, 10000) = 1 ([{fd=4, revents=POLLIN}]) | |
1376 accept4(4, {sa_family=AF_VSOCK, sa_data="\0\0\342\247\363\212\2\0\0\0\0\0\0\0"}, [16], SOCK_CLOEXEC) = 7 | |
1376 poll([{fd=4, events=POLLIN}], 1, 10000) = 1 ([{fd=4, revents=POLLIN}]) | |
1376 accept4(4, {sa_family=AF_VSOCK, sa_data="\0\0\343\247\363\212\2\0\0\0\0\0\0\0"}, [16], SOCK_CLOEXEC) = 8 | |
1376 poll([{fd=4, events=POLLIN}], 1, 10000) = 1 ([{fd=4, revents=POLLIN}]) | |
1376 accept4(4, {sa_family=AF_VSOCK, sa_data="\0\0\344\247\363\212\2\0\0\0\0\0\0\0"}, [16], SOCK_CLOEXEC) = 9 | |
1376 close(4) = 0 | |
1376 rt_sigprocmask(SIG_BLOCK, [INT WINCH], NULL, 8) = 0 | |
1376 signalfd4(-1, [INT WINCH], 8, 0) = 4 | |
1376 poll([{fd=0, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=4, events=POLLIN}], 5, -1) = 1 ([{fd=9, revents=POLLIN}]) | |
1376 brk(0x1528000) = 0x1528000 | |
1376 recvfrom(9, "\t\0\0\0 \0\0\0", 8, MSG_WAITALL, NULL, NULL) = 8 | |
1376 recvfrom(9, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 24, 0, NULL, NULL) = 24 | |
1376 poll([{fd=0, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=4, events=POLLIN}], 5, -1) = 1 ([{fd=7, revents=POLLIN}]) | |
1376 read(7, "\33[6n", 4096) = 4 | |
1376 write(1, "\33[6n", 4) = 4 | |
1376 poll([{fd=0, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=4, events=POLLIN}], 5, -1) = 1 ([{fd=0, revents=POLLIN}]) | |
1376 read(0, "\33[42;1R", 4096) = 7 | |
1376 write(6, "\33[42;1R", 7) = 7 | |
1376 poll([{fd=0, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=4, events=POLLIN}], 5, -1) = 1 ([{fd=7, revents=POLLIN}]) | |
1376 read(7, "\33[m\33]0;C:\\WINDOWS\\system32\\cmd.e"..., 4096) = 41 | |
1376 write(1, "\33[m\33]0;C:\\WINDOWS\\system32\\cmd.e"..., 41) = 41 | |
1376 poll([{fd=0, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=4, events=POLLIN}], 5, -1) = 1 ([{fd=9, revents=POLLIN}]) | |
1376 recvfrom(9, "\7\0\0\0\f\0\0\0", 8, MSG_WAITALL, NULL, NULL) = 8 | |
1376 recvfrom(9, "\0\0\0\0", 4, 0, NULL, NULL) = 4 | |
1376 shutdown(6, SHUT_WR) = 0 | |
1376 poll([{fd=-1}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=-1}, {fd=-1}], 5, -1) = 2 ([{fd=7, revents=POLLIN}, {fd=8, revents=POLLIN}]) | |
1376 read(7, "", 4096) = 0 | |
1376 read(8, "", 4096) = 0 | |
1376 shutdown(6, SHUT_WR) = 0 | |
1376 close(4) = 0 | |
1376 close(5) = 0 | |
1376 close(9) = 0 | |
1376 close(8) = 0 | |
1376 close(7) = 0 | |
1376 close(6) = 0 | |
1376 ioctl(3, SNDCTL_TMR_START or TCSETS, {B38400 opost isig icanon echo ...}) = 0 | |
1376 close(3) = 0 | |
1376 exit_group(0) = ? | |
1376 +++ exited with 0 +++ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment