Running terraform from container image fails on MacOS
- GET version: 3.8.2
- Cloud Provider: GCP
- Environment configuration: 10k_hybrid_gcp
terraform
runtime: lfstack.push invalid packing: node=0xffff68e1cb00 cnt=0x1 packed=0xffff68e1cb000001 -> node=0xffffffff68e1cb00
fatal error: lfstack.push
runtime stack:
runtime.throw({0x3941546?, 0xa6262?})
runtime/panic.go:1101 +0x48 fp=0xffffb0287780 sp=0xffffb0287750 pc=0x4751c8
runtime.(*lfstack).push(0x5d577a0?, 0x2?)
runtime/lfstack.go:29 +0x125 fp=0xffffb02877c0 sp=0xffffb0287780 pc=0x4175c5
runtime.(*spanSetBlockAlloc).free(...)
runtime/mspanset.go:322
runtime.(*spanSet).reset(0x5d73f40)
runtime/mspanset.go:264 +0x79 fp=0xffffb02877f0 sp=0xffffb02877c0 pc=0x439c79
runtime.finishsweep_m()
runtime/mgcsweep.go:256 +0x92 fp=0xffffb0287828 sp=0xffffb02877f0 pc=0x42ca92
runtime.gcStart.func3()
runtime/mgc.go:734 +0xf fp=0xffffb0287838 sp=0xffffb0287828 pc=0x4709af
runtime.systemstack(0x47f9ff)
runtime/asm_amd64.s:514 +0x4a fp=0xffffb0287848 sp=0xffffb0287838 pc=0x47b22a
goroutine 1 gp=0xc000002380 m=0 mp=0x5d58ec0 [running, locked to thread]:
runtime.systemstack_switch()
runtime/asm_amd64.s:479 +0x8 fp=0xc00041f280 sp=0xc00041f270 pc=0x47b1c8
runtime.gcStart({0x7d4ee6?, 0xfff0?, 0x0?})
runtime/mgc.go:733 +0x41c fp=0xc00041f378 sp=0xc00041f280 pc=0x42183c
runtime.mallocgcLarge(0x0?, 0x366e000, 0x1)
runtime/malloc.go:1591 +0x189 fp=0xc00041f3d8 sp=0xc00041f378 pc=0x41a109
runtime.mallocgc(0xfff0, 0x366e000, 0x1)
runtime/malloc.go:1063 +0xc5 fp=0xc00041f408 sp=0xc00041f3d8 pc=0x472e45
runtime.growslice(0xc00053c000, 0x7d20041f4c8?, 0x4300bb?, 0xc0000003e9?, 0x366e000)
runtime/slice.go:272 +0x55d fp=0xc00041f478 sp=0xc00041f408 pc=0x477cfd
regexp/syntax.(*compiler).inst(...)
regexp/syntax/compile.go:164
regexp/syntax.(*compiler).quest(0xc00041fcb8, {0x533ea0?, {0xc0?, 0xa?}, 0x0?}, 0x0)
regexp/syntax/compile.go:220 +0x8d fp=0xc00041f520 sp=0xc00041f478 pc=0x78f7cd
regexp/syntax.(*compiler).compile(0xc00041fcb8, 0xc000533f10)
regexp/syntax/compile.go:137 +0x106f fp=0xc00041f608 sp=0xc00041f520 pc=0x78ee2f
regexp/syntax.(*compiler).compile(0xc00041fcb8, 0xc000534000)
regexp/syntax/compile.go:147 +0x1307 fp=0xc00041f6f0 sp=0xc00041f608 pc=0x78f0c7
regexp/syntax.(*compiler).compile(0xc00041fcb8, 0xc000534070)
regexp/syntax/compile.go:137 +0x1045 fp=0xc00041f7d8 sp=0xc00041f6f0 pc=0x78ee05
regexp/syntax.(*compiler).compile(0xc00041fcb8, 0xc000533500)
regexp/syntax/compile.go:147 +0x1307 fp=0xc00041f8c0 sp=0xc00041f7d8 pc=0x78f0c7
regexp/syntax.(*compiler).compile(0xc00041fcb8, 0xc0005340e0)
regexp/syntax/compile.go:129 +0xd92 fp=0xc00041f9a8 sp=0xc00041f8c0 pc=0x78eb52
regexp/syntax.(*compiler).compile(0xc00041fcb8, 0xc000524000)
regexp/syntax/compile.go:154 +0x1228 fp=0xc00041fa90 sp=0xc00041f9a8 pc=0x78efe8
regexp/syntax.(*compiler).compile(0xc00041fcb8, 0xc000534150)
regexp/syntax/compile.go:129 +0xd92 fp=0xc00041fb78 sp=0xc00041fa90 pc=0x78eb52
regexp/syntax.(*compiler).compile(0xc00041fcb8, 0xc0005341c0)
regexp/syntax/compile.go:147 +0x1307 fp=0xc00041fc60 sp=0xc00041fb78 pc=0x78f0c7
regexp/syntax.Compile(0xc0005341c0)
regexp/syntax/compile.go:74 +0x135 fp=0xc00041fd08 sp=0xc00041fc60 pc=0x78dc15
regexp.compile({0x3a45a40, 0x5a}, 0x1?, 0x0)
regexp/regexp.go:176 +0x77 fp=0xc00041fd90 sp=0xc00041fd08 pc=0x7a29f7
regexp.Compile(...)
regexp/regexp.go:131
regexp.MustCompile({0x3a45a40, 0x5a})
regexp/regexp.go:311 +0x2c fp=0xc00041fe08 sp=0xc00041fd90 pc=0x7a350c
go.opencensus.io/trace/tracestate.init()
go.opencensus.io@v0.24.0/trace/tracestate/tracestate.go:37 +0x1f fp=0xc00041fe28 sp=0xc00041fe08 pc=0x1184d3f
runtime.doInit1(0x5b41210)
runtime/proc.go:7350 +0xd8 fp=0xc00041ff50 sp=0xc00041fe28 pc=0x450a98
runtime.doInit(...)
runtime/proc.go:7317
runtime.main()
runtime/proc.go:254 +0x345 fp=0xc00041ffe0 sp=0xc00041ff50 pc=0x442005
runtime.goexit({})
runtime/asm_amd64.s:1700 +0x1 fp=0xc00041ffe8 sp=0xc00041ffe0 pc=0x47d061
goroutine 17 gp=0xc000100000 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
runtime/proc.go:435 +0xce fp=0xc0000a07a8 sp=0xc0000a0788 pc=0x4752ee
runtime.goparkunlock(...)
runtime/proc.go:441
runtime.forcegchelper()
runtime/proc.go:348 +0xb3 fp=0xc0000a07e0 sp=0xc0000a07a8 pc=0x442293
runtime.goexit({})
runtime/asm_amd64.s:1700 +0x1 fp=0xc0000a07e8 sp=0xc0000a07e0 pc=0x47d061
created by runtime.init.7 in goroutine 1
runtime/proc.go:336 +0x1a
goroutine 18 gp=0xc0001001c0 m=nil [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
runtime/proc.go:435 +0xce fp=0xc0000a0f80 sp=0xc0000a0f60 pc=0x4752ee
runtime.goparkunlock(...)
runtime/proc.go:441
runtime.bgsweep(0xc000104000)
runtime/mgcsweep.go:316 +0xdf fp=0xc0000a0fc8 sp=0xc0000a0f80 pc=0x42cbbf
runtime.gcenable.gowrap1()
runtime/mgc.go:204 +0x25 fp=0xc0000a0fe0 sp=0xc0000a0fc8 pc=0x421045
runtime.goexit({})
runtime/asm_amd64.s:1700 +0x1 fp=0xc0000a0fe8 sp=0xc0000a0fe0 pc=0x47d061
created by runtime.gcenable in goroutine 1
runtime/mgc.go:204 +0x66
goroutine 19 gp=0xc000100380 m=nil [GC scavenge wait]:
runtime.gopark(0x10000?, 0x4011a18?, 0x0?, 0x0?, 0x0?)
runtime/proc.go:435 +0xce fp=0xc0000a1778 sp=0xc0000a1758 pc=0x4752ee
runtime.goparkunlock(...)
runtime/proc.go:441
runtime.(*scavengerState).park(0x5d56d40)
runtime/mgcscavenge.go:425 +0x49 fp=0xc0000a17a8 sp=0xc0000a1778 pc=0x42a629
runtime.bgscavenge(0xc000104000)
runtime/mgcscavenge.go:658 +0x59 fp=0xc0000a17c8 sp=0xc0000a17a8 pc=0x42abb9
runtime.gcenable.gowrap2()
runtime/mgc.go:205 +0x25 fp=0xc0000a17e0 sp=0xc0000a17c8 pc=0x420fe5
runtime.goexit({})
runtime/asm_amd64.s:1700 +0x1 fp=0xc0000a17e8 sp=0xc0000a17e0 pc=0x47d061
created by runtime.gcenable in goroutine 1
runtime/mgc.go:205 +0xa5
goroutine 2 gp=0xc000002c40 m=nil [finalizer wait]:
runtime.gopark(0x0?, 0x0?, 0xa8?, 0x7e?, 0x15?)
runtime/proc.go:435 +0xce fp=0xc0000a4630 sp=0xc0000a4610 pc=0x4752ee
runtime.runfinq()
runtime/mfinal.go:196 +0x107 fp=0xc0000a47e0 sp=0xc0000a4630 pc=0x420007
runtime.goexit({})
runtime/asm_amd64.s:1700 +0x1 fp=0xc0000a47e8 sp=0xc0000a47e0 pc=0x47d061
created by runtime.createfing in goroutine 1
runtime/mfinal.go:166 +0x3d
goroutine 20 gp=0xc000100e00 m=nil [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
runtime/proc.go:435 +0xce fp=0xc0000a1f38 sp=0xc0000a1f18 pc=0x4752ee
runtime.gcBgMarkWorker(0xc000466000)
runtime/mgc.go:1423 +0xe9 fp=0xc0000a1fc8 sp=0xc0000a1f38 pc=0x4234a9
runtime.gcBgMarkStartWorkers.gowrap1()
runtime/mgc.go:1339 +0x25 fp=0xc0000a1fe0 sp=0xc0000a1fc8 pc=0x423385
runtime.goexit({})
runtime/asm_amd64.s:1700 +0x1 fp=0xc0000a1fe8 sp=0xc0000a1fe0 pc=0x47d061
created by runtime.gcBgMarkStartWorkers in goroutine 1
runtime/mgc.go:1339 +0x105
goroutine 21 gp=0xc000100fc0 m=nil [GC worker (idle)]:
runtime.gopark(0x7816b8abb49c?, 0x0?, 0x0?, 0x0?, 0x0?)
runtime/proc.go:435 +0xce fp=0xc0000a2738 sp=0xc0000a2718 pc=0x4752ee
runtime.gcBgMarkWorker(0xc000466000)
runtime/mgc.go:1423 +0xe9 fp=0xc0000a27c8 sp=0xc0000a2738 pc=0x4234a9
runtime.gcBgMarkStartWorkers.gowrap1()
runtime/mgc.go:1339 +0x25 fp=0xc0000a27e0 sp=0xc0000a27c8 pc=0x423385
runtime.goexit({})
runtime/asm_amd64.s:1700 +0x1 fp=0xc0000a27e8 sp=0xc0000a27e0 pc=0x47d061
created by runtime.gcBgMarkStartWorkers in goroutine 1
runtime/mgc.go:1339 +0x105
root@740fce5c7bf9:/gitlab-environment-toolkit/terraform/environments/simple-get# mise install terraform
root@740fce5c7bf9:/gitlab-environment-toolkit/terraform/environments/simple-get# terraform
runtime: lfstack.push invalid packing: node=0xffff6cca06c0 cnt=0x1 packed=0xffff6cca06c00001 -> node=0xffffffff6cca06c0
fatal error: lfstack.push
runtime stack:
runtime.throw({0x3941546?, 0x9f1ea?})
runtime/panic.go:1101 +0x48 fp=0xffffb40ff780 sp=0xffffb40ff750 pc=0x4751c8
runtime.(*lfstack).push(0x5d577a0?, 0x2?)
runtime/lfstack.go:29 +0x125 fp=0xffffb40ff7c0 sp=0xffffb40ff780 pc=0x4175c5
runtime.(*spanSetBlockAlloc).free(...)
runtime/mspanset.go:322
runtime.(*spanSet).reset(0x5d73f40)
runtime/mspanset.go:264 +0x79 fp=0xffffb40ff7f0 sp=0xffffb40ff7c0 pc=0x439c79
runtime.finishsweep_m()
runtime/mgcsweep.go:256 +0x92 fp=0xffffb40ff828 sp=0xffffb40ff7f0 pc=0x42ca92
runtime.gcStart.func3()
runtime/mgc.go:734 +0xf fp=0xffffb40ff838 sp=0xffffb40ff828 pc=0x4709af
runtime.systemstack(0x47f9ff)
runtime/asm_amd64.s:514 +0x4a fp=0xffffb40ff848 sp=0xffffb40ff838 pc=0x47b22a
goroutine 1 gp=0xc000002380 m=0 mp=0x5d58ec0 [running, locked to thread]:
runtime.systemstack_switch()
runtime/asm_amd64.s:479 +0x8 fp=0xc00041f988 sp=0xc00041f978 pc=0x47b1c8
runtime.gcStart({0xffffb38a95c0?, 0xc0005e8072?, 0x61e000?})
runtime/mgc.go:733 +0x41c fp=0xc00041fa80 sp=0xc00041f988 pc=0x42183c
runtime.mallocgcSmallScanHeader(0xffffb38a95c0?, 0x315d860, 0xc0?)
runtime/malloc.go:1518 +0x2ff fp=0xc00041fad8 sp=0xc00041fa80 pc=0x419eff
runtime.mallocgc(0x3078, 0x315d860, 0x1)
runtime/malloc.go:1060 +0xa5 fp=0xc00041fb08 sp=0xc00041fad8 pc=0x472e25
runtime.makeslice(0x41a565?, 0x28?, 0x35c5580?)
runtime/slice.go:116 +0x49 fp=0xc00041fb30 sp=0xc00041fb08 pc=0x477709
regexp.makeOnePass(0xc0002cf6e0)
regexp/onepass.go:303 +0x185 fp=0xc00041fc40 sp=0xc00041fb30 pc=0x7a0c85
regexp.compileOnePass(0xc0002cf680)
regexp/onepass.go:502 +0x19e fp=0xc00041fd08 sp=0xc00041fc40 pc=0x7a25be
regexp.compile({0x3a2a012, 0x45}, 0x1?, 0x0)
regexp/regexp.go:187 +0x8f fp=0xc00041fd90 sp=0xc00041fd08 pc=0x7a2a0f
regexp.Compile(...)
regexp/regexp.go:131
regexp.MustCompile({0x3a2a012, 0x45})
regexp/regexp.go:311 +0x2c fp=0xc00041fe08 sp=0xc00041fd90 pc=0x7a350c
go.opencensus.io/trace/tracestate.init()
go.opencensus.io@v0.24.0/trace/tracestate/tracestate.go:38 +0x53 fp=0xc00041fe28 sp=0xc00041fe08 pc=0x1184d73
runtime.doInit1(0x5b41210)
runtime/proc.go:7350 +0xd8 fp=0xc00041ff50 sp=0xc00041fe28 pc=0x450a98
runtime.doInit(...)
runtime/proc.go:7317
runtime.main()
runtime/proc.go:254 +0x345 fp=0xc00041ffe0 sp=0xc00041ff50 pc=0x442005
runtime.goexit({})
runtime/asm_amd64.s:1700 +0x1 fp=0xc00041ffe8 sp=0xc00041ffe0 pc=0x47d061
goroutine 2 gp=0xc0000028c0 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
runtime/proc.go:435 +0xce fp=0xc0000a4fa8 sp=0xc0000a4f88 pc=0x4752ee
runtime.goparkunlock(...)
runtime/proc.go:441
runtime.forcegchelper()
runtime/proc.go:348 +0xb3 fp=0xc0000a4fe0 sp=0xc0000a4fa8 pc=0x442293
runtime.goexit({})
runtime/asm_amd64.s:1700 +0x1 fp=0xc0000a4fe8 sp=0xc0000a4fe0 pc=0x47d061
created by runtime.init.7 in goroutine 1
runtime/proc.go:336 +0x1a
goroutine 17 gp=0xc000104000 m=nil [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
runtime/proc.go:435 +0xce fp=0xc0000a0780 sp=0xc0000a0760 pc=0x4752ee
runtime.goparkunlock(...)
runtime/proc.go:441
runtime.bgsweep(0xc000100000)
runtime/mgcsweep.go:316 +0xdf fp=0xc0000a07c8 sp=0xc0000a0780 pc=0x42cbbf
runtime.gcenable.gowrap1()
runtime/mgc.go:204 +0x25 fp=0xc0000a07e0 sp=0xc0000a07c8 pc=0x421045
runtime.goexit({})
runtime/asm_amd64.s:1700 +0x1 fp=0xc0000a07e8 sp=0xc0000a07e0 pc=0x47d061
created by runtime.gcenable in goroutine 1
runtime/mgc.go:204 +0x66
goroutine 18 gp=0xc0001041c0 m=nil [GC scavenge wait]:
runtime.gopark(0x10000?, 0x4011a18?, 0x0?, 0x0?, 0x0?)
runtime/proc.go:435 +0xce fp=0xc0000a0f78 sp=0xc0000a0f58 pc=0x4752ee
runtime.goparkunlock(...)
runtime/proc.go:441
runtime.(*scavengerState).park(0x5d56d40)
runtime/mgcscavenge.go:425 +0x49 fp=0xc0000a0fa8 sp=0xc0000a0f78 pc=0x42a629
runtime.bgscavenge(0xc000100000)
runtime/mgcscavenge.go:658 +0x59 fp=0xc0000a0fc8 sp=0xc0000a0fa8 pc=0x42abb9
runtime.gcenable.gowrap2()
runtime/mgc.go:205 +0x25 fp=0xc0000a0fe0 sp=0xc0000a0fc8 pc=0x420fe5
runtime.goexit({})
runtime/asm_amd64.s:1700 +0x1 fp=0xc0000a0fe8 sp=0xc0000a0fe0 pc=0x47d061
created by runtime.gcenable in goroutine 1
runtime/mgc.go:205 +0xa5
goroutine 3 gp=0xc000003180 m=nil [finalizer wait]:
runtime.gopark(0x41913e?, 0x1ffff6cc94f48?, 0x4?, 0x0?, 0x5?)
runtime/proc.go:435 +0xce fp=0xc0000a4630 sp=0xc0000a4610 pc=0x4752ee
runtime.runfinq()
runtime/mfinal.go:196 +0x107 fp=0xc0000a47e0 sp=0xc0000a4630 pc=0x420007
runtime.goexit({})
runtime/asm_amd64.s:1700 +0x1 fp=0xc0000a47e8 sp=0xc0000a47e0 pc=0x47d061
created by runtime.createfing in goroutine 1
runtime/mfinal.go:166 +0x3d
goroutine 4 gp=0xc000003880 m=nil [GC worker (idle)]:
runtime.gopark(0x782d1b941a3a?, 0x0?, 0x0?, 0x0?, 0x0?)
runtime/proc.go:435 +0xce fp=0xc0000a5738 sp=0xc0000a5718 pc=0x4752ee
runtime.gcBgMarkWorker(0xc000078150)
runtime/mgc.go:1423 +0xe9 fp=0xc0000a57c8 sp=0xc0000a5738 pc=0x4234a9
runtime.gcBgMarkStartWorkers.gowrap1()
runtime/mgc.go:1339 +0x25 fp=0xc0000a57e0 sp=0xc0000a57c8 pc=0x423385
runtime.goexit({})
runtime/asm_amd64.s:1700 +0x1 fp=0xc0000a57e8 sp=0xc0000a57e0 pc=0x47d061
created by runtime.gcBgMarkStartWorkers in goroutine 1
runtime/mgc.go:1339 +0x105
goroutine 5 gp=0xc000003a40 m=nil [GC worker (idle)]:
runtime.gopark(0x782d1b9433f1?, 0x0?, 0x0?, 0x0?, 0x0?)
runtime/proc.go:435 +0xce fp=0xc0000a5f38 sp=0xc0000a5f18 pc=0x4752ee
runtime.gcBgMarkWorker(0xc000078150)
runtime/mgc.go:1423 +0xe9 fp=0xc0000a5fc8 sp=0xc0000a5f38 pc=0x4234a9
runtime.gcBgMarkStartWorkers.gowrap1()
runtime/mgc.go:1339 +0x25 fp=0xc0000a5fe0 sp=0xc0000a5fc8 pc=0x423385
runtime.goexit({})
runtime/asm_amd64.s:1700 +0x1 fp=0xc0000a5fe8 sp=0xc0000a5fe0 pc=0x47d061
created by runtime.gcBgMarkStartWorkers in goroutine 1
runtime/mgc.go:1339 +0x105
root@740fce5c7bf9:/gitlab-environment-toolkit/terraform/environments/simple-get# uname -a
Linux 740fce5c7bf9 6.6.96-0-virt #1-Alpine SMP PREEMPT_DYNAMIC 2025-07-07 15:18:25 x86_64 GNU/Linux