Skip to content

Instantly share code, notes, and snippets.

View straight-shoota's full-sized avatar

Johannes Müller straight-shoota

View GitHub Profile
@straight-shoota
straight-shoota / strace.txt
Created August 2, 2025 14:52
Strace from Crystal interpreter stuck on pipe
execve("bin/crystal", ["bin/crystal", "i"], 0x7fff888995f8 /* 58 vars */) = 0
brk(NULL) = 0x5c9ef2ef2000
arch_prctl(0x3001 /* ARCH_??? */, 0x7fff233c7820) = -1 EINVAL (Invalid argument)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x762d6f32f000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=55716, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 55716, PROT_READ, MAP_PRIVATE, 4, 0) = 0x762d6f321000
close(4) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 4