Skip to content

Instantly share code, notes, and snippets.

execve("/usr/bin/git", ["git", "subtree", "add", "--prefix", "third_party/catch2", "https://github.com/therealkenc/t"..., "master", "--squash"], [/* 24 vars */]) = 0
brk(NULL) = 0x2676000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f48bb530000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=147354, ...}) = 0
mmap(NULL, 147354, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f48bb50c000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
This file has been truncated, but you can view the full file.
execve("/usr/sbin/dnsmasq", ["dnsmasq", "-C", "dnsmasq.conf", "-d", "--log-dhcp"], [/* 13 vars */]) = 0
brk(NULL) = 0x7fffcd98c000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff4bc560000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=24139, ...}) = 0
mmap(NULL, 24139, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ff4bc565000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
> FAIL: elf/tst-execstack
> FAIL: elf/tst-execstack-needed
> FAIL: elf/tst-execstack-prog
> FAIL: gmon/tst-sprofil
> FAIL: io/tst-futimesat
> FAIL: io/tst-mkdirat
> FAIL: io/tst-mkfifoat
> FAIL: io/tst-mknodat
> FAIL: io/tst-openat
> FAIL: io/tst-unlinkat
25160 execve("../electron/out/D/electron", ["../electron/out/D/electron", "--disable-gpu", "."], [/* 59 vars */]) = 0
25160 brk(NULL) = 0x2607000
25160 mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f82fe484000
25160 readlink("/proc/self/exe", "/home/ken/Devel/vscode-build-mas"..., 4096) = 59
25160 openat(AT_FDCWD, "/home/ken/Devel/vscode-build-master/electron/out/D/tls/haswell/x86_64/libnode.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
25160 stat("/home/ken/Devel/vscode-build-master/electron/out/D/tls/haswell/x86_64", 0x7ffc5e275520) = -1 ENOENT (No such file or directory)
25160 openat(AT_FDCWD, "/home/ken/Devel/vscode-build-master/electron/out/D/tls/haswell/libnode.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
25160 stat("/home/ken/Devel/vscode-build-master/electron/out/D/tls/haswell", 0x7ffc5e275520) = -1 ENOENT (No such file or directory)
25160 openat(AT_FDCWD, "/home/ken/Devel/vscode-build-master/electron/out/D
@therealkenc
therealkenc / WSL_electron_8_strace_trimmed.strace
Created November 26, 2017 05:49
WSL electron 8 strace trimmed
This file has been truncated, but you can view the full file.
8506 execve("../electron/out/D/electron", ["../electron/out/D/electron", "--disable-gpu", "."], [/* 24 vars */]) = 0
8506 brk(NULL) = 0x39f3000
8506 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f000b0000
8506 readlink("/proc/self/exe", "/home/ken/Devel/electron/electro"..., 4096) = 48
8506 open("/home/ken/Devel/electron/electron/out/D/tls/x86_64/libnode.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
8506 stat("/home/ken/Devel/electron/electron/out/D/tls/x86_64", 0x7fffccd72170) = -1 ENOENT (No such file or directory)
8506 open("/home/ken/Devel/electron/electron/out/D/tls/libnode.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
8506 stat("/home/ken/Devel/electron/electron/out/D/tls", 0x7fffccd72170) = -1 ENOENT (No such file or directory)
8506 open("/home/ken/Devel/electron/electron/out/D/x86_64/libnode.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
8506 stat("/home/ken/Devel/electron/electr
@therealkenc
therealkenc / wsl-electron-build-notes.txt
Created November 26, 2017 07:15
Consolidated repro notes for electron fail on WSL 17064 and Ubuntu 16.4.03
Consolidated repro notes for electron fail on WSL 17064 and Ubuntu 16.4.03
(These steps will almost certainly not work for you)
# if you don't have Chrome operational Electron has no chance
sudo update && sudo apt upgrade
sudo apt install ubuntu-desktop wget mesa-utils
sudo apt purge pulseaudio libpulse0 && sudo apt autoremove
drwxr-xr-x 1 root root 512 Dec 19 17:50 bluetooth.target.wants
drwxr-xr-x 1 root root 512 Sep 22 09:14 cloud-init.target.wants
lrwxrwxrwx 1 root root 37 Dec 19 17:50 dbus-org.bluez.service -> /lib/systemd/system/bluetooth.service
lrwxrwxrwx 1 root root 40 Dec 19 17:49 dbus-org.freedesktop.Avahi.service -> /lib/systemd/system/avahi-daemon.service
lrwxrwxrwx 1 root root 40 Dec 19 17:51 dbus-org.freedesktop.ModemManager1.service -> /lib/systemd/system/ModemManager.service
lrwxrwxrwx 1 root root 53 Dec 19 17:50 dbus-org.freedesktop.nm-dispatcher.service -> /lib/systemd/system/NetworkManager-dispatcher.service
drwxr-xr-x 1 root root 512 Sep 22 09:13 default.target.wants
lrwxrwxrwx 1 root root 35 Dec 19 17:49 display-manager.service -> /lib/systemd/system/lightdm.service
drwxr-xr-x 1 root root 512 Dec 19 17:49 display-manager.service.wants
drwxr-xr-x 1 root root 512 Sep 22 09:14 final.target.wants
This file has been truncated, but you can view the full file.
867 execve("/usr/lib/snapd/snapd", ["/usr/lib/snapd/snapd"], [/* 14 vars */]) = 0
867 brk(NULL) = 0x7ffff19d1000
867 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
867 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
867 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
867 fstat(3, {st_mode=S_IFREG|0644, st_size=57421, ...}) = 0
867 mmap(NULL, 57421, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f327ecc7000
867 close(3) = 0
867 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
867 open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
# build static bsdtar linked against musl in Ubuntu 16.04 on WSL
mkdir bsdtarbuild && cd bsdtarbuild
sudo su
ALPINE_MIRROR=http://dl-cdn.alpinelinux.org/alpine
mkdir alpine-root
ALPINE_ROOT=$PWD/alpine-root
ALPINE_APKTOOLS=apk-tools-static-2.9.1-r0.apk # note this is a moving target
wget -q $ALPINE_MIRROR/latest-stable/main/x86_64/$ALPINE_APKTOOLS
tar xf $ALPINE_APKTOOLS
execve("./a.out", ["./a.out"], [/* 23 vars */]) = 0
brk(NULL) = 0x22e7000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=48998, ...}) = 0
mmap(NULL, 48998, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5a9511e000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3