Skip to content

fatal error: concurrent map read and map write #2193

@ryanpodonnell1

Description

@ryanpodonnell1

Description

task: Task "ci:copy_vars" is up to date
Workspace already exists, skipping creation
task: [ci:plan] task tf:plan WORKSPACE=dev COMPONENT=base TIER=dev
task: [tf:plan] task common_tf:plan WORKSPACE=dev COMPONENT=base TIER=dev
fatal error: concurrent map read and map write
goroutine 39 [running]:
mvdan.cc/sh/v3/interp.(*overlayEnviron).Get(0xc00045e180, {0xc1ff8f, 0x3})
	mvdan.cc/sh/[email protected]/interp/vars.go:29 +0x87
mvdan.cc/sh/v3/interp.(*overlayEnviron).Get(0xc00045e3c0, {0xc1ff8f, 0x3})
	mvdan.cc/sh/[email protected]/interp/vars.go:32 +0x110
mvdan.cc/sh/v3/interp.(*Runner).lookupVar(0xc00012d348, {0xc1ff8f, 0x3})
	mvdan.cc/sh/[email protected]/interp/vars.go:143 +0x40c
mvdan.cc/sh/v3/interp.expandEnv.Get({0x0?}, {0xc1ff8f?, 0x0?})
	mvdan.cc/sh/[email protected]/interp/runner.go:232 +0x4b
mvdan.cc/sh/v3/expand.(*Config).envGet(0xc00001e0c0?, {0xc1ff8f?, 0x4106c5?})
	mvdan.cc/sh/[email protected]/expand/expand.go:159 +0x2f
mvdan.cc/sh/v3/expand.FieldsSeq(0xc000500008?, {0xc0001f2000, 0x4, 0x4})
	mvdan.cc/sh/[email protected]/expand/expand.go:457 +0x3c
mvdan.cc/sh/v3/expand.Fields(0xc00018c3c0, {0xc0001f2000, 0x4, 0x4})
	mvdan.cc/sh/[email protected]/expand/expand.go:443 +0x128
mvdan.cc/sh/v3/interp.(*Runner).fields(0xc00012d348, {0xc0001f2000?, 0x14153c0?, 0xc0002d89a8?})
	mvdan.cc/sh/[email protected]/interp/runner.go:201 +0x27
mvdan.cc/sh/v3/interp.(*Runner).cmd(0xc00012d348, {0xf46890, 0x14153c0}, {0xf45480, 0xc000428aa0})
	mvdan.cc/sh/[email protected]/interp/runner.go:376 +0x1405
mvdan.cc/sh/v3/interp.(*Runner).stmtSync(0xc00012d348, {0xf46890, 0x14153c0}, 0xc00011e9c0)
	mvdan.cc/sh/[email protected]/interp/runner.go:322 +0x1d7
mvdan.cc/sh/v3/interp.(*Runner).stmt(0xc00012d348, {0xf46890, 0x14153c0}, 0xc00011e9c0)
	mvdan.cc/sh/[email protected]/interp/runner.go:304 +0x15e
mvdan.cc/sh/v3/interp.(*Runner).stmts(...)
	mvdan.cc/sh/[email protected]/interp/runner.go:804
mvdan.cc/sh/v3/interp.(*Runner).fillExpandConfig.func2.1()
	mvdan.cc/sh/[email protected]/interp/runner.go:137 +0x36a
created by mvdan.cc/sh/v3/interp.(*Runner).fillExpandConfig.func2 in goroutine 1
	mvdan.cc/sh/[email protected]/interp/runner.go:107 +0x485
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fd494699ce0, 0x72)
	runtime/netpoll.go:351 +0x85
internal/poll.(*pollDesc).wait(0xc00011eba0?, 0xc0004b684d?, 0x1)
	internal/poll/fd_poll_runtime.go:84 +0x27
internal/poll.(*pollDesc).waitRead(...)
	internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc00011eba0, {0xc0004b684d, 0x1, 0x1})
	internal/poll/fd_unix.go:165 +0x27a
os.(*File).read(...)
	os/file_posix.go:29
os.(*File).Read(0xc0002c2170, {0xc0004b684d?, 0xc00025c648?, 0xc0004b6878?})
	os/file.go:124 +0x52
mvdan.cc/sh/v3/interp.(*Runner).readLine(0xc00012cdc8, {0xf46890, 0x14153c0}, 0x1)
	mvdan.cc/sh/[email protected]/interp/builtin.go:959 +0x209
mvdan.cc/sh/v3/interp.(*Runner).builtinCode(0xc00012cdc8, {0xf46890, 0x14153c0}, {0xfe, 0x2800f}, {0xc000476628, 0x4}, {0xc000350590, 0x3, 0x3})
	mvdan.cc/sh/[email protected]/interp/builtin.go:603 +0x75c5
mvdan.cc/sh/v3/interp.(*Runner).call(0xc00012cdc8, {0xf46890, 0x14153c0}, {0x350590?, 0xc0?}, {0xc000350580, 0x4, 0x4})
	mvdan.cc/sh/[email protected]/interp/runner.go:1013 +0x54a
mvdan.cc/sh/v3/interp.(*Runner).cmd(0xc00012cdc8, {0xf46890, 0x14153c0}, {0xf45480, 0xc0004285f0})
	mvdan.cc/sh/[email protected]/interp/runner.go:432 +0x187b
mvdan.cc/sh/v3/interp.(*Runner).stmtSync(0xc00012cdc8, {0xf46890, 0x14153c0}, 0xc00011e600)
	mvdan.cc/sh/[email protected]/interp/runner.go:322 +0x1d7
mvdan.cc/sh/v3/interp.(*Runner).stmt(0xc00012cdc8, {0xf46890, 0x14153c0}, 0xc00011e600)
	mvdan.cc/sh/[email protected]/interp/runner.go:304 +0x15e
mvdan.cc/sh/v3/interp.(*Runner).stmts(...)
	mvdan.cc/sh/[email protected]/interp/runner.go:804
mvdan.cc/sh/v3/interp.(*Runner).cmd(0xc00012cdc8, {0xf46890, 0x14153c0}, {0xf45510, 0xc000196180})
	mvdan.cc/sh/[email protected]/interp/runner.go:494 +0x2f1b
mvdan.cc/sh/v3/interp.(*Runner).stmtSync(0xc00012cdc8, {0xf46890, 0x14153c0}, 0xc00011e540)
	mvdan.cc/sh/[email protected]/interp/runner.go:322 +0x1d7
mvdan.cc/sh/v3/interp.(*Runner).stmt(0xc00012cdc8, {0xf46890, 0x14153c0}, 0xc00011e540)
	mvdan.cc/sh/[email protected]/interp/runner.go:304 +0x15e
mvdan.cc/sh/v3/interp.(*Runner).stmts(...)
	mvdan.cc/sh/[email protected]/interp/runner.go:804
mvdan.cc/sh/v3/interp.(*Runner).Run(0xc00012cdc8, {0xf46890, 0x14153c0}, {0xf425f0, 0xc000350100})
	mvdan.cc/sh/[email protected]/interp/api.go:816 +0x36e
github.com/go-task/task/v3/internal/execext.RunCommand({0xf46890, 0x14153c0}, 0xc0004b8890)
	github.com/go-task/task/[email protected]/internal/execext/exec.go:91 +0x7e5
github.com/go-task/task/v3.(*Compiler).HandleDynamicVar(0xc00011e7e0, {{0x0, 0x0}, {0x0, 0x0}, 0xc0002da200, {0x0, 0x0}, {0x0, 0x0}}, ...)
	github.com/go-task/task/[email protected]/compiler.go:176 +0x2d0
github.com/go-task/task/v3.(*Compiler).getVariables.(*Compiler).getVariables.func1.func3({0xc0004776f0, 0xc}, {{0x0, 0x0}, {0x0, 0x0}, 0xc0003b91c0, {0x0, 0x0}, {0x0, ...}})
	github.com/go-task/task/[email protected]/compiler.go:83 +0x26b
github.com/go-task/task/v3.(*Compiler).getVariables-range6({0xc0004776f0?, 0x7ed3fd?}, {{0x0, 0x0}, {0x0, 0x0}, 0xc0003b91c0, {0x0, 0x0}, {0x0, ...}})
	github.com/go-task/task/[email protected]/compiler.go:139 +0xae
github.com/go-task/task/v3.(*Compiler).getVariables.(*Vars).All.(*OrderedMap[...]).AllFromFront.func15()
	github.com/elliotchance/orderedmap/[email protected]/orderedmap.go:104 +0xe6
github.com/go-task/task/v3.(*Compiler).getVariables(0xc00011e7e0, 0xc0000ff200, 0xc00045e080, 0x1)
	github.com/go-task/task/[email protected]/compiler.go:138 +0xca2
github.com/go-task/task/v3.(*Compiler).GetVariables(...)
	github.com/go-task/task/[email protected]/compiler.go:40
github.com/go-task/task/v3.(*Executor).compiledTask(0xc0001aa2c0, 0xc00045e080, 0x1)
	github.com/go-task/task/[email protected]/variables.go:40 +0xba
github.com/go-task/task/v3.(*Executor).CompiledTask(...)
	github.com/go-task/task/[email protected]/variables.go:24
github.com/go-task/task/v3.(*Executor).RunTask(0xc0001aa2c0, {0xf46900, 0xc0003472c0}, 0xc00045e080)
	github.com/go-task/task/[email protected]/task.go:189 +0xc9
github.com/go-task/task/v3.(*Executor).runCommand(0xc0001aa2c0, {0xf46900, 0xc0003472c0}, 0xc0004b9900?, 0x4?, 0x0?)
	github.com/go-task/task/[email protected]/task.go:369 +0x186
github.com/go-task/task/v3.(*Executor).RunTask.func1({0xf46900, 0xc0003472c0})
	github.com/go-task/task/[email protected]/task.go:273 +0x9ad
github.com/go-task/task/v3.(*Executor).startExecution(0xc0001aa2c0, {0xf46900, 0xc0003472c0}, 0xe?, 0xc0004b9aa8)
	github.com/go-task/task/[email protected]/task.go:429 +0x372
github.com/go-task/task/v3.(*Executor).RunTask(0xc0001aa2c0, {0xf46900, 0xc0003472c0}, 0xc000062980)
	github.com/go-task/task/[email protected]/task.go:208 +0x1e5
github.com/go-task/task/v3.(*Executor).Run(0xc0001aa2c0, {0xf46890, 0x14153c0}, {0xc0002c2508, 0x1, 0x1})
	github.com/go-task/task/[email protected]/task.go:142 +0x3ad
main.run()
	github.com/go-task/task/[email protected]/cmd/task/task.go:237 +0xf85
main.main()
	github.com/go-task/task/[email protected]/cmd/task/task.go:27 +0x1f
goroutine 36 [chan receive]:
github.com/go-task/task/v3.(*Executor).InterceptInterruptSignals.func1()
	github.com/go-task/task/[email protected]/signals.go:22 +0xa5
created by github.com/go-task/task/v3.(*Executor).InterceptInterruptSignals in goroutine 1
	github.com/go-task/task/[email protected]/signals.go:20 +0xc9
goroutine 28 [IO wait]:
internal/poll.runtime_pollWait(0x7fd494699df8, 0x72)
	runtime/netpoll.go:351 +0x85
internal/poll.(*pollDesc).wait(0xc000196400?, 0xc0002b6500?, 0x0)
	internal/poll/fd_poll_runtime.go:84 +0x27
internal/poll.(*pollDesc).waitRead(...)
	internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc000196400, {0xc0002b6500, 0x2500, 0x2500})
	internal/poll/fd_unix.go:165 +0x27a
net.(*netFD).Read(0xc000196400, {0xc0002b6500?, 0x41041e?, 0x7fd4db27f108?})
	net/fd_posix.go:55 +0x25
net.(*conn).Read(0xc0002c2028, {0xc0002b6500?, 0xc00046b306?, 0xc0002b7ff0?})
	net/net.go:189 +0x45
crypto/tls.(*atLeastReader).Read(0xc0000101b0, {0xc0002b6500?, 0x0?, 0xc0000101b0?})
	crypto/tls/conn.go:809 +0x3b
bytes.(*Buffer).ReadFrom(0xc0000049b8, {0xf40f00, 0xc0000101b0})
	bytes/buffer.go:211 +0x98
crypto/tls.(*Conn).readFromUntil(0xc000004708, {0xf40000, 0xc0002c2028}, 0xc000255a10?)
	crypto/tls/conn.go:831 +0xde
crypto/tls.(*Conn).readRecordOrCCS(0xc000004708, 0x0)
	crypto/tls/conn.go:629 +0x3cf
crypto/tls.(*Conn).readRecord(...)
	crypto/tls/conn.go:591
crypto/tls.(*Conn).Read(0xc000004708, {0xc000055000, 0x1000, 0xc000504700?})
	crypto/tls/conn.go:1385 +0x150
bufio.(*Reader).Read(0xc00011e5a0, {0xc00015e660, 0x9, 0x13cf7e0?})
	bufio/bufio.go:241 +0x197
io.ReadAtLeast({0xf3f880, 0xc00011e5a0}, {0xc00015e660, 0x9, 0x9}, 0x9)
	io/io.go:335 +0x90
io.ReadFull(...)
	io/io.go:354
net/http.http2readFrameHeader({0xc00015e660, 0x9, 0xc0000140f0?}, {0xf3f880?, 0xc00011e5a0?})
	net/http/h2_bundle.go:1642 +0x65
net/http.(*http2Framer).ReadFrame(0xc00015e620)
	net/http/h2_bundle.go:1909 +0x85
net/http.(*http2clientConnReadLoop).run(0xc000255fa8)
	net/http/h2_bundle.go:9496 +0xda
net/http.(*http2ClientConn).readLoop(0xc00012a180)
	net/http/h2_bundle.go:9392 +0x7c
created by net/http.(*http2Transport).newClientConn in goroutine 27
	net/http/h2_bundle.go:8006 +0xd1b
goroutine 49 [syscall]:
os/signal.signal_recv()
	runtime/sigqueue.go:152 +0x29
os/signal.loop()
	os/signal/signal_unix.go:23 +0x13
created by os/signal.Notify.func1.1 in goroutine 1
	os/signal/signal.go:151 +0x1f
task: Failed to run task "tf:plan": exit status 2
task: Failed to run task "ci:plan": exit status 201

Version

3.42.1

Operating system

Linux (Python 3.12 docker image)

Experiments Enabled

Remote Taskfiles

Example Taskfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions