Panic with lxc alias


I reinstalled lxd 5.0.0 with separate zfs partition. As far as I can see i did exactly the same as always.

Then I want to create an alias.
In the past this was never a problem, but this time it gives me a panic.

root@nc02 ~ lxc alias add delete "delete -i"
To start your first container, try: lxc launch ubuntu:20.04
Or for a virtual machine: lxc launch ubuntu:20.04 --vm

panic: assignment to entry in nil map

goroutine 1 [running]:
main.(*cmdAliasAdd).Run(0xc0001391f0, 0xc0001afc18?, {0xc0001f8d00?, 0x2, 0x0?})
	/build/lxd/parts/lxd/src/lxc/alias.go:84 +0xdd*Command).execute(0xc0001d6500, {0xc0001f8ca0, 0x2, 0x2})
	/build/lxd/parts/lxd/src/.go/pkg/mod/ +0x67c*Command).ExecuteC(0xc0001d6000)
	/build/lxd/parts/lxd/src/.go/pkg/mod/ +0x3b4*Command).Execute(...)
	/build/lxd/parts/lxd/src/lxc/main.go:276 +0x1a33
Any help would be appreciated.

After creation first container the problem is gone.
Before it also worked without first creating a container.

Thanks for confirmation, I am looking into this.

Confirmed issue, opened bug here: