Skip to content

Instantly share code, notes, and snippets.

1388 execve("./a.out", ["./a.out"], 0x7ffff38b16d8 /* 18 vars */) = 0
1388 brk(NULL) = 0x2e88000
1388 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
1388 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
1388 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
1388 fstat(3, {st_mode=S_IFREG|0644, st_size=58955, ...}) = 0
1388 mmap(NULL, 58955, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f48ddb31000
1388 close(3) = 0
1388 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
1388 openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3
12774 execve("./a.out", ["./a.out"], 0x7ffd45065198 /* 53 vars */) = 0
12774 brk(NULL) = 0x123d000
12774 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
12774 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
12774 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
12774 fstat(3, {st_mode=S_IFREG|0644, st_size=116046, ...}) = 0
12774 mmap(NULL, 116046, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0231f58000
12774 close(3) = 0
12774 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
12774 openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
#include <stdio.h>
int main()
{
printf("hello world\n");
return 0;
}

Something like:

$ # cleanish 18.04 WSL install from the MSFT Store running on Win10 1809
$ curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
$ sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
$ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
$ sudo apt update && sudo apt upgrade
$ sudo apt install libgtk2.0-0 libxss1 libasound2 mesa-utils code
$ export DISPLAY=localhost:0
$ export NO_AT_BRIDGE=1
public class HelloWorld {
public static void main(String[] args) {
// Prints "Hello, World" to the terminal window.
System.out.println("Hello, World");
}
}
powershell.exe "Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntivirusProduct" | grep displayName
// stub-sfr.c
#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <fcntl.h>
int sync_file_range(int fd, off64_t offset, off64_t nbytes,
unsigned int flags)
{
return 0;
}
This file has been truncated, but you can view the full file.
917 execve("/usr/sbin/sshd", ["/usr/sbin/sshd", "-D"], 0x7fffd4446f70 /* 15 vars */) = 0
917 brk(NULL) = 0x7fffc5088000
917 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
917 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
917 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
917 fstat(3, {st_mode=S_IFREG|0644, st_size=80580, ...}) = 0
917 mmap(NULL, 80580, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f1e147fd000
917 close(3) = 0
917 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
917 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libwrap.so.0", O_RDONLY|O_CLOEXEC) = 3