Every once in a while we see our Raspberry Pi with balenaOS restarting.
Today I was able to get the log from such a device and saw the error dumped below.
We are using balenaOS 2.29.2+rev1 (balena-engine 17.12.0-dev).
The containers are pretty busy outputting log messages, so I wouldn’t be surprised if it was related to this.
journalctl output
May 03 14:08:06 1c1e022 balenad[762]: fatal error: unexpected signal during runtime execution
May 03 14:08:06 1c1e022 balenad[762]: [signal SIGSEGV: segmentation violation code=0x2 addr=0x76ec8920 pc=0x76d59420]
May 03 14:08:06 1c1e022 balenad[762]: runtime stack:
May 03 14:08:06 1c1e022 balenad[762]: runtime.throw(0xf7b913, 0x2a)
May 03 14:08:06 1c1e022 balenad[762]: /usr/lib/go/src/runtime/panic.go:605 +0x70
May 03 14:08:06 1c1e022 balenad[762]: runtime.sigpanic()
May 03 14:08:06 1c1e022 balenad[762]: /usr/lib/go/src/runtime/signal_unix.go:351 +0x24c
May 03 14:08:06 1c1e022 balenad[762]: goroutine 642 [syscall, locked to thread]:
May 03 14:08:06 1c1e022 balenad[762]: runtime.cgocall(0xca7a80, 0x133e1760, 0xf78542)
May 03 14:08:06 1c1e022 balenad[762]: /usr/lib/go/src/runtime/cgocall.go:132 +0xb8 fp=0x133e1740 sp=0x133e1724 pc=0x15298
May 03 14:08:06 1c1e022 balenad[762]: github.com/docker/docker/daemon/logger/journald._Cfunc_wait_for_data_cancelable(0x728011f8, 0xb6, 0x0)
May 03 14:08:06 1c1e022 balenad[762]: github.com/docker/docker/daemon/logger/journald/_obj/_cgo_gotypes.go:393 +0x38 fp=0x133e175c sp=0x133e1740 pc=0xbccb68
May 03 14:08:06 1c1e022 balenad[762]: github.com/docker/docker/daemon/logger/journald.(*journald).followJournal.func1.1(0x728011f8, 0xb6, 0x728011f8)
May 03 14:08:06 1c1e022 balenad[762]: /yocto/resin-board/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/balena/17.12.0-dev+gitdceb2fc48071b78a8a828e0468a15a479515385f-r0/git/src/import/.gopath/src/githu>
May 03 14:08:06 1c1e022 balenad[762]: github.com/docker/docker/daemon/logger/journald.(*journald).followJournal.func1(0x728011f8, 0xb6, 0xb7, 0x13409a40, 0x12cb3bc8, 0x13151b40, 0x0, 0x0, 0x12ae1dc0)
May 03 14:08:06 1c1e022 balenad[762]: /yocto/resin-board/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/balena/17.12.0-dev+gitdceb2fc48071b78a8a828e0468a15a479515385f-r0/git/src/import/.gopath/src/githu>
May 03 14:08:06 1c1e022 balenad[762]: runtime.goexit()
May 03 14:08:06 1c1e022 balenad[762]: /usr/lib/go/src/runtime/asm_arm.s:971 +0x4 fp=0x133e17c4 sp=0x133e17c4 pc=0x6dd14
May 03 14:08:06 1c1e022 balenad[762]: created by github.com/docker/docker/daemon/logger/journald.(*journald).followJournal
May 03 14:08:06 1c1e022 balenad[762]: /yocto/resin-board/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/balena/17.12.0-dev+gitdceb2fc48071b78a8a828e0468a15a479515385f-r0/git/src/import/.gopath/src/githu>
May 03 14:08:06 1c1e022 balenad[762]: goroutine 1 [chan receive, 43 minutes]:
May 03 14:08:06 1c1e022 balenad[762]: github.com/docker/docker/cmd/dockerd.(*DaemonCli).start(0x12c54c00, 0x12a64940, 0x0, 0x0)
May 03 14:08:06 1c1e022 balenad[762]: /yocto/resin-board/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/balena/17.12.0-dev+gitdceb2fc48071b78a8a828e0468a15a479515385f-r0/git/src/import/.gopath/src/githu>
May 03 14:08:06 1c1e022 balenad[762]: github.com/docker/docker/cmd/dockerd.runDaemon(0x12a64940, 0x12c78280, 0x0)
May 03 14:08:06 1c1e022 balenad[762]: /yocto/resin-board/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/balena/17.12.0-dev+gitdceb2fc48071b78a8a828e0468a15a479515385f-r0/git/src/import/.gopath/src/githu>
May 03 14:08:06 1c1e022 balenad[762]: github.com/docker/docker/cmd/dockerd.newDaemonCommand.func1(0x12c5c120, 0x12c585a0, 0x0, 0x11, 0x0, 0x0)
May 03 14:08:06 1c1e022 balenad[762]: /yocto/resin-board/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/balena/17.12.0-dev+gitdceb2fc48071b78a8a828e0468a15a479515385f-r0/git/src/import/.gopath/src/githu>
May 03 14:08:06 1c1e022 balenad[762]: github.com/docker/docker/vendor/github.com/spf13/cobra.(*Command).execute(0x12c5c120, 0x1297e008, 0x11, 0x11, 0x12c5c120, 0x1297e008)
May 03 14:08:06 1c1e022 balenad[762]: /yocto/resin-board/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/balena/17.12.0-dev+gitdceb2fc48071b78a8a828e0468a15a479515385f-r0/git/src/import/.gopath/src/githu>
May 03 14:08:06 1c1e022 balenad[762]: github.com/docker/docker/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x12c5c120, 0x12c5c120, 0xfbd8ec, 0x1297c138)
May 03 14:08:06 1c1e022 balenad[762]: /yocto/resin-board/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/balena/17.12.0-dev+gitdceb2fc48071b78a8a828e0468a15a479515385f-r0/git/src/import/.gopath/src/githu>
May 03 14:08:06 1c1e022 balenad[762]: github.com/docker/docker/vendor/github.com/spf13/cobra.(*Command).Execute(0x12c5c120, 0x1296e0d0, 0xca13f0)
May 03 14:08:06 1c1e022 balenad[762]: /yocto/resin-board/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/balena/17.12.0-dev+gitdceb2fc48071b78a8a828e0468a15a479515385f-r0/git/src/import/.gopath/src/githu>
May 03 14:08:06 1c1e022 balenad[762]: github.com/docker/docker/cmd/dockerd.Main()
May 03 14:08:06 1c1e022 balenad[762]: /yocto/resin-board/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/balena/17.12.0-dev+gitdceb2fc48071b78a8a828e0468a15a479515385f-r0/git/src/import/.gopath/src/githu>
May 03 14:08:06 1c1e022 balenad[762]: main.main()
May 03 14:08:06 1c1e022 balenad[762]: /yocto/resin-board/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/balena/17.12.0-dev+gitdceb2fc48071b78a8a828e0468a15a479515385f-r0/git/src/import/.gopath/src/githu>