Open iamyeka opened 2 years ago
find another:
fatal error: concurrent map iteration and map write
goroutine 346 [running]:
runtime.throw(0x21ac606, 0x26)
/usr/local/go/src/runtime/panic.go:1117 +0x72 fp=0xc000a76e48 sp=0xc000a76e18 pc=0x440b52
runtime.mapiternext(0xc000b069c0)
/usr/local/go/src/runtime/map.go:858 +0x54c fp=0xc000a76ec8 sp=0xc000a76e48 pc=0x4196cc
reflect.mapiternext(0xc000b069c0)
/usr/local/go/src/runtime/map.go:1346 +0x2b fp=0xc000a76ee0 sp=0xc000a76ec8 pc=0x47422b
reflect.Value.MapKeys(0x1e752c0, 0xc0003c5cc8, 0x195, 0xc0003c5cc8, 0x195, 0x1e752c0)
/usr/local/go/src/reflect/value.go:1227 +0x10c fp=0xc000a76f70 sp=0xc000a76ee0 pc=0x4abe0c
github.com/google/go-cmp/cmp.(*state).compareMap(0xc0001d6280, 0x24e57e8, 0x1e752c0, 0x1e752c0, 0xc0003c5cc8, 0x195, 0x1e752c0, 0xc0006c60a8, 0x195)
/go/src/loggie.io/loggie/vendor/github.com/google/go-cmp/cmp/compare.go:522 +0x27d fp=0xc000a77098 sp=0xc000a76f70 pc=0x8503fd
github.com/google/go-cmp/cmp.(*state).compareAny(0xc0001d6280, 0x24badc0, 0xc000a8fb00)
/go/src/loggie.io/loggie/vendor/github.com/google/go-cmp/cmp/compare.go:289 +0xc46 fp=0xc000a77280 sp=0xc000a77098 pc=0x84d146
github.com/google/go-cmp/cmp.(*state).compareStruct(0xc0001d6280, 0x24e57e8, 0x2006000, 0x2006000, 0xc0003c5c80, 0x199, 0x2006000, 0xc0006c6060, 0x199)
/go/src/loggie.io/loggie/vendor/github.com/google/go-cmp/cmp/compare.go:410 +0x685 fp=0xc000a77418 sp=0xc000a77280 pc=0x84f105
github.com/google/go-cmp/cmp.(*state).compareAny(0xc0001d6280, 0x24bad90, 0xc000b06180)
/go/src/loggie.io/loggie/vendor/github.com/google/go-cmp/cmp/compare.go:285 +0xe38 fp=0xc000a77600 sp=0xc000a77418 pc=0x84d338
github.com/google/go-cmp/cmp.(*state).statelessCompare(0xc0001d6280, 0x24bad90, 0xc000b06180, 0x1d9c1a0, 0x1)
/go/src/loggie.io/loggie/vendor/github.com/google/go-cmp/cmp/compare.go:228 +0x97 fp=0xc000a77658 sp=0xc000a77600 pc=0x84c477
github.com/google/go-cmp/cmp.(*state).compareSlice.func2(0x0, 0x0, 0x0, 0x3317968)
/go/src/loggie.io/loggie/vendor/github.com/google/go-cmp/cmp/compare.go:476 +0x85 fp=0xc000a77698 sp=0xc000a77658 pc=0x857fc5
github.com/google/go-cmp/cmp/internal/diff.Difference(0x1, 0x1, 0xc0008af948, 0x1, 0x1, 0xc00094a180)
/go/src/loggie.io/loggie/vendor/github.com/google/go-cmp/cmp/internal/diff/diff.go:241 +0x271 fp=0xc000a777d8 sp=0xc000a77698 pc=0x8479b1
github.com/google/go-cmp/cmp.(*state).compareSlice(0xc0001d6280, 0x24e57e8, 0x1d4a1c0, 0x1d4a1c0, 0xc000b04828, 0x97, 0x1d4a1c0, 0xc000b04840, 0x97)
/go/src/loggie.io/loggie/vendor/github.com/google/go-cmp/cmp/compare.go:475 +0x734 fp=0xc000a779a0 sp=0xc000a777d8 pc=0x84fab4
github.com/google/go-cmp/cmp.(*state).compareAny(0xc0001d6280, 0x24afd80, 0xc000c3b080)
/go/src/loggie.io/loggie/vendor/github.com/google/go-cmp/cmp/compare.go:287 +0x945 fp=0xc000a77b88 sp=0xc000a779a0 pc=0x84ce45
github.com/google/go-cmp/cmp.Equal(0x1d4a1c0, 0xc000b04828, 0x1d4a1c0, 0xc000b04840, 0xc000b08040, 0x1, 0x1, 0x7fd6dc33c658)
/go/src/loggie.io/loggie/vendor/github.com/google/go-cmp/cmp/compare.go:93 +0x9d fp=0xc000a77bd0 sp=0xc000a77b88 pc=0x84b55d
github.com/loggie-io/loggie/pkg/core/reloader.diffConfig.func1(0xc0003c5c80, 0x1, 0x1, 0xc0006c6060, 0x1, 0x1, 0x0)
/go/src/loggie.io/loggie/pkg/core/reloader/reload.go:126 +0x125 fp=0xc000a77c40 sp=0xc000a77bd0 pc=0x8604c5
runtime.call64(0xc000563d70, 0x2249e80, 0xc000c3af40, 0x3000000038)
/usr/local/go/src/runtime/asm_amd64.s:552 +0x3e fp=0xc000a77c90 sp=0xc000a77c40 pc=0x47903e
reflect.Value.call(0x1e312e0, 0x2249e80, 0x13, 0x2176f76, 0x4, 0xc000563d40, 0x2, 0x2, 0x100000000000000, 0x0, ...)
/usr/local/go/src/reflect/value.go:476 +0x8e7 fp=0xc000a77e98 sp=0xc000a77c90 pc=0x4a8887
reflect.Value.Call(0x1e312e0, 0x2249e80, 0x13, 0xc000563d40, 0x2, 0x2, 0x0, 0x0, 0x0)
/usr/local/go/src/reflect/value.go:337 +0xb9 fp=0xc000a77f18 sp=0xc000a77e98 pc=0x4a7d59
github.com/google/go-cmp/cmp.detectRaces(0xc000cb5bc0, 0x1e312e0, 0x2249e80, 0x13, 0xc000563d40, 0x2, 0x2)
/go/src/loggie.io/loggie/vendor/github.com/google/go-cmp/cmp/compare.go:368 +0xcc fp=0xc000a77fa8 sp=0xc000a77f18 pc=0x84e9ec
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1371 +0x1 fp=0xc000a77fb0 sp=0xc000a77fa8 pc=0x47a961
created by github.com/google/go-cmp/cmp.(*state).callTTBFunc
/go/src/loggie.io/loggie/vendor/github.com/google/go-cmp/cmp/compare.go:353 +0x26e
What version of Loggie?
docker image built by main branch
Expected Behavior
not panic
Actual Behavior
more panic appears just like the one above:
Steps to Reproduce the Problem