> > galileo:/home/galileo# free > > total used free shared buff/cache > available > > Mem: 209592 20612 34620 76 154360 > 180376 > > Swap: 1048572 0 1048572 > > galileo:/home/galileo# ./hugo > > panic: runtime error: invalid memory address or nil pointer dereference > > [signal SIGSEGV: segmentation violation code=0x1 addr=0xc pc=0xb76f5df2] > > > goroutine 1 [running]: > > galileo:/home/galileo# ldd ./hugo > > /lib/ld-musl-i386.so.1 (0xb7f1a000) > > libgo.so.16 => /usr/lib/libgo.so.16 (0xb3a9e000) > > libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb3a80000) > > libc.musl-x86.so.1 => /lib/ld-musl-i386.so.1 (0xb7f1a000) > > libucontext.so.1 => /lib/libucontext.so.1 (0xb3a7b000) > > galileo:/home/galileo# file ./hugo > > ./hugo: ELF 32-bit LSB pie executable, Intel 80386, version 1 (SYSV), > dynamically linked, interpreter /lib/ld-musl-i386.so.1, with debug_info, > not stripped >
Good suggestion, alas no breakthrough. Will investigate tinygo, This one "feels" close..though, spends 12 seconds doing *something* - although on a CPU this slow it might actually just be loading the binary into memory. galileo:/home/galileo# time ./hugo > > panic: runtime error: invalid memory address or nil pointer dereference > > [signal SIGSEGV: segmentation violation code=0x1 addr=0xc pc=0xb7700df2] > > > goroutine 1 [running]: > > Command exited with non-zero status 2 > > real 0m 12.62s > > user 0m 11.52s > > sys 0m 0.99s > On Fri, 16 Apr 2021 at 16:46, Brian Candler <[email protected]> wrote: > Can you add a swapfile? That could rule out low RAM as the problem, even > if it's very inefficient. > > Aside: 127MB does sound like a very large binary, compared to what the > standard go toolchain produces. The official hugo amd64 binary is about > 44MB: > > $ tar -tvzf hugo_0.82.0_Linux-64bit.tar.gz > -rw-r--r-- 0 root root 11357 21 Mar 17:17 LICENSE > -rw-r--r-- 0 root root 12345 21 Mar 17:17 README.md > -rwxr-xr-x 0 root root 44568576 21 Mar 17:51 hugo > > And k3s (a complete kubernetes distribution) is around 55MB. > > Given the limited target system, maybe tinygo is worth playing with - > although I have no idea whether hugo will work with the subset of language > features it provides. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/475a30e7-8404-4af4-8ae2-3aff0dcc6a0en%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/475a30e7-8404-4af4-8ae2-3aff0dcc6a0en%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CANXrN%3D3wf_Mxof-Pj%2BD6WJJAG33rm8%2B%2BqPrtjDk3Vsq-QaP%3DhA%40mail.gmail.com.
