Skip to content

Instantly share code, notes, and snippets.

@kpeterstech
kpeterstech / init.trace
Created April 12, 2018 06:45
init.trace for ipfs init failure
execve("/usr/local/bin/ipfs", ["ipfs", "init"], [/* 76 vars */]) = 0
brk(NULL) = 0x282e000
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=105298, ...}) = 0
mmap(NULL, 105298, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0ebed7e000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
#!/usr/bin/env python3.6
import os
import re
# used for sorting files in naturl order. See function "natural_sort" in class Renumber
_nsre = re.compile('([0-9]+)')
class Renumber():