#Remote cache stack overflow

1 messages ยท Page 1 of 1 (latest)

bright mist
#

Managed to catch stack overflow ๐Ÿ˜“

runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc0809fa330 stack=[0xc0809fa000, 0xc0a09fa000]
fatal error: stack overflow

runtime stack:
runtime.throw({0x3898c40?, 0x41ab45?})
    /usr/lib/go/src/runtime/panic.go:1094 +0x48 fp=0xc012a93e98 sp=0xc012a93e68 pc=0x4817e8
runtime.newstack()
    /usr/lib/go/src/runtime/stack.go:1159 +0x5bd fp=0xc012a93fc8 sp=0xc012a93e98 pc=0x46509d
runtime.morestack()
    /usr/lib/go/src/runtime/asm_amd64.s:620 +0x7d fp=0xc012a93fd0 sp=0xc012a93fc8 pc=0x48801d

goroutine 129934 gp=0xc009dfec40 m=1306 mp=0xc010cd0008 [running]:
runtime.mapaccess2_fast64(0x3242aa0?, 0xc0a09f9be8?, 0xc0352033e0?)
    /usr/lib/go/src/internal/runtime/maps/runtime_fast64_swiss.go:86 +0x1f7 fp=0xc0809fa340 sp=0xc0809fa338 pc=0x40f117
github.com/dagger/dagger/internal/buildkit/cache/remotecache/v1.normalizeItem(0xc0352033e0, 0xc0a09f9c18)
    /app/internal/buildkit/cache/remotecache/v1/utils.go:179 +0x3f fp=0xc0809fa658 sp=0xc0809fa340 pc=0x100307f
github.com/dagger/dagger/internal/buildkit/cache/remotecache/v1.normalizeItem(0xc0092515c0, 0xc0a09f9c18)
    /app/internal/buildkit/cache/remotecache/v1/utils.go:203 +0x9c5 fp=0xc0809fa970 sp=0xc0809fa658 pc=0x1003a05
github.com/dagger/dagger/internal/buildkit/cache/remotecache/v1.normalizeItem(0xc0092515c0, 0xc0a09f9c18)
#

This happened on the subsequent runs after one successful cache run to S3.

#
  1. cache to s3 worked
  2. fails
  3. fails

The input code is exactly the same (no changes).