Lxd 4.11 getting stopped with an error

I am using lxd 4.11 on debian bullseye . lxd is compiled from source .Lxd got started without any issues but after some time unexpectedly it’s got stopped with an error

root@cpu-5219:~# fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0xe1 pc=0xe1]

runtime stack:
runtime.throw(0x16243ef, 0x2a)
        /usr/local/go/src/runtime/panic.go:1116 +0x72
        /usr/local/go/src/runtime/signal_unix.go:726 +0x4ac

goroutine 7908 [syscall]:
runtime.cgocall(0x1308b13, 0xc000c0efe8, 0x7)
        /usr/local/go/src/runtime/cgocall.go:133 +0x5b fp=0xc000c0efb8 sp=0xc000c0ef80 pc=0x41107b
gopkg.in/lxc/go-lxc%2ev2._Cfunc_go_lxc_init_pidfd(0x7fd294013760, 0x7fd200000000)
        _cgo_gotypes.go:816 +0x49 fp=0xc000c0efe8 sp=0xc000c0efb8 pc=0x8dab49
gopkg.in/lxc/go-lxc%2ev2.(*Container).InitPidFd.func1(0xc000222780, 0xc000c0ef68)
        /root/go/src/gopkg.in/lxc/go-lxc.v2/container.go:358 +0x56 fp=0xc000c0f020 sp=0xc000c0efe8 pc=0x8ed476
gopkg.in/lxc/go-lxc%2ev2.(*Container).InitPidFd(0xc000222780, 0x0, 0x0, 0x0)
        /root/go/src/gopkg.in/lxc/go-lxc.v2/container.go:358 +0x85 fp=0xc000c0f068 sp=0xc000c0f020 pc=0x8de065
github.com/lxc/lxd/lxd/instance/drivers.(*lxc).InitPidFd(0xc000a154a0, 0xc0002fbc70, 0x0, 0x0)

Any idea on this ?

any help ?

@simos @stgraber any help on this ?

Did you make sure you’re using the latest version of go-lxc and what version of liblxc are you using on the system?

root@cpu-5219:~# dpkg -l | grep liblxc
ii  liblxc1:amd64                          1:4.0.6-1                      amd64        Linux Containers userspace tools (library)

root@cpu-5219:~# go version
go version go1.15.7 linux/amd64

seems all are latest versions available on debian

Can you make sure that your go-lxc clone (probably somewhere in /root/go) is up to date?

I just did a rebuilt lxd and now its working fine thank you for your Support :slight_smile:

Good to hear!

1 Like