compose icon indicating copy to clipboard operation
compose copied to clipboard

Stack overflow when circular references in service definitions

Open tomMoulard opened this issue 4 years ago • 4 comments

Description

When having two services that references themselves, I got a stack overflow when starting services.

Stack trace
> docker compose up consul
runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc020780358 stack=[0xc020780000, 0xc040780000]
fatal error: stack overflow

runtime stack:
runtime.throw({0x563134764cd0?, 0x563135683ba0?})
	runtime/panic.go:992 +0x71
runtime.newstack()
	runtime/stack.go:1101 +0x5cc
runtime.morestack()
	runtime/asm_amd64.s:547 +0x80

goroutine 1 [running]:
runtime.growslice(0x563134eb3ce0?, {0x563135729d48?, 0x0?, 0x0?}, 0x1?)
	runtime/slice.go:166 +0x6b7 fp=0xc020780368 sp=0xc020780360 pc=0x563133bce717
github.com/compose-spec/compose-go/types.Project.GetServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:114 +0x125 fp=0xc020780df0 sp=0xc020780368 pc=0x5631341a9925
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:146 +0x78 fp=0xc0207817e0 sp=0xc020780df0 pc=0x5631341aa0d8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207821d0 sp=0xc0207817e0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020782bc0 sp=0xc0207821d0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207835b0 sp=0xc020782bc0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020783fa0 sp=0xc0207835b0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020784990 sp=0xc020783fa0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020785380 sp=0xc020784990 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020785d70 sp=0xc020785380 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020786760 sp=0xc020785d70 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020787150 sp=0xc020786760 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020787b40 sp=0xc020787150 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020788530 sp=0xc020787b40 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020788f20 sp=0xc020788530 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020789910 sp=0xc020788f20 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02078a300 sp=0xc020789910 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02078acf0 sp=0xc02078a300 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02078b6e0 sp=0xc02078acf0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02078c0d0 sp=0xc02078b6e0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02078cac0 sp=0xc02078c0d0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02078d4b0 sp=0xc02078cac0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02078dea0 sp=0xc02078d4b0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02078e890 sp=0xc02078dea0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02078f280 sp=0xc02078e890 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02078fc70 sp=0xc02078f280 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020790660 sp=0xc02078fc70 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020791050 sp=0xc020790660 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020791a40 sp=0xc020791050 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020792430 sp=0xc020791a40 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020792e20 sp=0xc020792430 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020793810 sp=0xc020792e20 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020794200 sp=0xc020793810 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020794bf0 sp=0xc020794200 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207955e0 sp=0xc020794bf0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020795fd0 sp=0xc0207955e0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207969c0 sp=0xc020795fd0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207973b0 sp=0xc0207969c0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020797da0 sp=0xc0207973b0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020798790 sp=0xc020797da0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020799180 sp=0xc020798790 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc020799b70 sp=0xc020799180 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02079a560 sp=0xc020799b70 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02079af50 sp=0xc02079a560 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02079b940 sp=0xc02079af50 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02079c330 sp=0xc02079b940 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02079cd20 sp=0xc02079c330 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02079d710 sp=0xc02079cd20 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02079e100 sp=0xc02079d710 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02079eaf0 sp=0xc02079e100 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02079f4e0 sp=0xc02079eaf0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc02079fed0 sp=0xc02079f4e0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207a08c0 sp=0xc02079fed0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207a12b0 sp=0xc0207a08c0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207a1ca0 sp=0xc0207a12b0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207a2690 sp=0xc0207a1ca0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207a3080 sp=0xc0207a2690 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207a3a70 sp=0xc0207a3080 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207a4460 sp=0xc0207a3a70 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207a4e50 sp=0xc0207a4460 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207a5840 sp=0xc0207a4e50 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207a6230 sp=0xc0207a5840 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207a6c20 sp=0xc0207a6230 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207a7610 sp=0xc0207a6c20 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207a8000 sp=0xc0207a7610 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207a89f0 sp=0xc0207a8000 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207a93e0 sp=0xc0207a89f0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207a9dd0 sp=0xc0207a93e0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207aa7c0 sp=0xc0207a9dd0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207ab1b0 sp=0xc0207aa7c0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207abba0 sp=0xc0207ab1b0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207ac590 sp=0xc0207abba0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207acf80 sp=0xc0207ac590 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207ad970 sp=0xc0207acf80 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207ae360 sp=0xc0207ad970 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207aed50 sp=0xc0207ae360 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207af740 sp=0xc0207aed50 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207b0130 sp=0xc0207af740 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207b0b20 sp=0xc0207b0130 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207b1510 sp=0xc0207b0b20 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207b1f00 sp=0xc0207b1510 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207b28f0 sp=0xc0207b1f00 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207b32e0 sp=0xc0207b28f0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207b3cd0 sp=0xc0207b32e0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207b46c0 sp=0xc0207b3cd0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207b50b0 sp=0xc0207b46c0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207b5aa0 sp=0xc0207b50b0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207b6490 sp=0xc0207b5aa0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207b6e80 sp=0xc0207b6490 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207b7870 sp=0xc0207b6e80 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207b8260 sp=0xc0207b7870 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207b8c50 sp=0xc0207b8260 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207b9640 sp=0xc0207b8c50 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207ba030 sp=0xc0207b9640 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207baa20 sp=0xc0207ba030 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207bb410 sp=0xc0207baa20 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207bbe00 sp=0xc0207bb410 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207bc7f0 sp=0xc0207bbe00 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207bd1e0 sp=0xc0207bc7f0 pc=0x5631341aa1e8
github.com/compose-spec/compose-go/types.Project.withServices({{0xc0001e406c, 0x4}, {0xc000434080, 0x9}, {0xc0000ed500, 0x2, 0x2}, 0xc000249710, 0xc000249740, 0xc000249770, ...}, ...)
	github.com/compose-spec/[email protected]/types/project.go:156 +0x188 fp=0xc0207bdbd0 sp=0xc0207bd1e0 pc=0x5631341aa1e8
...additional frames elided...

goroutine 18 [chan send]:
github.com/docker/compose/v2/cmd/formatter.init.0.func1()
	github.com/docker/compose/v2/cmd/formatter/colors.go:120 +0x1de
created by github.com/docker/compose/v2/cmd/formatter.init.0
	github.com/docker/compose/v2/cmd/formatter/colors.go:104 +0x8b

goroutine 19 [chan receive]:
k8s.io/klog/v2.(*loggingT).flushDaemon(0x0?)
	k8s.io/klog/[email protected]/klog.go:1181 +0x6a
created by k8s.io/klog/v2.init.0
	k8s.io/klog/[email protected]/klog.go:420 +0xf6

goroutine 14 [syscall]:
os/signal.signal_recv()
	runtime/sigqueue.go:151 +0x2f
os/signal.loop()
	os/signal/signal_unix.go:23 +0x19
created by os/signal.Notify.func1.1
	os/signal/signal.go:151 +0x2a

goroutine 12 [IO wait]:
internal/poll.runtime_pollWait(0x7f2244827758, 0x72)
	runtime/netpoll.go:302 +0x89
internal/poll.(*pollDesc).wait(0xc000582580?, 0xc0004dc000?, 0x0)
	internal/poll/fd_poll_runtime.go:83 +0x32
internal/poll.(*pollDesc).waitRead(...)
	internal/poll/fd_poll_runtime.go:88
internal/poll.(*FD).Read(0xc000582580, {0xc0004dc000, 0x1000, 0x1000})
	internal/poll/fd_unix.go:167 +0x25a
net.(*netFD).Read(0xc000582580, {0xc0004dc000?, 0x0?, 0x4?})
	net/fd_posix.go:55 +0x29
net.(*conn).Read(0xc00000e700, {0xc0004dc000?, 0xc00000e6b8?, 0x1?})
	net/net.go:183 +0x45
net/http.(*persistConn).Read(0xc0003850e0, {0xc0004dc000?, 0x563133bc9ca0?, 0xc0004d4ec8?})
	net/http/transport.go:1929 +0x4e
bufio.(*Reader).fill(0xc000780ba0)
	bufio/bufio.go:106 +0x103
bufio.(*Reader).Peek(0xc000780ba0, 0x1)
	bufio/bufio.go:144 +0x5d
net/http.(*persistConn).readLoop(0xc0003850e0)
	net/http/transport.go:2093 +0x1ac
created by net/http.(*Transport).dialConn
	net/http/transport.go:1750 +0x173e

goroutine 13 [select]:
net/http.(*persistConn).writeLoop(0xc0003850e0)
	net/http/transport.go:2392 +0xf5
created by net/http.(*Transport).dialConn
	net/http/transport.go:1751 +0x1791

goroutine 52 [chan receive]:
github.com/docker/compose/v2/cmd/compose.AdaptCmd.func1.1()
	github.com/docker/compose/v2/cmd/compose/compose.go:63 +0x28
created by github.com/docker/compose/v2/cmd/compose.AdaptCmd.func1
	github.com/docker/compose/v2/cmd/compose/compose.go:62 +0x1da

goroutine 53 [chan receive]:
github.com/docker/compose/v2/cmd/compose.AdaptCmd.func1.1()
	github.com/docker/compose/v2/cmd/compose/compose.go:63 +0x28
created by github.com/docker/compose/v2/cmd/compose.AdaptCmd.func1
	github.com/docker/compose/v2/cmd/compose/compose.go:62 +0x1da

Steps to reproduce the issue:

> cat docker-compose.yml 
version: '3.6'

services:
  consul:
    image: consul:1.6.2
    depends_on:
      - consul-agent

  consul-agent:
    image: consul:1.6.2
    links:
      - consul

> docker compose up
cycle found: consul -> consul-agent -> consul

> docker compose up consul
runtime: goroutine stack exceeds 1000000000-byte limit
...

Describe the results you expected:

> docker compose up
cycle found: consul -> consul-agent -> consul

> docker compose up consul
cycle found: consul -> consul-agent -> consul
...

Additional information you deem important (e.g. issue happens only occasionally): nil

Output of docker compose version:

> docker compose version
Docker Compose version v2.5.1

Output of docker info:

docker info
> docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc., v0.8.2-docker)
  compose: Docker Compose (Docker Inc., 2.5.1)

Server:
 Containers: 26
  Running: 22
  Paused: 0
  Stopped: 4
 Images: 98
 Server Version: 20.10.16
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: false
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 212e8b6fa2f44b9c21b2798135fc6fb7c53efc16.m
 runc version: 
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 5.18.0-arch1-1
 Operating System: Arch Linux
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 7.643GiB
 Name: cyprine
 ID: 2NSE:UGD6:QVOI:GJ2S:MC75:OPBW:7RJ4:4OJZ:VU5A:SVHY:YEG7:POA3
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Username: tommoulard
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

tomMoulard avatar Jun 02 '22 09:06 tomMoulard

@tomMoulard

Thanks for reporting this issue,

I would also expect the same result as for docker compose up command instead of letting it start and crash.

Labeling this as bug.

maxcleme avatar Jun 03 '22 07:06 maxcleme

should be detected by https://github.com/docker/compose/blob/709190312c14a5b239031bbdceac9358ddc8fbc2/pkg/compose/dependencies.go#L310, to be investigated

ndeloof avatar Jun 03 '22 08:06 ndeloof

I think the problem is caused by those 2 line:

https://github.com/docker/compose/blob/d5528f3a542def9d980cf57dd3f6c679992afe38/cmd/compose/compose.go#L209

The stack overflow is actually happened inside this function call:

https://github.com/compose-spec/compose-go/blob/d1bc5d8dfcd472420470a84f67f80f35d574d37a/types/project.go#L154

Where it is trying to find all the dependencies.

I can help to fix the problem & I am thinking to either push a fix to this repo or the compose-go repo. I am not which approach is preferred.

Please let me know what you think!

junyuanz1 avatar Jun 06 '22 03:06 junyuanz1

why the v2.20.1 also have this issue.

cycle found: outservice -> node7002 -> node7004 -> node7003 -> node7004cycle found

docker-compose version

Docker Compose version v2.20.1

docker -v

Docker version 19.03.9, build 4f2e5af167

reflyhight avatar Jul 29 '23 13:07 reflyhight