See:
2021-11-02T17:14:31.2489609Z + snap connect test-snapd-policy-app-consumer:uinput :uinput
2021-11-02T17:14:31.2490588Z + snap interfaces
2021-11-02T17:14:31.2491810Z + MATCH ':uinput +.*test-snapd-policy-app-consumer'
2021-11-02T17:14:31.2492774Z fatal error: runtime: out of memory
2021-11-02T17:14:31.2493213Z
2021-11-02T17:14:31.2493998Z runtime stack:
2021-11-02T17:14:31.2494642Z runtime.throw(0x55b60041d554, 0x16)
2021-11-02T17:14:31.2496640Z /usr/lib/go-1.13/src/runtime/panic.go:774 +0x74 fp=0x7ffeaaf38428 sp=0x7ffeaaf383f8 pc=0x55b5ffc6c394
2021-11-02T17:14:31.2497669Z runtime.sysMap(0xc000000000, 0x4000000, 0x55b601147e18)
2021-11-02T17:14:31.2499109Z /usr/lib/go-1.13/src/runtime/mem_linux.go:169 +0xc7 fp=0x7ffeaaf38468 sp=0x7ffeaaf38428 pc=0x55b5ffc56497
2021-11-02T17:14:31.2500138Z runtime.(*mheap).sysAlloc(0x55b60112f1e0, 0x2000, 0x0, 0x0)
2021-11-02T17:14:31.2501576Z /usr/lib/go-1.13/src/runtime/malloc.go:701 +0x1cf fp=0x7ffeaaf38510 sp=0x7ffeaaf38468 pc=0x55b5ffc495bf
2021-11-02T17:14:31.2502633Z runtime.(*mheap).grow(0x55b60112f1e0, 0x1, 0xffffffff)
2021-11-02T17:14:31.2504037Z /usr/lib/go-1.13/src/runtime/mheap.go:1255 +0xa5 fp=0x7ffeaaf38560 sp=0x7ffeaaf38510 pc=0x55b5ffc64635
2021-11-02T17:14:31.2505173Z runtime.(*mheap).allocSpanLocked(0x55b60112f1e0, 0x1, 0x55b601147e28, 0x1)
2021-11-02T17:14:31.2509338Z /usr/lib/go-1.13/src/runtime/mheap.go:1170 +0x268 fp=0x7ffeaaf385e0 sp=0x7ffeaaf38560 pc=0x55b5ffc644c8
2021-11-02T17:14:31.2511443Z runtime.(*mheap).alloc_m(0x55b60112f1e0, 0x1, 0x55b5ffc9002a, 0x0)
2021-11-02T17:14:31.2513047Z /usr/lib/go-1.13/src/runtime/mheap.go:1022 +0xc6 fp=0x7ffeaaf38630 sp=0x7ffeaaf385e0 pc=0x55b5ffc63d66
2021-11-02T17:14:31.2514006Z runtime.(*mheap).alloc.func1()
2021-11-02T17:14:31.2515373Z /usr/lib/go-1.13/src/runtime/mheap.go:1093 +0x4e fp=0x7ffeaaf38668 sp=0x7ffeaaf38630 pc=0x55b5ffc958be
2021-11-02T17:14:31.2516503Z runtime.(*mheap).alloc(0x55b60112f1e0, 0x1, 0x1002a, 0x40000)
2021-11-02T17:14:31.2517920Z /usr/lib/go-1.13/src/runtime/mheap.go:1092 +0x8c fp=0x7ffeaaf386b8 sp=0x7ffeaaf38668 pc=0x55b5ffc6404c
2021-11-02T17:14:31.2518913Z runtime.(*mcentral).grow(0x55b601130018, 0x0)
2021-11-02T17:14:31.2520290Z /usr/lib/go-1.13/src/runtime/mcentral.go:255 +0x7d fp=0x7ffeaaf386f8 sp=0x7ffeaaf386b8 pc=0x55b5ffc55ebd
2021-11-02T17:14:31.2521413Z runtime.(*mcentral).cacheSpan(0x55b601130018, 0x7f672fab7000)
2021-11-02T17:14:31.2522899Z /usr/lib/go-1.13/src/runtime/mcentral.go:106 +0x300 fp=0x7ffeaaf38758 sp=0x7ffeaaf386f8 pc=0x55b5ffc559e0
2021-11-02T17:14:31.2523940Z runtime.(*mcache).refill(0x7f672fab7008, 0x2a)
2021-11-02T17:14:31.2525349Z /usr/lib/go-1.13/src/runtime/mcache.go:138 +0x87 fp=0x7ffeaaf38778 sp=0x7ffeaaf38758 pc=0x55b5ffc55477
2021-11-02T17:14:31.2526794Z runtime.(*mcache).nextFree(0x7f672fab7008, 0x55b601147e2a, 0x7f672fab7008, 0x8, 0xfffffffffffffff8)
2021-11-02T17:14:31.2528501Z /usr/lib/go-1.13/src/runtime/malloc.go:854 +0x89 fp=0x7ffeaaf387b0 sp=0x7ffeaaf38778 pc=0x55b5ffc49de9
2021-11-02T17:14:31.2529579Z runtime.mallocgc(0x180, 0x55b600b72bc0, 0x1, 0x55b601147e80)
2021-11-02T17:14:31.2531036Z /usr/lib/go-1.13/src/runtime/malloc.go:1022 +0x7a5 fp=0x7ffeaaf38850 sp=0x7ffeaaf387b0 pc=0x55b5ffc4a735
2021-11-02T17:14:31.2532077Z runtime.newobject(0x55b600b72bc0, 0x4000)
2021-11-02T17:14:31.2533480Z /usr/lib/go-1.13/src/runtime/malloc.go:1151 +0x3a fp=0x7ffeaaf38880 sp=0x7ffeaaf38850 pc=0x55b5ffc4ab3a
2021-11-02T17:14:31.2534773Z runtime.malg(0x15c00008000, 0x55b601131888)
2021-11-02T17:14:31.2536392Z /usr/lib/go-1.13/src/runtime/proc.go:3232 +0x33 fp=0x7ffeaaf388c0 sp=0x7ffeaaf38880 pc=0x55b5ffc758e3
2021-11-02T17:14:31.2537329Z runtime.mpreinit(...)
2021-11-02T17:14:31.2538459Z /usr/lib/go-1.13/src/runtime/os_linux.go:324
2021-11-02T17:14:31.2539230Z runtime.mcommoninit(0x55b601129ca0)
2021-11-02T17:14:31.2540721Z /usr/lib/go-1.13/src/runtime/proc.go:626 +0xc6 fp=0x7ffeaaf388f8 sp=0x7ffeaaf388c0 pc=0x55b5ffc6f196
2021-11-02T17:14:31.2541738Z runtime.schedinit()
2021-11-02T17:14:31.2543179Z /usr/lib/go-1.13/src/runtime/proc.go:543 +0x76 fp=0x7ffeaaf38950 sp=0x7ffeaaf388f8 pc=0x55b5ffc6edf6
2021-11-02T17:14:31.2544516Z runtime.rt0_go(0x7ffeaaf38a58, 0x2, 0x7ffeaaf38a58, 0x0, 0x7f672f313840, 0x0, 0x7ffeaaf38a58, 0x200000000, 0x55b5ffc97c10, 0x0, ...)
2021-11-02T17:14:31.2546211Z /usr/lib/go-1.13/src/runtime/asm_amd64.s:214 +0x129 fp=0x7ffeaaf38958 sp=0x7ffeaaf38950 pc=0x55b5ffc97d49
2021-11-02T17:14:31.2547194Z grep error: pattern not found, got:
2021-11-02T17:14:31.2548043Z -----
2021-11-02T17:14:31.2548548Z .
full log attached