Crash in DBus auth code on x86
root@qemux86:~# journalctl -u sysotad.service
Feb 24 18:59:40 qemux86 systemd[1]: Starting System Over The Air Update...
Feb 24 18:59:46 qemux86 sysotad[242]: unexpected fault address 0x5276e800
Feb 24 18:59:46 qemux86 sysotad[242]: fatal error: fault
Feb 24 18:59:46 qemux86 sysotad[242]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x5276e800 pc=0x5276e800]
Feb 24 18:59:46 qemux86 sysotad[242]: goroutine 1 [running]:
Feb 24 18:59:46 qemux86 sysotad[242]: runtime.throw({0xb75ec926, 0x5})
Feb 24 18:59:46 qemux86 sysotad[242]: /usr/lib/go/src/runtime/panic.go:1198 +0x86 fp=0x862e1a98 sp=0x862e1a84 pc=0xb6e14666
Feb 24 18:59:46 qemux86 sysotad[242]: runtime.sigpanic()
Feb 24 18:59:46 qemux86 sysotad[242]: /usr/lib/go/src/runtime/signal_unix.go:742 +0x31f fp=0x862e1ab0 sp=0x862e1a98 pc=0xb6e3ad7f
Feb 24 18:59:46 qemux86 sysotad[242]: github.com/godbus/dbus/v5.authWriteLine({0x6285cc, 0x8600c060}, {0x862e1ba4, 0x1, 0x1})
Feb 24 18:59:46 qemux86 sysotad[242]: github.com/godbus/dbus/v5@v5.0.6/auth.go:247 +0x12d fp=0x862e1af4 sp=0x862e1ab0 pc=0x53d2cd
Feb 24 18:59:46 qemux86 sysotad[242]: github.com/godbus/dbus/v5.(*Conn).Auth(0x8624a180, {0x0, 0x0, 0x0})
Feb 24 18:59:46 qemux86 sysotad[242]: github.com/godbus/dbus/v5@v5.0.6/auth.go:64 +0x433 fp=0x862e1c44 sp=0x862e1af4 pc=0x53b823
Feb 24 18:59:46 qemux86 sysotad[242]: booting.oniroproject.org/distro/components/sysota/pkg/dbusutil.SystemBus({0x0, 0x0, 0x0})
Feb 24 18:59:46 qemux86 sysotad[242]: booting.oniroproject.org/distro/components/sysota/pkg/dbusutil/dbusutil.go:51 +0xf2 fp=0x862e1c90 sp=0x862e1c44 pc=0x56bc22
Feb 24 18:59:46 qemux86 sysotad[242]: booting.oniroproject.org/distro/components/sysota/cmd/sysotad.(*Cmd).Run(0x8600fd98, {0xb7a982e8, 0x86244018}, {0x86298100, 0x0, 0x0})
Feb 24 18:59:46 qemux86 sysotad[242]: booting.oniroproject.org/distro/components/sysota/cmd/sysotad/sysotad.go:54 +0x9c fp=0x862e1dac sp=0x862e1c90 pc=0x5ecd8c
Feb 24 18:59:46 qemux86 sysotad[242]: gitlab.com/zygoon/go-cmdr/router.(*Router).Run(0x8613a040, {0xb7a98508, 0x8629cae0}, {0x86298100, 0x1, 0x1})
Feb 24 18:59:46 qemux86 sysotad[242]: gitlab.com/zygoon/go-cmdr@v1.2.0/router/router.go:135 +0x489 fp=0x862e1dfc sp=0x862e1dac pc=0x5386b9
Feb 24 18:59:46 qemux86 sysotad[242]: main.Cmd.Run({0x1}, {0xb7a98508, 0x8629cae0}, {0x86298100, 0x1, 0x1})
Feb 24 18:59:46 qemux86 sysotad[242]: booting.oniroproject.org/distro/components/sysota/cmd/sysota-mux/main.go:52 +0x521 fp=0x862e1e54 sp=0x862e1dfc pc=0x5ee1e1
Feb 24 18:59:46 qemux86 sysotad[242]: main.(*Cmd).Run(0x862a28c8, {0xb7a98508, 0x8629cae0}, {0x86298100, 0x1, 0x1})
Feb 24 18:59:46 qemux86 sysotad[242]: <autogenerated>:1 +0x67 fp=0x862e1e78 sp=0x862e1e54 pc=0x5ee6b7
Feb 24 18:59:46 qemux86 sysotad[242]: gitlab.com/zygoon/go-cmdr.RunMain({0x628ae0, 0x862a28c8}, {0x86298100, 0x1, 0x1}, {0x862e1f88, 0x2, 0x2})
Feb 24 18:59:46 qemux86 sysotad[242]: gitlab.com/zygoon/go-cmdr@v1.2.0/main.go:174 +0x404 fp=0x862e1f54 sp=0x862e1e78 pc=0x537ab4
Feb 24 18:59:46 qemux86 sysotad[242]: main.main()
Feb 24 18:59:46 qemux86 sysotad[242]: booting.oniroproject.org/distro/components/sysota/cmd/sysota-mux/main.go:73 +0x2bc fp=0x862e1fa4 sp=0x862e1f54 pc=0x5ee51c
Feb 24 18:59:46 qemux86 sysotad[242]: runtime.main()
Feb 24 18:59:46 qemux86 sysotad[242]: /usr/lib/go/src/runtime/proc.go:255 +0x3d9 fp=0x862e1ff0 sp=0x862e1fa4 pc=0xb6e19ca9
Feb 24 18:59:46 qemux86 sysotad[242]: runtime.goexit()
Feb 24 18:59:46 qemux86 sysotad[242]: /usr/lib/go/src/runtime/asm_386.s:1319 +0x1 fp=0x862e1ff4 sp=0x862e1ff0 pc=0xb6e61f21
Feb 24 18:59:46 qemux86 sysotad[242]: goroutine 5 [syscall]:
Feb 24 18:59:46 qemux86 sysotad[242]: os/signal.signal_recv()
Feb 24 18:59:46 qemux86 sysotad[242]: /usr/lib/go/src/runtime/sigqueue.go:169 +0x147
Feb 24 18:59:46 qemux86 sysotad[242]: os/signal.loop()
Feb 24 18:59:46 qemux86 sysotad[242]: /usr/lib/go/src/os/signal/signal_unix.go:24 +0x26
Feb 24 18:59:46 qemux86 sysotad[242]: created by os/signal.Notify.func1.1
Feb 24 18:59:46 qemux86 sysotad[242]: /usr/lib/go/src/os/signal/signal.go:151 +0x42
Feb 24 18:59:46 qemux86 sysotad[242]: goroutine 6 [select]:
Feb 24 18:59:46 qemux86 sysotad[242]: os/signal.NotifyContext.func1(0x8629cae0)
Feb 24 18:59:46 qemux86 sysotad[242]: /usr/lib/go/src/os/signal/signal.go:288 +0x9e
Feb 24 18:59:46 qemux86 sysotad[242]: created by os/signal.NotifyContext
Feb 24 18:59:46 qemux86 sysotad[242]: /usr/lib/go/src/os/signal/signal.go:287 +0x1db
Feb 24 18:59:46 qemux86 sysotad[242]: goroutine 7 [chan receive]:
Feb 24 18:59:46 qemux86 sysotad[242]: github.com/godbus/dbus/v5.newConn.func1(0x8624a180)
Feb 24 18:59:46 qemux86 sysotad[242]: github.com/godbus/dbus/v5@v5.0.6/conn.go:288 +0x47
Feb 24 18:59:46 qemux86 sysotad[242]: created by github.com/godbus/dbus/v5.newConn
Feb 24 18:59:46 qemux86 sysotad[242]: github.com/godbus/dbus/v5@v5.0.6/conn.go:287 +0x1be
Feb 24 18:59:46 qemux86 systemd[1]: sysotad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Feb 24 18:59:46 qemux86 systemd[1]: sysotad.service: Failed with result 'exit-code'.
Feb 24 18:59:46 qemux86 systemd[1]: Failed to start System Over The Air Update.
Edited by Zygmunt Krynicki