Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack overflow with nested include #284

Open
artemklevtsov opened this issue Dec 13, 2024 · 2 comments
Open

Stack overflow with nested include #284

artemklevtsov opened this issue Dec 13, 2024 · 2 comments

Comments

@artemklevtsov
Copy link

artemklevtsov commented Dec 13, 2024

Hi,

I tried to split templates but get error.
My goal to pass data (current context and global variables) to the nested templates.
How can I do it right way?
My projects no longer render with the 3.12.0.

App version: 3.12.0

Taskfile.yaml:

version: "3"

tasks:
  default:
    preconditions:
      - which gotemplate
    env:
      GOTEMPLATE_SOURCE: "./templates/"
      GOTEMPLATE_TARGET: "./"
      GOTEMPLATE_EXCLUDE: "./templates/**"
      GOTEMPLATE_OVERWRITE: "true"
      GOTEMPLATE_RECURSIVE: "true"
      GOTEMPLATE_RAZOR: "false"
      GOTEMPLATE_TEMPLATE_LOG_LEVEL: debug
      GOTEMPLATE_INTERNAL_LOG_LEVEL: debug
    cmds:
      - gotemplate

templates/test.yaml.template:

{{- set $ "name" "payload2" }}
{{ include "./first.yaml.tpl" . }}

templates/first.yaml.tpl:

{{ $.name }}_first: vvv

{{- range (list  "aaa" "bbb" ) }}
{{ include "./second.yaml.tpl" ( merge ( dict "k" . ) $ ) | trim }}
{{- end }}

templates/second.yaml.tpl:

{{ $.name }}_second: {{ .k }}

Output:

task: [default] gotemplate
[gotemplate-internal] 2024/12/14 00:05:17.142 DEBUG    GoTemplate processing of test.yaml.template
runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc046284378 stack=[0xc046284000, 0xc066284000]
fatal error: stack overflow

runtime stack:
runtime.throw({0xbb4f18?, 0x78c88d7b9d50?})
        runtime/panic.go:1067 +0x48 fp=0x78c88d7b9d10 sp=0x78c88d7b9ce0 pc=0x470988
runtime.newstack()
        runtime/stack.go:1117 +0x5bd fp=0x78c88d7b9e50 sp=0x78c88d7b9d10 pc=0x454fbd
runtime.morestack()
        runtime/asm_amd64.s:621 +0x7a fp=0x78c88d7b9e58 sp=0x78c88d7b9e50 pc=0x47689a

goroutine 1 gp=0xc0000061c0 m=14 mp=0xc000600e08 [running]:
runtime.deductAssistCredit(0xc0?)
        runtime/malloc.go:1333 +0x70 fp=0xc046284388 sp=0xc046284380 pc=0x412190
runtime.mallocgc(0xc0, 0xba46a0, 0x1)
        runtime/malloc.go:1037 +0xde fp=0xc046284428 sp=0xc046284388 pc=0x46b37e
runtime.makeslice(0x10?, 0x500000004?, 0x78c8de582108?)
        runtime/slice.go:116 +0x49 fp=0xc046284450 sp=0xc046284428 pc=0x472aa9
reflect.Value.MapKeys({0xb8f180?, 0xc0003e5440?, 0xc046284568?})
        reflect/value.go:1841 +0xf9 fp=0xc046284528 sp=0xc046284450 pc=0x4b3a99
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:236 +0x3f8 fp=0xc0462845e8 sp=0xc046284528 pc=0x71bf78
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc0462846a8 sp=0xc0462845e8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046284768 sp=0xc0462846a8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046284828 sp=0xc046284768 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc0462848e8 sp=0xc046284828 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc0462849a8 sp=0xc0462848e8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046284a68 sp=0xc0462849a8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046284b28 sp=0xc046284a68 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046284be8 sp=0xc046284b28 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046284ca8 sp=0xc046284be8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046284d68 sp=0xc046284ca8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046284e28 sp=0xc046284d68 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046284ee8 sp=0xc046284e28 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046284fa8 sp=0xc046284ee8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046285068 sp=0xc046284fa8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046285128 sp=0xc046285068 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc0462851e8 sp=0xc046285128 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc0462852a8 sp=0xc0462851e8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046285368 sp=0xc0462852a8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046285428 sp=0xc046285368 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc0462854e8 sp=0xc046285428 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc0462855a8 sp=0xc0462854e8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046285668 sp=0xc0462855a8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046285728 sp=0xc046285668 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc0462857e8 sp=0xc046285728 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc0462858a8 sp=0xc0462857e8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046285968 sp=0xc0462858a8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046285a28 sp=0xc046285968 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046285ae8 sp=0xc046285a28 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046285ba8 sp=0xc046285ae8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046285c68 sp=0xc046285ba8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046285d28 sp=0xc046285c68 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046285de8 sp=0xc046285d28 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046285ea8 sp=0xc046285de8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046285f68 sp=0xc046285ea8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046286028 sp=0xc046285f68 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc0462860e8 sp=0xc046286028 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc0462861a8 sp=0xc0462860e8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046286268 sp=0xc0462861a8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046286328 sp=0xc046286268 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc0462863e8 sp=0xc046286328 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc0462864a8 sp=0xc0462863e8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046286568 sp=0xc0462864a8 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc046286628 sp=0xc046286568 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc0462866e8 sp=0xc046286628 pc=0x71c005
github.com/coveooss/gotemplate/v3/collections/implementation.NeedConversion({0xb8f180, 0xc0003e5440}, 0x0, {0xbab56e, 0x4})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:238 +0x485 fp=0xc0462867a8 sp=0xc0462866e8 pc=0x71c005
...2796079 frames elided...
github.com/coveooss/gotemplate/v3/collections/implementation.BaseHelper.TryConvert({0xc0d798?, 0xc0d790?, 0xc0d7a0?}, {0xb8f180, 0xc0003e5410})
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:211 +0x51 fp=0xc066280c58 sp=0xc066280c00 pc=0x71bad1
github.com/coveooss/gotemplate/v3/collections/implementation.BaseHelper.Convert(...)
        github.com/coveooss/gotemplate/v3/collections/implementation/base_helper.go:63
github.com/coveooss/gotemplate/v3/collections/implementation.DictHelper.Set({{0xc0d798?, 0xc0d790?, 0xc0d7a0?}}, {0xcd22d0, 0xc0000d65d0}, {0xabd0e0, 0xcc2110}, {0xb8f180, 0xc0003e5410})
        github.com/coveooss/gotemplate/v3/collections/implementation/dict_helper.go:185 +0x127 fp=0xc066280cf8 sp=0xc066280c58 pc=0x71de07
github.com/coveooss/gotemplate/v3/json.jsonDict.Set(0x0?, {0xabd0e0?, 0xcc2110?}, {0xb8f180?, 0xc0003e5410?})
        github.com/coveooss/gotemplate/v3/json/generated_impl.go:121 +0x5b fp=0xc066280d50 sp=0xc066280cf8 pc=0x74857b
github.com/coveooss/gotemplate/v3/template.optimizedRunTemplate(0xc0004205b0, 0x0, {0xc000048797, 0x11}, {0xc000333720, 0x1, 0x1})
        github.com/coveooss/gotemplate/v3/template/extra_runtime.go:453 +0x1d1 fp=0xc066280f00 sp=0xc066280d50 pc=0x9ff771
github.com/coveooss/gotemplate/v3/template.(*Template).runTemplate(...)
        github.com/coveooss/gotemplate/v3/template/extra_runtime.go:433
github.com/coveooss/gotemplate/v3/template.(*Template).include(0xc0004205b0, {0xabd0e0, 0xc0003336a0}, {0xc000333720, 0x1, 0x1})
        github.com/coveooss/gotemplate/v3/template/extra_runtime.go:195 +0xd0 fp=0xc066280f88 sp=0xc066280f00 pc=0x9fcf90
github.com/coveooss/gotemplate/v3/template.(*Template).include-fm({0xabd0e0?, 0xc0003336a0?}, {0xc000333720?, 0xc00059c060?, 0x2?})
        <autogenerated>:1 +0x45 fp=0xc066280fc8 sp=0xc066280f88 pc=0xa23d85
runtime.call64(0xc0003e5350, 0xc00059a730, 0x0, 0x0, 0x0, 0x28, 0xc066281250)
        runtime/asm_amd64.s:777 +0x43 fp=0xc066281018 sp=0xc066280fc8 pc=0x476dc3
runtime.reflectcall(0xab4b20?, 0xc000012fc0?, 0x8?, 0xbb7dcb?, 0x0?, 0x12?, 0xab4b20?)
        <autogenerated>:1 +0x36 fp=0xc066281058 sp=0xc066281018 pc=0x47b196
reflect.Value.call({0xaefa40?, 0xc00059a730?, 0x94?}, {0xbab5ee, 0x4}, {0xc0003e5f20, 0x2, 0x6be2f2?})
        reflect/value.go:581 +0xca6 fp=0xc0662815a0 sp=0xc066281058 pc=0x4adf06
reflect.Value.Call({0xaefa40?, 0xc00059a730?, 0x194?}, {0xc0003e5f20?, 0x78c8de582108?, 0xae1220?})
        reflect/value.go:365 +0xb9 fp=0xc066281618 sp=0xc0662815a0 pc=0x4ad019
text/template.safeCall({0xaefa40?, 0xc00059a730?, 0xc00038e210?}, {0xc0003e5f20?, 0xcd46d8?, 0xae1220?})
        text/template/funcs.go:375 +0x86 fp=0xc0662816b8 sp=0xc066281618 pc=0x6d99c6
text/template.(*state).evalCall(0xc066282080, {0xae1220?, 0xc00038e210?, 0xc0004b3938?}, {0xaefa40?, 0xc00059a730?, 0xc00002a510?}, 0x0, {0xccce78, 0xc0003e56e0}, ...)
        text/template/exec.go:811 +0xa1e fp=0xc066281880 sp=0xc0662816b8 pc=0x6d529e
text/template.(*state).evalFunction(0xc0004b4080, {0xae1220?, 0xc00038e210?, 0x6c94a0?}, 0x98?, {0xccce78, 0xc0003e56e0}, {0xc000246900, 0x3, 0x4}, ...)
        text/template/exec.go:623 +0x1ff fp=0xc066281978 sp=0xc066281880 pc=0x6d3b1f
text/template.(*state).evalCommand(0xc0004b4080, {0xae1220?, 0xc00038e210?, 0x0?}, 0xc0003e56e0, {0xaf83c0?, 0x11ab100?, 0xc0004b3b50?})
        text/template/exec.go:510 +0x1ce fp=0xc066281a70 sp=0xc066281978 pc=0x6d2ace
text/template.(*state).evalPipeline(0xc066282080, {0xae1220?, 0xc00038e210?, 0xabd0e0?}, 0xc0001122a0)
        text/template/exec.go:479 +0x125 fp=0xc066281b60 sp=0xc066281a70 pc=0x6d24c5
text/template.(*state).walk(0xc066282080, {0xae1220?, 0xc00038e210?, 0x0?}, {0xcccf98?, 0xc0003e5890})
        text/template/exec.go:267 +0x225 fp=0xc066281bf8 sp=0xc066281b60 pc=0x6d0d45
text/template.(*state).walk(0xc066282080, {0xae1220?, 0xc00038e210?, 0x94?}, {0xcccf08?, 0xc0003e5680?})
        text/template/exec.go:280 +0x2e5 fp=0xc066281c90 sp=0xc066281bf8 pc=0x6d0e05
text/template.(*state).walkRange.func2({0xabd320?, 0x1129a68?, 0xc0003e5170?}, {0xae1220?, 0xc00038e210?, 0x49697d?})
        text/template/exec.go:395 +0x2b2 fp=0xc066281d48 sp=0xc066281c90 pc=0x6d1f32
text/template.(*state).walkRange(0xc00004e080, {0xb8f180?, 0xc0003e5170?, 0xabd0e0?}, 0xc000246940)
        text/template/exec.go:403 +0x615 fp=0xc066281ee0 sp=0xc066281d48 pc=0x6d1b35
text/template.(*state).walk(0xc00004e080, {0xb8f180?, 0xc0003e5170?, 0x78c8de582108?}, {0xcccf50?, 0xc000246940?})
        text/template/exec.go:283 +0x9c fp=0xc066281f78 sp=0xc066281ee0 pc=0x6d0bbc
text/template.(*state).walk(0xc066282080, {0xb8f180?, 0xc0003e5170?, 0xc0002be7e0?}, {0xcccf08?, 0xc0003e54d0?})
        text/template/exec.go:280 +0x2e5 fp=0xc066282010 sp=0xc066281f78 pc=0x6d0e05
text/template.(*Template).execute(0xc0002466c0, {0xcc45a0?, 0xc0003e53e0?}, {0xb8f180?, 0xc0003e5170?})
        text/template/exec.go:224 +0x275 fp=0xc066282100 sp=0xc066282010 pc=0x6d05b5
text/template.(*Template).Execute(...)
        text/template/exec.go:207
github.com/coveooss/gotemplate/v3/template.optimizedRunTemplate(0xc0004205b0, 0x0, {0xc00041e52c, 0x10}, {0xc00026df40, 0x1, 0x1})
        github.com/coveooss/gotemplate/v3/template/extra_runtime.go:509 +0x770 fp=0xc0662822b0 sp=0xc066282100 pc=0x9ffd10
github.com/coveooss/gotemplate/v3/template.(*Template).runTemplate(...)
        github.com/coveooss/gotemplate/v3/template/extra_runtime.go:433
github.com/coveooss/gotemplate/v3/template.(*Template).include(0xc0004205b0, {0xabd0e0, 0xc00026df30}, {0xc00026df40, 0x1, 0x1})
        github.com/coveooss/gotemplate/v3/template/extra_runtime.go:195 +0xd0 fp=0xc066282338 sp=0xc0662822b0 pc=0x9fcf90
github.com/coveooss/gotemplate/v3/template.(*Template).include-fm({0xabd0e0?, 0xc00026df30?}, {0xc00026df40?, 0xc00059c060?, 0x2?})
        <autogenerated>:1 +0x45 fp=0xc066282378 sp=0xc066282338 pc=0xa23d85
runtime.call64(0xc0003e5350, 0xc00059a730, 0x0, 0x0, 0x0, 0x28, 0xc066282600)
        runtime/asm_amd64.s:777 +0x43 fp=0xc0662823c8 sp=0xc066282378 pc=0x476dc3
runtime.reflectcall(0xab4b20?, 0xc000012c60?, 0x8?, 0xbb7dcb?, 0x0?, 0x12?, 0xab4b20?)
        <autogenerated>:1 +0x36 fp=0xc066282408 sp=0xc0662823c8 pc=0x47b196
reflect.Value.call({0xaefa40?, 0xc00059a730?, 0x15?}, {0xbab5ee, 0x4}, {0xc0003e52f0, 0x2, 0x0?})
        reflect/value.go:581 +0xca6 fp=0xc066282950 sp=0xc066282408 pc=0x4adf06
reflect.Value.Call({0xaefa40?, 0xc00059a730?, 0x15?}, {0xc0003e52f0?, 0x78c8de582108?, 0xb8f180?})
        reflect/value.go:365 +0xb9 fp=0xc0662829c8 sp=0xc066282950 pc=0x4ad019
text/template.safeCall({0xaefa40?, 0xc00059a730?, 0xc0003e5170?}, {0xc0003e52f0?, 0xcd46d8?, 0xae1220?})
        text/template/funcs.go:375 +0x86 fp=0xc066282a68 sp=0xc0662829c8 pc=0x6d99c6
text/template.(*state).evalCall(0xc0662830b0, {0xb8f180?, 0xc0003e5170?, 0xc00004ece8?}, {0xaefa40?, 0xc00059a730?, 0x0?}, 0x0, {0xccce78, 0xc0003e5080}, ...)
        text/template/exec.go:811 +0xa1e fp=0xc066282c30 sp=0xc066282a68 pc=0x6d529e
text/template.(*state).evalFunction(0xc00004f0b0, {0xb8f180?, 0xc0003e5170?, 0xbd0c68?}, 0x2e?, {0xccce78, 0xc0003e5080}, {0xc000246640, 0x3, 0x4}, ...)
        text/template/exec.go:623 +0x1ff fp=0xc066282d28 sp=0xc066282c30 pc=0x6d3b1f
text/template.(*state).evalCommand(0xc00004f0b0, {0xb8f180?, 0xc0003e5170?, 0x0?}, 0xc0003e5080, {0xaf83c0?, 0x11ab100?, 0x0?})
        text/template/exec.go:510 +0x1ce fp=0xc066282e20 sp=0xc066282d28 pc=0x6d2ace
text/template.(*state).evalPipeline(0xc0662830b0, {0xb8f180?, 0xc0003e5170?, 0xabd0e0?}, 0xc0001120c0)
        text/template/exec.go:479 +0x125 fp=0xc066282f10 sp=0xc066282e20 pc=0x6d24c5
text/template.(*state).walk(0xc0662830b0, {0xb8f180?, 0xc0003e5170?, 0x78c8de582108?}, {0xcccf98?, 0xc0003e50e0})
        text/template/exec.go:267 +0x225 fp=0xc066282fa8 sp=0xc066282f10 pc=0x6d0d45
text/template.(*state).walk(0xc0662830b0, {0xb8f180?, 0xc0003e5170?, 0x0?}, {0xcccf08?, 0xc0003e4f60?})
        text/template/exec.go:280 +0x2e5 fp=0xc066283040 sp=0xc066282fa8 pc=0x6d0e05
text/template.(*Template).execute(0xc000246180, {0xcc45a0?, 0xc0003e5140?}, {0xb8f180?, 0xc0003e5170?})
        text/template/exec.go:224 +0x275 fp=0xc066283130 sp=0xc066283040 pc=0x6d05b5
text/template.(*Template).Execute(...)
        text/template/exec.go:207
github.com/coveooss/gotemplate/v3/template.(*Template).processContentInternal(0xc0002516c0, {0xc00041e280, 0x43}, {0xc0003ffc5d, 0x12}, {0x0, 0x0, 0x0}, 0x0, 0x1, ...)
        github.com/coveooss/gotemplate/v3/template/template_handler.go:254 +0x94c fp=0xc066283588 sp=0xc066283130 pc=0xa1e0cc
github.com/coveooss/gotemplate/v3/template.(*Template).processTemplate(0xc0002516c0, {0xc0003ffc5d, 0x12}, {0xc00002fac0, 0x3c}, {0xc00002fb80, 0x32}, 0x0)
        github.com/coveooss/gotemplate/v3/template/template_handler.go:58 +0x12b fp=0xc066283778 sp=0xc066283588 pc=0xa1c86b
github.com/coveooss/gotemplate/v3/template.(*Template).ProcessTemplatesWithHandler(0xc0002516c0, {0xc00002fac0, 0x3c}, {0xc00002fb80, 0x32}, 0x0, {0xc000416be0, 0x1, 0x0?})
        github.com/coveooss/gotemplate/v3/template/template_handler.go:31 +0x2db fp=0xc066283850 sp=0xc066283778 pc=0xa1c4db
github.com/coveooss/gotemplate/v3/template.(*Template).ProcessTemplates(...)
        github.com/coveooss/gotemplate/v3/template/template_process.go:50
main.runGotemplate()
        github.com/coveooss/gotemplate/v3/main.go:303 +0x6c45 fp=0xc066283f38 sp=0xc066283850 pc=0xa70765
main.main()
        github.com/coveooss/gotemplate/v3/main.go:360 +0x13 fp=0xc066283f50 sp=0xc066283f38 pc=0xa71133
runtime.main()
        runtime/proc.go:272 +0x28b fp=0xc066283fe0 sp=0xc066283f50 pc=0x43caab
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc066283fe8 sp=0xc066283fe0 pc=0x478741

goroutine 2 gp=0xc000006c40 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000092fa8 sp=0xc000092f88 pc=0x470aae
runtime.goparkunlock(...)
        runtime/proc.go:430
runtime.forcegchelper()
        runtime/proc.go:337 +0xb3 fp=0xc000092fe0 sp=0xc000092fa8 pc=0x43cdf3
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc000092fe8 sp=0xc000092fe0 pc=0x478741
created by runtime.init.7 in goroutine 1
        runtime/proc.go:325 +0x1a

goroutine 3 gp=0xc000007180 m=nil [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000093780 sp=0xc000093760 pc=0x470aae
runtime.goparkunlock(...)
        runtime/proc.go:430
runtime.bgsweep(0xc000036080)
        runtime/mgcsweep.go:317 +0xdf fp=0xc0000937c8 sp=0xc000093780 pc=0x42763f
runtime.gcenable.gowrap1()
        runtime/mgc.go:203 +0x25 fp=0xc0000937e0 sp=0xc0000937c8 pc=0x41bd25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc0000937e8 sp=0xc0000937e0 pc=0x478741
created by runtime.gcenable in goroutine 1
        runtime/mgc.go:203 +0x66

goroutine 4 gp=0xc000007340 m=nil [GC scavenge wait]:
runtime.gopark(0x10000?, 0xcbe788?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000093f78 sp=0xc000093f58 pc=0x470aae
runtime.goparkunlock(...)
        runtime/proc.go:430
runtime.(*scavengerState).park(0x1189d00)
        runtime/mgcscavenge.go:425 +0x49 fp=0xc000093fa8 sp=0xc000093f78 pc=0x425029
runtime.bgscavenge(0xc000036080)
        runtime/mgcscavenge.go:658 +0x59 fp=0xc000093fc8 sp=0xc000093fa8 pc=0x4255b9
runtime.gcenable.gowrap2()
        runtime/mgc.go:204 +0x25 fp=0xc000093fe0 sp=0xc000093fc8 pc=0x41bcc5
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc000093fe8 sp=0xc000093fe0 pc=0x478741
created by runtime.gcenable in goroutine 1
        runtime/mgc.go:204 +0xa5

goroutine 5 gp=0xc000007c00 m=nil [finalizer wait]:
runtime.gopark(0xc000092648?, 0x412265?, 0xb0?, 0x1?, 0xc0000061c0?)
        runtime/proc.go:424 +0xce fp=0xc000092620 sp=0xc000092600 pc=0x470aae
runtime.runfinq()
        runtime/mfinal.go:193 +0x107 fp=0xc0000927e0 sp=0xc000092620 pc=0x41ada7
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc0000927e8 sp=0xc0000927e0 pc=0x478741
created by runtime.createfing in goroutine 1
        runtime/mfinal.go:163 +0x3d

goroutine 6 gp=0xc000244000 m=nil [chan receive]:
runtime.gopark(0xc000094760?, 0x651d45?, 0xd0?, 0x22?, 0xcd5260?)
        runtime/proc.go:424 +0xce fp=0xc000094718 sp=0xc0000946f8 pc=0x470aae
runtime.chanrecv(0xc0000343f0, 0x0, 0x1)
        runtime/chan.go:639 +0x41c fp=0xc000094790 sp=0xc000094718 pc=0x40b83c
runtime.chanrecv1(0x0?, 0x0?)
        runtime/chan.go:489 +0x12 fp=0xc0000947b8 sp=0xc000094790 pc=0x40b3f2
runtime.unique_runtime_registerUniqueMapCleanup.func1(...)
        runtime/mgc.go:1732
runtime.unique_runtime_registerUniqueMapCleanup.gowrap1()
        runtime/mgc.go:1735 +0x2f fp=0xc0000947e0 sp=0xc0000947b8 pc=0x41ed2f
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc0000947e8 sp=0xc0000947e0 pc=0x478741
created by unique.runtime_registerUniqueMapCleanup in goroutine 1
        runtime/mgc.go:1730 +0x96

goroutine 7 gp=0xc000244380 m=nil [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000094f38 sp=0xc000094f18 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc000094fc8 sp=0xc000094f38 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc000094fe0 sp=0xc000094fc8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc000094fe8 sp=0xc000094fe0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 8 gp=0xc000244540 m=nil [GC worker (idle)]:
runtime.gopark(0x2d34c62bbd3c?, 0x3?, 0x45?, 0xf7?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000095738 sp=0xc000095718 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc0000957c8 sp=0xc000095738 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc0000957e0 sp=0xc0000957c8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc0000957e8 sp=0xc0000957e0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 9 gp=0xc000244700 m=nil [GC worker (idle)]:
runtime.gopark(0x2d34c62c0d63?, 0x1?, 0x4c?, 0x8?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000095f38 sp=0xc000095f18 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc000095fc8 sp=0xc000095f38 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc000095fe0 sp=0xc000095fc8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc000095fe8 sp=0xc000095fe0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 10 gp=0xc0002448c0 m=nil [GC worker (idle)]:
runtime.gopark(0x11ac860?, 0x1?, 0xd9?, 0xa9?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc00008e738 sp=0xc00008e718 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc00008e7c8 sp=0xc00008e738 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc00008e7e0 sp=0xc00008e7c8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc00008e7e8 sp=0xc00008e7e0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 11 gp=0xc000244a80 m=nil [GC worker (idle)]:
runtime.gopark(0x2d34c62bbf59?, 0x3?, 0x82?, 0xcb?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc00008ef38 sp=0xc00008ef18 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc00008efc8 sp=0xc00008ef38 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc00008efe0 sp=0xc00008efc8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc00008efe8 sp=0xc00008efe0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 12 gp=0xc000244c40 m=nil [GC worker (idle)]:
runtime.gopark(0x11ac860?, 0x1?, 0x44?, 0xcd?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc00008f738 sp=0xc00008f718 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc00008f7c8 sp=0xc00008f738 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc00008f7e0 sp=0xc00008f7c8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc00008f7e8 sp=0xc00008f7e0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 13 gp=0xc000244e00 m=nil [GC worker (idle)]:
runtime.gopark(0x11ac860?, 0x3?, 0x53?, 0x0?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc00008ff38 sp=0xc00008ff18 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc00008ffc8 sp=0xc00008ff38 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc00008ffe0 sp=0xc00008ffc8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc00008ffe8 sp=0xc00008ffe0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 14 gp=0xc000244fc0 m=nil [GC worker (idle)]:
runtime.gopark(0x2d34c62b9af4?, 0x1?, 0x1b?, 0x77?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000090738 sp=0xc000090718 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc0000907c8 sp=0xc000090738 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc0000907e0 sp=0xc0000907c8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc0000907e8 sp=0xc0000907e0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 15 gp=0xc000245180 m=nil [GC worker (idle)]:
runtime.gopark(0x2d34c62b9981?, 0x3?, 0x36?, 0x9?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000090f38 sp=0xc000090f18 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc000090fc8 sp=0xc000090f38 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc000090fe0 sp=0xc000090fc8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc000090fe8 sp=0xc000090fe0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 16 gp=0xc000245340 m=nil [GC worker (idle)]:
runtime.gopark(0x2d34c62b970a?, 0x3?, 0x98?, 0x92?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000091738 sp=0xc000091718 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc0000917c8 sp=0xc000091738 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc0000917e0 sp=0xc0000917c8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc0000917e8 sp=0xc0000917e0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 18 gp=0xc000245500 m=nil [GC worker (idle)]:
runtime.gopark(0x11ac860?, 0x1?, 0xfe?, 0xe?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000091f38 sp=0xc000091f18 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc000091fc8 sp=0xc000091f38 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc000091fe0 sp=0xc000091fc8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc000091fe8 sp=0xc000091fe0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 19 gp=0xc0002456c0 m=nil [GC worker (idle)]:
runtime.gopark(0x2d34c62bcab3?, 0x3?, 0xe1?, 0x66?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000498738 sp=0xc000498718 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc0004987c8 sp=0xc000498738 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc0004987e0 sp=0xc0004987c8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc0004987e8 sp=0xc0004987e0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 20 gp=0xc000245880 m=nil [GC worker (idle)]:
runtime.gopark(0x2d34c62bfa53?, 0x3?, 0xc8?, 0x14?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000498f38 sp=0xc000498f18 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc000498fc8 sp=0xc000498f38 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc000498fe0 sp=0xc000498fc8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc000498fe8 sp=0xc000498fe0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 21 gp=0xc000245a40 m=nil [GC worker (idle)]:
runtime.gopark(0x2d34c62c0d81?, 0x1?, 0x6e?, 0xe9?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000499738 sp=0xc000499718 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc0004997c8 sp=0xc000499738 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc0004997e0 sp=0xc0004997c8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc0004997e8 sp=0xc0004997e0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 22 gp=0xc000245c00 m=nil [GC worker (idle)]:
runtime.gopark(0x2d34c62b8595?, 0x1?, 0xd7?, 0x7d?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000499f38 sp=0xc000499f18 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc000499fc8 sp=0xc000499f38 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc000499fe0 sp=0xc000499fc8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc000499fe8 sp=0xc000499fe0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 23 gp=0xc000245dc0 m=nil [GC worker (idle)]:
runtime.gopark(0x2d34c62b9a03?, 0x3?, 0xb5?, 0x4?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc00049a738 sp=0xc00049a718 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc00049a7c8 sp=0xc00049a738 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc00049a7e0 sp=0xc00049a7c8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc00049a7e8 sp=0xc00049a7e0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 24 gp=0xc00049c000 m=nil [GC worker (idle)]:
runtime.gopark(0x2d34c62b6f65?, 0x3?, 0x8e?, 0x61?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc00049af38 sp=0xc00049af18 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc00049afc8 sp=0xc00049af38 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc00049afe0 sp=0xc00049afc8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc00049afe8 sp=0xc00049afe0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 25 gp=0xc00049c1c0 m=nil [GC worker (idle)]:
runtime.gopark(0x2d34c62b9a49?, 0x3?, 0x5a?, 0x3e?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc00049b738 sp=0xc00049b718 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc00049b7c8 sp=0xc00049b738 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc00049b7e0 sp=0xc00049b7c8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc00049b7e8 sp=0xc00049b7e0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 26 gp=0xc00049c380 m=nil [GC worker (idle)]:
runtime.gopark(0x11ac860?, 0x3?, 0x98?, 0x76?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc00049bf38 sp=0xc00049bf18 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc00049bfc8 sp=0xc00049bf38 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc00049bfe0 sp=0xc00049bfc8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc00049bfe8 sp=0xc00049bfe0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 27 gp=0xc00049c540 m=nil [GC worker (idle)]:
runtime.gopark(0x2d34c62be636?, 0x3?, 0x4b?, 0x2f?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000494738 sp=0xc000494718 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc0004947c8 sp=0xc000494738 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc0004947e0 sp=0xc0004947c8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc0004947e8 sp=0xc0004947e0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 28 gp=0xc00049c700 m=nil [GC worker (idle)]:
runtime.gopark(0x2d34c62bb305?, 0x3?, 0x39?, 0xc6?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000494f38 sp=0xc000494f18 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc000494fc8 sp=0xc000494f38 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc000494fe0 sp=0xc000494fc8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc000494fe8 sp=0xc000494fe0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 29 gp=0xc00049c8c0 m=nil [GC worker (idle)]:
runtime.gopark(0x2d34c62b6eb1?, 0x3?, 0x51?, 0x38?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000495738 sp=0xc000495718 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc0004957c8 sp=0xc000495738 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc0004957e0 sp=0xc0004957c8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc0004957e8 sp=0xc0004957e0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 30 gp=0xc00049ca80 m=nil [GC worker (idle)]:
runtime.gopark(0x2d34c62bcdde?, 0x3?, 0xda?, 0x60?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000495f38 sp=0xc000495f18 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc000495fc8 sp=0xc000495f38 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc000495fe0 sp=0xc000495fc8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc000495fe8 sp=0xc000495fe0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105

goroutine 31 gp=0xc00049cc40 m=nil [GC worker (idle)]:
runtime.gopark(0x11ac860?, 0x1?, 0x1?, 0x52?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000496738 sp=0xc000496718 pc=0x470aae
runtime.gcBgMarkWorker(0xc00047d650)
        runtime/mgc.go:1363 +0xe9 fp=0xc0004967c8 sp=0xc000496738 pc=0x41e049
runtime.gcBgMarkStartWorkers.gowrap1()
        runtime/mgc.go:1279 +0x25 fp=0xc0004967e0 sp=0xc0004967c8 pc=0x41df25
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc0004967e8 sp=0xc0004967e0 pc=0x478741
created by runtime.gcBgMarkStartWorkers in goroutine 1
        runtime/mgc.go:1279 +0x105
task: Failed to run task "default": exit status 2
@artemklevtsov
Copy link
Author

artemklevtsov commented Dec 13, 2024

With 3.11.0 this example produce:

payload2_first: vvv
payload2_second: aaa
payload2_second: bbb

@artemklevtsov
Copy link
Author

An attempt to access a non-existent variable from a nested template also causes stack overflow in 3.12.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant