Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
strace of `notepad.exe Cargo.toml` in WSL on arm64
$ strace notepad.exe Cargo.toml
execve("/mnt/c/WINDOWS/system32/notepad.exe", ["notepad.exe", "Cargo.toml"], 0x7fffedf9b8f8 /* 19 vars */) = 0
set_tid_address(0xc2828) = 101
brk(NULL) = 0x1e4f000
brk(0x1e50000) = 0x1e50000
sched_getaffinity(0, 128, [0, 1, 2, 3, 4, 5, 6, 7]) = 64
uname({sysname="Linux", nodename="aarchie", ...}) = 0
getpid() = 101
getcwd("/home/brion/src/png/mtpng", 4096) = 26
openat(AT_FDCWD, "/dev/lxss", O_RDWR|O_LARGEFILE) = 3
ioctl(3, _IOC(0, 0, 0x2f, 0x22), 0x7fffd3e9b0d0) = 0
getcwd("/home/brion/src/png/mtpng", 4096) = 26
openat(AT_FDCWD, "/proc/self/mountinfo", O_RDONLY|O_LARGEFILE) = 5
readv(5, [{iov_base="", iov_len=0}, {iov_base="2 2 0:2 / / rw,noatime - lxfs ro"..., iov_len=1024}], 2) = 857
readv(5, [{iov_base="", iov_len=0}, {iov_base="", iov_len=1024}], 2) = 0
close(5) = 0
getcwd("/home/brion/src/png/mtpng", 4096) = 26
openat(AT_FDCWD, "/proc/self/mountinfo", O_RDONLY|O_LARGEFILE) = 5
readv(5, [{iov_base="", iov_len=0}, {iov_base="2 2 0:2 / / rw,noatime - lxfs ro"..., iov_len=1024}], 2) = 857
readv(5, [{iov_base="", iov_len=0}, {iov_base="", iov_len=1024}], 2) = 0
close(5) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TIOCGPGRP, [99]) = 0
getpgid(0) = 99
fstat(0, {st_mode=S_IFCHR|0660, st_rdev=makedev(4, 1), ...}) = 0
fstat(1, {st_mode=S_IFCHR|0660, st_rdev=makedev(4, 1), ...}) = 0
fstat(2, {st_mode=S_IFCHR|0660, st_rdev=makedev(4, 1), ...}) = 0
ioctl(0, TIOCGWINSZ, {ws_row=41, ws_col=172, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 -opost -isig -icanon -echo ...}) = 0
dup(0) = 5
ioctl(4, _IOC(0, 0, 0xb7, 0x22), 0x7fffd3e9b0e8) = 0
ioctl(4, _IOC(0, 0, 0xb7, 0x22), 0x7fffd3e9b0e8) = 0
ioctl(4, _IOC(0, 0, 0xb7, 0x22), 0x7fffd3e9b0e8) = 0
write(4, "\0\0\0\0\324\0\0\0'\0\0\0\0\0\0\0(\0\0\0\0\0\0\0)\0\0\0\0\0\0\0"..., 212) = 212
close(0) = 0
close(1) = 0
close(2) = 0
rt_sigprocmask(SIG_BLOCK, [INT WINCH], NULL, 8) = 0
signalfd4(-1, [INT WINCH], 8, 0) = 0
ppoll([{fd=4, events=POLLIN}, {fd=0, events=POLLIN}], 2, NULL, NULL, 8) = 1 ([{fd=4, revents=POLLIN}])
read(4, "\10\0\0\0 \0\0\0\26\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 32) = 32
writev(2, [{iov_base="/mnt/c/WINDOWS/system32/notepad."..., iov_len=54}, {iov_base=NULL, iov_len=0}], 2) = -1 EBADF (Bad file descriptor)
close(3) = 0
close(4) = 0
ioctl(5, SNDCTL_TMR_START or TCSETS, {B38400 opost isig icanon echo ...}) = 0
close(5) = 0
exit_group(1) = ?
+++ exited with 1 +++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.