gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.39k stars 7.49k forks source link

jsonify of `&hugolib.pageState{}` with Multilingal mode yields stack overflow #11827

Closed ayanamizuta closed 7 months ago

ayanamizuta commented 10 months ago

Thank you for maintaining Hugo! I'd like to report a behavior that seems to be a bug.

What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.121.1-00b46fed8e47f7bb0a85d7cfc2d9f1356379b740 linux/amd64 BuildDate=2023-12-08T08:47:45Z VendorInfo=gohugoio

Does this issue reproduce with the latest release?

YES (with v0.121.1)

How to reproduce

directory structure

.
├── archetypes
│   └── default.md
├── assets
├── content
│   ├── en
│   │   └── about.md
│   └── ja
│       └── about.md
├── data
├── hugo.toml
├── i18n
├── layouts
│   ├── _default
│   │   └── baseof.html
│   └── index.html
├── static
└── themes

file contents

The following files are updated from hugo new site.

hugo.toml

baseURL = 'http://localhost:1313/'
languageCode = 'en-us'
title = 'My New Hugo Site'

[languages]
[languages.en]
contentDir = 'content/en'
[languages.ja]
contentDir = 'content/ja'

layouts/_default/baseof.html

<!DOCTYPE html>
<html>
<body>
    {{- block "main" . }}{{- end }}
</body>
</html>

layouts/index.html

{{ define "main" }}

{{ $test := index (where .Pages "Title" "ja") 0}}
{{$test | jsonify}}

{{end}}

content/ja/about.md

---
title: ja
---

content/en/about.md

---
title: en
---

Behavior

the hugo command crashes with the following log message

log (558 lines) ``` Start building sites … hugo v0.121.1-00b46fed8e47f7bb0a85d7cfc2d9f1356379b740 linux/amd64 BuildDate=2023-12-08T08:47:45Z VendorInfo=gohugoio WARN found no layout file for "html" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination. WARN found no layout file for "html" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination. WARN .Path when the page is backed by a file is deprecated. We plan to use Path for a canonical source path and you probably want to check the source is a file. To get the current behaviour, you can use a construct similar to the one below: {{ $path := "" }} {{ with .File }} {{ $path = .Path }} {{ else }} {{ $path = .Path }} {{ end }} runtime: goroutine stack exceeds 1000000000-byte limit runtime: sp=0xc023002470 stack=[0xc023002000, 0xc043002000] fatal error: stack overflow runtime stack: runtime.throw({0x263d474?, 0xc00053fe68?}) /usr/local/go/src/runtime/panic.go:1077 +0x5c fp=0xc00053fe18 sp=0xc00053fde8 pc=0x43ab5c runtime.newstack() /usr/local/go/src/runtime/stack.go:1107 +0x5ac fp=0xc00053ffc8 sp=0xc00053fe18 pc=0x45516c traceback: unexpected SPWRITE function runtime.morestack runtime.morestack() /usr/local/go/src/runtime/asm_amd64.s:593 +0x8f fp=0xc00053ffd0 sp=0xc00053ffc8 pc=0x46ebef goroutine 133 [running]: github.com/mitchellh/hashstructure.(*walker).visit(0xc023002868, {0x228d020?, 0xc0452014a0?, 0x194?}, 0x0) /root/project/gomodcache/github.com/mitchellh/hashstructure@v1.1.0/hashstructure.go:131 +0x15e5 fp=0xc023002480 sp=0xc023002478 pc=0x8cdcc5 github.com/mitchellh/hashstructure.(*walker).visit(0xc023002868, {0x21e54a0?, 0xc0451fe7c8?, 0x18?}, 0x0) /root/project/gomodcache/github.com/mitchellh/hashstructure@v1.1.0/hashstructure.go:368 +0x125d fp=0xc023002828 sp=0xc023002480 pc=0x8cd93d github.com/mitchellh/hashstructure.Hash({0x21e54a0, 0xc0451fe7c8}, 0x3?) /root/project/gomodcache/github.com/mitchellh/hashstructure@v1.1.0/hashstructure.go:108 +0x1c5 fp=0xc0230028c8 sp=0xc023002828 pc=0x8cc6a5 github.com/gohugoio/hugo/identity.HashUint64({0xc023002958?, 0x3?, 0x0?}) /root/project/hugo/identity/identityhash.go:47 +0x5a fp=0xc023002908 sp=0xc0230028c8 pc=0x8ce91a github.com/gohugoio/hugo/common/loggers.(*logOnceHandler).HandleLog(0xc0003693c8, 0xc000432120) /root/project/hugo/common/loggers/handlersmisc.go:88 +0x139 fp=0xc0230029a0 sp=0xc023002908 pc=0x8cfc39 github.com/gohugoio/hugo/common/loggers.(*stopHandler).HandleLog(0xc0000ba5a0?, 0xc000432120?) /root/project/hugo/common/loggers/handlersmisc.go:109 +0x5e fp=0xc0230029f8 sp=0xc0230029a0 pc=0x8cff3e github.com/bep/logg.(*logger).log(0xc000174360, 0xc0000ba5a0, {0x3c28dc0, 0xc045201470}) /root/project/gomodcache/github.com/bep/logg@v0.4.0/logger.go:154 +0x114 fp=0xc023002aa8 sp=0xc0230029f8 pc=0x528654 github.com/bep/logg.(*Entry).Logf(0xc0000ba5a0, {0xc0452254a0, 0x156}, {0x0, 0x0, 0x0}) /root/project/gomodcache/github.com/bep/logg@v0.4.0/entry.go:113 +0xbe fp=0xc023002ad8 sp=0xc023002aa8 pc=0x527a1e github.com/gohugoio/hugo/common/loggers.(*logAdapter).Warnln(0xc0009e6f80, {0xc0451c3f00?, 0x0?, 0x0?}) /root/project/hugo/common/loggers/logger.go:274 +0x44 fp=0xc023002b18 sp=0xc023002ad8 pc=0x8d2064 github.com/gohugoio/hugo/hugolib.(*pageMeta).Path(0xc000053680) /root/project/hugo/hugolib/page__meta.go:229 +0x88 fp=0xc023002b48 sp=0xc023002b18 pc=0x2002b08 github.com/gohugoio/hugo/hugolib.(*pageState).Path(0xc00049ca50?) :1 +0x32 fp=0xc023002b60 sp=0xc023002b48 pc=0x203f512 github.com/gohugoio/hugo/resources/page.MarshalPageToJSON({0x3c73cd8, 0xc000154100}) /root/project/hugo/resources/page/page_marshaljson.autogen.go:56 +0x41e fp=0xc0230033f0 sp=0xc023002b60 pc=0x1bad51e github.com/gohugoio/hugo/hugolib.(*pageState).MarshalJSON(0x25f96a0?) /root/project/hugo/hugolib/page.go:226 +0x1d fp=0xc023003410 sp=0xc0230033f0 pc=0x1ffb1dd encoding/json.marshalerEncoder(0xc045212600, {0x25f96a0?, 0xc000154100?, 0xc00014f840?}, {0xc8?, 0x98?}) /usr/local/go/src/encoding/json/encode.go:442 +0xd2 fp=0xc0230034c0 sp=0xc023003410 pc=0x7c5ff2 encoding/json.(*encodeState).reflectValue(0x25d7be0?, {0x25f96a0?, 0xc000154100?, 0xc045212600?}, {0x40?, 0x40?}) /usr/local/go/src/encoding/json/encode.go:323 +0x73 fp=0xc023003520 sp=0xc0230034c0 pc=0x7c55d3 encoding/json.interfaceEncoder(0xc045212600, {0x25d7be0?, 0xc0000d0a80?, 0x0?}, {0x25?, 0x0?}) /usr/local/go/src/encoding/json/encode.go:660 +0xba fp=0xc023003568 sp=0xc023003520 pc=0x7c7cfa encoding/json.arrayEncoder.encode({0xc023003618?}, 0xc045212600, {0x25bd020?, 0xc045226fa8?, 0xc045226f28?}, {0x87?, 0x37?}) /usr/local/go/src/encoding/json/encode.go:849 +0xd6 fp=0xc0230035e0 sp=0xc023003568 pc=0x7c99b6 encoding/json.arrayEncoder.encode-fm(0x7d55e6?, {0x25bd020?, 0xc045226fa8?, 0x5198c8?}, {0x40?, 0x78?}) :1 +0x3f fp=0xc023003620 sp=0xc0230035e0 pc=0x7d575f encoding/json.sliceEncoder.encode({0x0?}, 0xc045212600, {0x25bd020?, 0xc045226fa8?, 0xc045226ec0?}, {0x12?, 0x0?}) /usr/local/go/src/encoding/json/encode.go:822 +0x30f fp=0xc023003740 sp=0xc023003620 pc=0x7c94ef encoding/json.sliceEncoder.encode-fm(0x25e8340?, {0x25bd020?, 0xc045226fa8?, 0x0?}, {0x0?, 0x0?}) :1 +0x3f fp=0xc023003780 sp=0xc023003740 pc=0x7d581f encoding/json.structEncoder.encode({{{0xc000ac4000, 0x30, 0x47}, 0xc000abd8c0, 0xc000abd8f0}}, 0xc045212600, {0x25e8340?, 0xc045226c00?, 0x4?}, {0x0, ...}) /usr/local/go/src/encoding/json/encode.go:706 +0x21e fp=0xc023003830 sp=0xc023003780 pc=0x7c80de encoding/json.structEncoder.encode-fm(0x21e73a0?, {0x25e8340?, 0xc045226c00?, 0x4?}, {0xf8?, 0xbf?}) :1 +0x65 fp=0xc023003890 sp=0xc023003830 pc=0x7d59c5 encoding/json.ptrEncoder.encode({0x4?}, 0xc045212600, {0x21e73a0?, 0xc045226c00?, 0x21e73a0?}, {0x8?, 0x84?}) /usr/local/go/src/encoding/json/encode.go:878 +0x20f fp=0xc023003958 sp=0xc023003890 pc=0x7c9d0f encoding/json.ptrEncoder.encode-fm(0x21e73a0?, {0x21e73a0?, 0xc045226c00?, 0x2609068?}, {0x4?, 0x0?}) :1 +0x3f fp=0xc023003998 sp=0xc023003958 pc=0x7d569f encoding/json.(*encodeState).reflectValue(0xc023003a30?, {0x21e73a0?, 0xc045226c00?, 0x2622c7d?}, {0x60?, 0xf8?}) /usr/local/go/src/encoding/json/encode.go:323 +0x73 fp=0xc0230039f8 sp=0xc023003998 pc=0x7c55d3 encoding/json.(*encodeState).marshal(0x7f284e7fd108?, {0x21e73a0?, 0xc045226c00?}, {0xa0?, 0x73?}) /usr/local/go/src/encoding/json/encode.go:295 +0xb9 fp=0xc023003a70 sp=0xc0230039f8 pc=0x7c5199 encoding/json.Marshal({0x21e73a0, 0xc045226c00}) /usr/local/go/src/encoding/json/encode.go:162 +0xd0 fp=0xc023003b30 sp=0xc023003a70 pc=0x7c4a90 github.com/gohugoio/hugo/resources/page.MarshalPageToJSON({0x3c73cd8, 0xc000154100}) /root/project/hugo/resources/page/page_marshaljson.autogen.go:181 +0xf05 fp=0xc0230043c0 sp=0xc023003b30 pc=0x1bae005 github.com/gohugoio/hugo/hugolib.(*pageState).MarshalJSON(0x25f96a0?) /root/project/hugo/hugolib/page.go:226 +0x1d fp=0xc0230043e0 sp=0xc0230043c0 pc=0x1ffb1dd encoding/json.marshalerEncoder(0xc045212580, {0x25f96a0?, 0xc000154100?, 0xc00014f840?}, {0xc8?, 0x98?}) /usr/local/go/src/encoding/json/encode.go:442 +0xd2 fp=0xc023004490 sp=0xc0230043e0 pc=0x7c5ff2 encoding/json.(*encodeState).reflectValue(0x25d7be0?, {0x25f96a0?, 0xc000154100?, 0xc045212580?}, {0x40?, 0x40?}) /usr/local/go/src/encoding/json/encode.go:323 +0x73 fp=0xc0230044f0 sp=0xc023004490 pc=0x7c55d3 encoding/json.interfaceEncoder(0xc045212580, {0x25d7be0?, 0xc0000d0a80?, 0x0?}, {0x25?, 0x0?}) /usr/local/go/src/encoding/json/encode.go:660 +0xba fp=0xc023004538 sp=0xc0230044f0 pc=0x7c7cfa encoding/json.arrayEncoder.encode({0xc0230045e8?}, 0xc045212580, {0x25bd020?, 0xc045226ba8?, 0xc045226b28?}, {0x87?, 0x37?}) /usr/local/go/src/encoding/json/encode.go:849 +0xd6 fp=0xc0230045b0 sp=0xc023004538 pc=0x7c99b6 encoding/json.arrayEncoder.encode-fm(0x7d55e6?, {0x25bd020?, 0xc045226ba8?, 0x5198c8?}, {0x40?, 0x78?}) :1 +0x3f fp=0xc0230045f0 sp=0xc0230045b0 pc=0x7d575f encoding/json.sliceEncoder.encode({0x0?}, 0xc045212580, {0x25bd020?, 0xc045226ba8?, 0xc045226ac0?}, {0x12?, 0x0?}) /usr/local/go/src/encoding/json/encode.go:822 +0x30f fp=0xc023004710 sp=0xc0230045f0 pc=0x7c94ef encoding/json.sliceEncoder.encode-fm(0x25e8340?, {0x25bd020?, 0xc045226ba8?, 0x0?}, {0x0?, 0x0?}) :1 +0x3f fp=0xc023004750 sp=0xc023004710 pc=0x7d581f encoding/json.structEncoder.encode({{{0xc000ac4000, 0x30, 0x47}, 0xc000abd8c0, 0xc000abd8f0}}, 0xc045212580, {0x25e8340?, 0xc045226800?, 0x4?}, {0x0, ...}) /usr/local/go/src/encoding/json/encode.go:706 +0x21e fp=0xc023004800 sp=0xc023004750 pc=0x7c80de encoding/json.structEncoder.encode-fm(0x21e73a0?, {0x25e8340?, 0xc045226800?, 0x4?}, {0xf8?, 0xbf?}) :1 +0x65 fp=0xc023004860 sp=0xc023004800 pc=0x7d59c5 encoding/json.ptrEncoder.encode({0x4?}, 0xc045212580, {0x21e73a0?, 0xc045226800?, 0x21e73a0?}, {0x8?, 0x84?}) /usr/local/go/src/encoding/json/encode.go:878 +0x20f fp=0xc023004928 sp=0xc023004860 pc=0x7c9d0f encoding/json.ptrEncoder.encode-fm(0x21e73a0?, {0x21e73a0?, 0xc045226800?, 0x2609068?}, {0x4?, 0x0?}) :1 +0x3f fp=0xc023004968 sp=0xc023004928 pc=0x7d569f encoding/json.(*encodeState).reflectValue(0xc023004a00?, {0x21e73a0?, 0xc045226800?, 0x2622c7d?}, {0x60?, 0xf8?}) /usr/local/go/src/encoding/json/encode.go:323 +0x73 fp=0xc0230049c8 sp=0xc023004968 pc=0x7c55d3 encoding/json.(*encodeState).marshal(0x7f284e7fd108?, {0x21e73a0?, 0xc045226800?}, {0x80?, 0x73?}) /usr/local/go/src/encoding/json/encode.go:295 +0xb9 fp=0xc023004a40 sp=0xc0230049c8 pc=0x7c5199 encoding/json.Marshal({0x21e73a0, 0xc045226800}) /usr/local/go/src/encoding/json/encode.go:162 +0xd0 fp=0xc023004b00 sp=0xc023004a40 pc=0x7c4a90 github.com/gohugoio/hugo/resources/page.MarshalPageToJSON({0x3c73cd8, 0xc000154100}) /root/project/hugo/resources/page/page_marshaljson.autogen.go:181 +0xf05 fp=0xc023005390 sp=0xc023004b00 pc=0x1bae005 github.com/gohugoio/hugo/hugolib.(*pageState).MarshalJSON(0x25f96a0?) /root/project/hugo/hugolib/page.go:226 +0x1d fp=0xc0230053b0 sp=0xc023005390 pc=0x1ffb1dd encoding/json.marshalerEncoder(0xc045212500, {0x25f96a0?, 0xc000154100?, 0xc00014f840?}, {0xc8?, 0x98?}) /usr/local/go/src/encoding/json/encode.go:442 +0xd2 fp=0xc023005460 sp=0xc0230053b0 pc=0x7c5ff2 encoding/json.(*encodeState).reflectValue(0x25d7be0?, {0x25f96a0?, 0xc000154100?, 0xc045212500?}, {0x40?, 0x40?}) /usr/local/go/src/encoding/json/encode.go:323 +0x73 fp=0xc0230054c0 sp=0xc023005460 pc=0x7c55d3 encoding/json.interfaceEncoder(0xc045212500, {0x25d7be0?, 0xc0000d0a80?, 0x0?}, {0x25?, 0x0?}) /usr/local/go/src/encoding/json/encode.go:660 +0xba fp=0xc023005508 sp=0xc0230054c0 pc=0x7c7cfa encoding/json.arrayEncoder.encode({0xc0230055b8?}, 0xc045212500, {0x25bd020?, 0xc0452267a8?, 0xc045226728?}, {0x87?, 0x37?}) /usr/local/go/src/encoding/json/encode.go:849 +0xd6 fp=0xc023005580 sp=0xc023005508 pc=0x7c99b6 encoding/json.arrayEncoder.encode-fm(0x7d55e6?, {0x25bd020?, 0xc0452267a8?, 0x5198c8?}, {0x40?, 0x78?}) :1 +0x3f fp=0xc0230055c0 sp=0xc023005580 pc=0x7d575f ...2121909 frames elided... encoding/json.ptrEncoder.encode-fm(0x21e73a0?, {0x21e73a0?, 0xc000181400?, 0x0?}, {0x0?, 0x0?}) :1 +0x3f fp=0xc042ffe728 sp=0xc042ffe6e8 pc=0x7d569f encoding/json.(*encodeState).reflectValue(0xc000ad47c0?, {0x21e73a0?, 0xc000181400?, 0x0?}, {0x60?, 0xf8?}) /usr/local/go/src/encoding/json/encode.go:323 +0x73 fp=0xc042ffe788 sp=0xc042ffe728 pc=0x7c55d3 encoding/json.(*encodeState).marshal(0x7f284e7fed28?, {0x21e73a0?, 0xc000181400?}, {0x0?, 0x11?}) /usr/local/go/src/encoding/json/encode.go:295 +0xb9 fp=0xc042ffe800 sp=0xc042ffe788 pc=0x7c5199 encoding/json.Marshal({0x21e73a0, 0xc000181400}) /usr/local/go/src/encoding/json/encode.go:162 +0xd0 fp=0xc042ffe8c0 sp=0xc042ffe800 pc=0x7c4a90 github.com/gohugoio/hugo/resources/page.MarshalPageToJSON({0x3c73cd8, 0xc000154100}) /root/project/hugo/resources/page/page_marshaljson.autogen.go:181 +0xf05 fp=0xc042fff150 sp=0xc042ffe8c0 pc=0x1bae005 github.com/gohugoio/hugo/hugolib.(*pageState).MarshalJSON(0x25f96a0?) /root/project/hugo/hugolib/page.go:226 +0x1d fp=0xc042fff170 sp=0xc042fff150 pc=0x1ffb1dd encoding/json.marshalerEncoder(0xc000ab9200, {0x25f96a0?, 0xc000154100?, 0xc00014f840?}, {0xc8?, 0x98?}) /usr/local/go/src/encoding/json/encode.go:442 +0xd2 fp=0xc042fff220 sp=0xc042fff170 pc=0x7c5ff2 encoding/json.(*encodeState).reflectValue(0x25d7be0?, {0x25f96a0?, 0xc000154100?, 0xc000ab9200?}, {0x40?, 0x40?}) /usr/local/go/src/encoding/json/encode.go:323 +0x73 fp=0xc042fff280 sp=0xc042fff220 pc=0x7c55d3 encoding/json.interfaceEncoder(0xc000ab9200, {0x25d7be0?, 0xc0000d0a80?, 0x0?}, {0x25?, 0x0?}) /usr/local/go/src/encoding/json/encode.go:660 +0xba fp=0xc042fff2c8 sp=0xc042fff280 pc=0x7c7cfa encoding/json.arrayEncoder.encode({0xc000ad5378?}, 0xc000ab9200, {0x25bd020?, 0xc0001813a8?, 0xc000181328?}, {0x87?, 0x37?}) /usr/local/go/src/encoding/json/encode.go:849 +0xd6 fp=0xc042fff340 sp=0xc042fff2c8 pc=0x7c99b6 encoding/json.arrayEncoder.encode-fm(0x7d55e6?, {0x25bd020?, 0xc0001813a8?, 0x5198c8?}, {0x40?, 0x78?}) :1 +0x3f fp=0xc042fff380 sp=0xc042fff340 pc=0x7d575f encoding/json.sliceEncoder.encode({0x0?}, 0xc000ab9200, {0x25bd020?, 0xc0001813a8?, 0xc0001812c0?}, {0x12?, 0x0?}) /usr/local/go/src/encoding/json/encode.go:822 +0x30f fp=0xc042fff4a0 sp=0xc042fff380 pc=0x7c94ef encoding/json.sliceEncoder.encode-fm(0x25e8340?, {0x25bd020?, 0xc0001813a8?, 0x30?}, {0x68?, 0x55?}) :1 +0x3f fp=0xc042fff4e0 sp=0xc042fff4a0 pc=0x7d581f encoding/json.structEncoder.encode({{{0xc000ac4000, 0x30, 0x47}, 0xc000abd8c0, 0xc000abd8f0}}, 0xc000ab9200, {0x25e8340?, 0xc000181000?, 0x48bcc5?}, {0x0, ...}) /usr/local/go/src/encoding/json/encode.go:706 +0x21e fp=0xc042fff590 sp=0xc042fff4e0 pc=0x7c80de encoding/json.structEncoder.encode-fm(0x21e73a0?, {0x25e8340?, 0xc000181000?, 0xc000ad5670?}, {0xb6?, 0xbd?}) :1 +0x65 fp=0xc042fff5f0 sp=0xc042fff590 pc=0x7d59c5 encoding/json.ptrEncoder.encode({0xc000a59190?}, 0xc000ab9200, {0x21e73a0?, 0xc000181000?, 0x21e73a0?}, {0x48?, 0x97?}) /usr/local/go/src/encoding/json/encode.go:878 +0x20f fp=0xc042fff6b8 sp=0xc042fff5f0 pc=0x7c9d0f encoding/json.ptrEncoder.encode-fm(0x21e73a0?, {0x21e73a0?, 0xc000181000?, 0xc000ab9200?}, {0x40?, 0x0?}) :1 +0x3f fp=0xc042fff6f8 sp=0xc042fff6b8 pc=0x7d569f encoding/json.(*encodeState).reflectValue(0xc000ab9200?, {0x21e73a0?, 0xc000181000?, 0x410745?}, {0x38?, 0x0?}) /usr/local/go/src/encoding/json/encode.go:323 +0x73 fp=0xc042fff758 sp=0xc042fff6f8 pc=0x7c55d3 encoding/json.(*encodeState).marshal(0x7f284e7fed28?, {0x21e73a0?, 0xc000181000?}, {0xe0?, 0x10?}) /usr/local/go/src/encoding/json/encode.go:295 +0xb9 fp=0xc042fff7d0 sp=0xc042fff758 pc=0x7c5199 encoding/json.Marshal({0x21e73a0, 0xc000181000}) /usr/local/go/src/encoding/json/encode.go:162 +0xd0 fp=0xc042fff890 sp=0xc042fff7d0 pc=0x7c4a90 github.com/gohugoio/hugo/resources/page.MarshalPageToJSON({0x3c73cd8, 0xc00014a240}) /root/project/hugo/resources/page/page_marshaljson.autogen.go:181 +0xf05 fp=0xc043000120 sp=0xc042fff890 pc=0x1bae005 github.com/gohugoio/hugo/hugolib.(*pageState).MarshalJSON(0x25f96a0?) /root/project/hugo/hugolib/page.go:226 +0x1d fp=0xc043000140 sp=0xc043000120 pc=0x1ffb1dd encoding/json.marshalerEncoder(0xc000380b80, {0x25f96a0?, 0xc00014a240?, 0x22102c0?}, {0x50?, 0xa2?}) /usr/local/go/src/encoding/json/encode.go:442 +0xd2 fp=0xc0430001f0 sp=0xc043000140 pc=0x7c5ff2 encoding/json.(*encodeState).reflectValue(0xc000a3a288?, {0x25f96a0?, 0xc00014a240?, 0xc000ac0010?}, {0x60?, 0xf8?}) /usr/local/go/src/encoding/json/encode.go:323 +0x73 fp=0xc043000250 sp=0xc0430001f0 pc=0x7c55d3 encoding/json.(*encodeState).marshal(0x0?, {0x25f96a0?, 0xc00014a240?}, {0xa0?, 0xce?}) /usr/local/go/src/encoding/json/encode.go:295 +0xb9 fp=0xc0430002c8 sp=0xc043000250 pc=0x7c5199 encoding/json.(*Encoder).Encode(0xc0430003e8, {0x25f96a0, 0xc00014a240}) /usr/local/go/src/encoding/json/stream.go:209 +0xdf fp=0xc043000370 sp=0xc0430002c8 pc=0x7d1dff github.com/gohugoio/hugo/tpl/encoding.(*Namespace).Jsonify(0x1?, {0xc000ac0090, 0x1, 0x0?}) /root/project/hugo/tpl/encoding/encoding.go:100 +0x246 fp=0xc043000460 sp=0xc043000370 pc=0x1cdad46 github.com/gohugoio/hugo/tpl/encoding.(*Namespace).Jsonify-fm({0xc000ac0090?, 0xc000c2ab40?, 0x2?}) :1 +0x31 fp=0xc043000490 sp=0xc043000460 pc=0x1cdb471 runtime.call32(0xc000890d80, 0xc000c1b670, 0x0, 0x0, 0x0, 0x18, 0xc0430009f0) /usr/local/go/src/runtime/asm_amd64.s:748 +0x43 fp=0xc0430004c0 sp=0xc043000490 pc=0x46f083 runtime.reflectcall(0x21e54a0?, 0xc0005106c0?, 0x4?, 0x2655a2f?, 0x0?, 0x12?, 0x21e54a0?) :1 +0x36 fp=0xc043000500 sp=0xc0430004c0 pc=0x473316 reflect.Value.call({0x2295940?, 0xc000c1b670?, 0x1b80025?}, {0x2609398, 0x4}, {0xc0005106a8, 0x1, 0x0?}) /usr/local/go/src/reflect/value.go:596 +0xce7 fp=0xc043000b10 sp=0xc043000500 pc=0x4a4d67 reflect.Value.Call({0x2295940?, 0xc000c1b670?, 0x1b7bef7?}, {0xc0005106a8?, 0x3c5c5b0?, 0x228d020?}) /usr/local/go/src/reflect/value.go:380 +0xb9 fp=0xc043000b88 sp=0xc043000b10 pc=0x4a3e39 github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.safeCall({0x2295940?, 0xc000c1b670?, 0xc00014a240?}, {0xc0005106a8?, 0x3c5c5b0?, 0x228d020?}) /root/project/hugo/tpl/internal/go_templates/texttemplate/funcs.go:367 +0x8c fp=0xc043000c28 sp=0xc043000b88 pc=0x1b7fdac github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCall(0xc043001280, {0x25f96a0?, 0xc00014a200?, 0x10?}, {0x2295940?, 0xc000c1b670?, 0x1b7b985?}, 0x0, {0x3c4a758, 0xc000abc780}, ...) /root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:369 +0xb0d fp=0xc043000d88 sp=0xc043000c28 pc=0x1b860ed github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalFunction(0xc000a3b280, {0x25f96a0?, 0xc00014a200?, 0x1?}, 0x1?, {0x3c4a758, 0xc000abc780}, {0xc000aa9f10, 0x1, 0x1}, ...) /root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:163 +0x36e fp=0xc043000ee0 sp=0xc043000d88 pc=0x1b843ce github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalCommand(0xc000a3b280, {0x25f96a0?, 0xc00014a200?, 0xc000a3b550?}, 0x23d65e0?, {0x25f96a0?, 0xc00014a240?, 0x1b7af9e?}) /root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:511 +0x1b1 fp=0xc043000fe0 sp=0xc043000ee0 pc=0x1b7aeb1 github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).evalPipeline(0xc043001280, {0x25f96a0?, 0xc00014a200?, 0x0?}, 0xc000abb020) /root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:480 +0x125 fp=0xc0430010e0 sp=0xc043000fe0 pc=0x1b7a845 github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc043001280, {0x25f96a0?, 0xc00014a200?, 0x30?}, {0x3c4a5a8?, 0xc000abc7e0}) /root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:268 +0x8e fp=0xc043001180 sp=0xc0430010e0 pc=0x1b7938e github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc043001280, {0x25f96a0?, 0xc00014a200?, 0x0?}, {0x3c4a3b0?, 0xc000abc540?}) /root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:281 +0x2aa fp=0xc043001220 sp=0xc043001180 pc=0x1b795aa github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walkTemplate(0xc000a3b550, {0x25f96a0?, 0xc00014a200?, 0x0?}, 0xc000aaf440) /root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:462 +0x25e fp=0xc043001308 sp=0xc043001220 pc=0x1b7a6be github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc000a3b550, {0x25f96a0?, 0xc00014a200?, 0x0?}, {0x3c4a710?, 0xc000aaf440?}) /root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:286 +0x1b2 fp=0xc0430013a8 sp=0xc043001308 pc=0x1b794b2 github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*state).walk(0xc043001550, {0x25f96a0?, 0xc00014a200?, 0x30?}, {0x3c4a3b0?, 0xc000ab1d10?}) /root/project/hugo/tpl/internal/go_templates/texttemplate/exec.go:281 +0x2aa fp=0xc043001448 sp=0xc0430013a8 pc=0x1b795aa github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*Template).executeWithState(0x2?, 0x0?, {0x25f96a0?, 0xc00014a200?, 0x2609068?}) /root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:119 +0x125 fp=0xc0430014e8 sp=0xc043001448 pc=0x1b83f65 github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate.(*executer).ExecuteWithContext(0xc0006047f0, {0x3c458c0, 0xc000abc9c0}, {0x7f2807949140?, 0xc0008b93b0}, {0x3c28920?, 0xc0008df0b0}, {0x25f96a0, 0xc00014a200}) /root/project/hugo/tpl/internal/go_templates/texttemplate/hugo_template.go:106 +0x2d6 fp=0xc0430015d8 sp=0xc0430014e8 pc=0x1b83d76 github.com/gohugoio/hugo/tpl/tplimpl.(*templateExec).ExecuteWithContext(0xc000a64300, {0x3c458c0, 0xc000abc9c0}, {0x3c36510?, 0xc0008b93b0}, {0x3c28920, 0xc0008df0b0}, {0x25f96a0, 0xc00014a200}) /root/project/hugo/tpl/tplimpl/template.go:264 +0x64c fp=0xc0430017b8 sp=0xc0430015d8 pc=0x1fcb92c github.com/gohugoio/hugo/hugolib.(*Site).renderForTemplate(0x25f96a0?, {0x3c458c0?, 0xc000abc9c0?}, {0x2609164, 0x4}, {0x2609068?, 0x0?}, {0x25f96a0?, 0xc00014a200?}, {0x3c28920, ...}, ...) /root/project/hugo/hugolib/site.go:1116 +0xa3 fp=0xc043001840 sp=0xc0430017b8 pc=0x2025b43 github.com/gohugoio/hugo/hugolib.(*Site).renderAndWritePage(0xc0009a5b80, 0xc000a4c290, {0x0?, 0xc00099c390?}, {0xc0005267e0, 0xe}, 0xc00014a200, {0x3c36510, 0xc0008b93b0}) /root/project/hugo/hugolib/site.go:1032 +0x247 fp=0xc043001e20 sp=0xc043001840 pc=0x2025027 github.com/gohugoio/hugo/hugolib.pageRenderer(0x2210300?, 0xc0009a5b80, 0x0?, 0x1b8?, 0xc00099dbd0?) /root/project/hugo/hugolib/site_render.go:142 +0x285 fp=0xc043001fa8 sp=0xc043001e20 pc=0x2029965 github.com/gohugoio/hugo/hugolib.(*Site).renderPages.func3() /root/project/hugo/hugolib/site_render.go:77 +0x30 fp=0xc043001fe0 sp=0xc043001fa8 pc=0x2029650 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc043001fe8 sp=0xc043001fe0 pc=0x470901 created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages in goroutine 11 /root/project/hugo/hugolib/site_render.go:77 +0x107 goroutine 1 [semacquire]: runtime.gopark(0x2?, 0xc00087f750?, 0x0?, 0xe0?, 0x10?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc0013676f8 sp=0xc0013676d8 pc=0x43d9ae runtime.goparkunlock(...) /usr/local/go/src/runtime/proc.go:404 runtime.semacquire1(0xc000154c90, 0x18?, 0x1, 0x0, 0xb?) /usr/local/go/src/runtime/sema.go:160 +0x218 fp=0xc001367760 sp=0xc0013676f8 pc=0x44ee98 sync.runtime_Semacquire(0xc000369398?) /usr/local/go/src/runtime/sema.go:62 +0x25 fp=0xc001367798 sp=0xc001367760 pc=0x46c7a5 sync.(*WaitGroup).Wait(0xc000959c08?) /usr/local/go/src/sync/waitgroup.go:116 +0x48 fp=0xc0013677c0 sp=0xc001367798 pc=0x48e608 golang.org/x/sync/errgroup.(*Group).Wait(0xc000154c80) /root/project/gomodcache/golang.org/x/sync@v0.5.0/errgroup/errgroup.go:53 +0x25 fp=0xc0013677e0 sp=0xc0013677c0 pc=0x1bab2a5 github.com/gohugoio/hugo/commands.(*hugoBuilder).fullBuild(0xc000959c00, 0x0) /root/project/hugo/commands/hugobuilder.go:569 +0x338 fp=0xc001367898 sp=0xc0013677e0 pc=0x20cb2b8 github.com/gohugoio/hugo/commands.(*hugoBuilder).build(0xc000959c00) /root/project/hugo/commands/hugobuilder.go:409 +0x69 fp=0xc0013678f0 sp=0xc001367898 pc=0x20ca629 github.com/gohugoio/hugo/commands.(*rootCommand).Run.func1(0xc000959c00?, 0x0?) /root/project/hugo/commands/commandeer.go:344 +0x92 fp=0xc001367958 sp=0xc0013678f0 pc=0x20c0ab2 github.com/gohugoio/hugo/commands.(*rootCommand).Run(0xc00095cf00, {0x0?, 0x0?}, 0x0?, {0x0?, 0x0?, 0x0?}) /root/project/hugo/commands/commandeer.go:346 +0x2d7 fp=0xc001367ab8 sp=0xc001367958 pc=0x20c0577 github.com/bep/simplecobra.(*Commandeer).compile.func1(0xc000221e00?, {0x4f74620?, 0x4?, 0x2609030?}) /root/project/gomodcache/github.com/bep/simplecobra@v0.4.0/simplecobra.go:113 +0x4c fp=0xc001367b10 sp=0xc001367ab8 pc=0x7bd1cc github.com/spf13/cobra.(*Command).execute(0xc000005b00, {0xc00019c080, 0x0, 0x0}) /root/project/gomodcache/github.com/spf13/cobra@v1.8.0/command.go:983 +0xabc fp=0xc001367cb0 sp=0xc001367b10 pc=0x7af03c github.com/spf13/cobra.(*Command).ExecuteC(0xc000005b00) /root/project/gomodcache/github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff fp=0xc001367d88 sp=0xc001367cb0 pc=0x7af8ff github.com/spf13/cobra.(*Command).ExecuteContextC(...) /root/project/gomodcache/github.com/spf13/cobra@v1.8.0/command.go:1048 github.com/bep/simplecobra.(*Exec).Execute(0xc000580cf0, {0x3c45818?, 0x4f74620?}, {0xc00019c080?, 0x100098670?, 0x0?}) /root/project/gomodcache/github.com/bep/simplecobra@v0.4.0/simplecobra.go:155 +0xd4 fp=0xc001367e10 sp=0xc001367d88 pc=0x7bd334 github.com/gohugoio/hugo/commands.Execute({0xc00019c080, 0x0, 0x0}) /root/project/hugo/commands/commandeer.go:65 +0x2f9 fp=0xc001367ef8 sp=0xc001367e10 pc=0x20bed19 main.main() /root/project/hugo/main.go:25 +0x56 fp=0xc001367f40 sp=0xc001367ef8 pc=0x20e6356 runtime.main() /usr/local/go/src/runtime/proc.go:267 +0x2bb fp=0xc001367fe0 sp=0xc001367f40 pc=0x43d53b runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc001367fe8 sp=0xc001367fe0 pc=0x470901 goroutine 2 [force gc (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc000098fa8 sp=0xc000098f88 pc=0x43d9ae runtime.goparkunlock(...) /usr/local/go/src/runtime/proc.go:404 runtime.forcegchelper() /usr/local/go/src/runtime/proc.go:322 +0xb3 fp=0xc000098fe0 sp=0xc000098fa8 pc=0x43d813 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000098fe8 sp=0xc000098fe0 pc=0x470901 created by runtime.init.6 in goroutine 1 /usr/local/go/src/runtime/proc.go:310 +0x1a goroutine 3 [GC sweep wait]: runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc000099778 sp=0xc000099758 pc=0x43d9ae runtime.goparkunlock(...) /usr/local/go/src/runtime/proc.go:404 runtime.bgsweep(0x0?) /usr/local/go/src/runtime/mgcsweep.go:321 +0xdf fp=0xc0000997c8 sp=0xc000099778 pc=0x427e7f runtime.gcenable.func1() /usr/local/go/src/runtime/mgc.go:200 +0x25 fp=0xc0000997e0 sp=0xc0000997c8 pc=0x41cfe5 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0000997e8 sp=0xc0000997e0 pc=0x470901 created by runtime.gcenable in goroutine 1 /usr/local/go/src/runtime/mgc.go:200 +0x66 goroutine 4 [GC scavenge wait]: runtime.gopark(0x331fb7?, 0x3b9aca00?, 0x0?, 0x0?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc000099f70 sp=0xc000099f50 pc=0x43d9ae runtime.goparkunlock(...) /usr/local/go/src/runtime/proc.go:404 runtime.(*scavengerState).park(0x4f3a5a0) /usr/local/go/src/runtime/mgcscavenge.go:425 +0x49 fp=0xc000099fa0 sp=0xc000099f70 pc=0x425709 runtime.bgscavenge(0x0?) /usr/local/go/src/runtime/mgcscavenge.go:658 +0x59 fp=0xc000099fc8 sp=0xc000099fa0 pc=0x425cb9 runtime.gcenable.func2() /usr/local/go/src/runtime/mgc.go:201 +0x25 fp=0xc000099fe0 sp=0xc000099fc8 pc=0x41cf85 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000099fe8 sp=0xc000099fe0 pc=0x470901 created by runtime.gcenable in goroutine 1 /usr/local/go/src/runtime/mgc.go:201 +0xa5 goroutine 17 [finalizer wait]: runtime.gopark(0x0?, 0x400000?, 0x70?, 0x86?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc000098620 sp=0xc000098600 pc=0x43d9ae runtime.runfinq() /usr/local/go/src/runtime/mfinal.go:193 +0x107 fp=0xc0000987e0 sp=0xc000098620 pc=0x41c007 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0000987e8 sp=0xc0000987e0 pc=0x470901 created by runtime.createfing in goroutine 1 /usr/local/go/src/runtime/mfinal.go:163 +0x3d goroutine 18 [GC worker (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc000094750 sp=0xc000094730 pc=0x43d9ae runtime.gcBgMarkWorker() /usr/local/go/src/runtime/mgc.go:1295 +0xe5 fp=0xc0000947e0 sp=0xc000094750 pc=0x41eb65 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0000947e8 sp=0xc0000947e0 pc=0x470901 created by runtime.gcBgMarkStartWorkers in goroutine 1 /usr/local/go/src/runtime/mgc.go:1219 +0x1c goroutine 19 [GC worker (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc000094f50 sp=0xc000094f30 pc=0x43d9ae runtime.gcBgMarkWorker() /usr/local/go/src/runtime/mgc.go:1295 +0xe5 fp=0xc000094fe0 sp=0xc000094f50 pc=0x41eb65 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000094fe8 sp=0xc000094fe0 pc=0x470901 created by runtime.gcBgMarkStartWorkers in goroutine 1 /usr/local/go/src/runtime/mgc.go:1219 +0x1c goroutine 20 [GC worker (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc000095750 sp=0xc000095730 pc=0x43d9ae runtime.gcBgMarkWorker() /usr/local/go/src/runtime/mgc.go:1295 +0xe5 fp=0xc0000957e0 sp=0xc000095750 pc=0x41eb65 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0000957e8 sp=0xc0000957e0 pc=0x470901 created by runtime.gcBgMarkStartWorkers in goroutine 1 /usr/local/go/src/runtime/mgc.go:1219 +0x1c goroutine 33 [GC worker (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc000508750 sp=0xc000508730 pc=0x43d9ae runtime.gcBgMarkWorker() /usr/local/go/src/runtime/mgc.go:1295 +0xe5 fp=0xc0005087e0 sp=0xc000508750 pc=0x41eb65 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0005087e8 sp=0xc0005087e0 pc=0x470901 created by runtime.gcBgMarkStartWorkers in goroutine 1 /usr/local/go/src/runtime/mgc.go:1219 +0x1c goroutine 49 [GC worker (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc000504750 sp=0xc000504730 pc=0x43d9ae runtime.gcBgMarkWorker() /usr/local/go/src/runtime/mgc.go:1295 +0xe5 fp=0xc0005047e0 sp=0xc000504750 pc=0x41eb65 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0005047e8 sp=0xc0005047e0 pc=0x470901 created by runtime.gcBgMarkStartWorkers in goroutine 1 /usr/local/go/src/runtime/mgc.go:1219 +0x1c goroutine 50 [GC worker (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc000504f50 sp=0xc000504f30 pc=0x43d9ae runtime.gcBgMarkWorker() /usr/local/go/src/runtime/mgc.go:1295 +0xe5 fp=0xc000504fe0 sp=0xc000504f50 pc=0x41eb65 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000504fe8 sp=0xc000504fe0 pc=0x470901 created by runtime.gcBgMarkStartWorkers in goroutine 1 /usr/local/go/src/runtime/mgc.go:1219 +0x1c goroutine 34 [GC worker (idle)]: runtime.gopark(0x1cfb45ca150db?, 0x0?, 0x0?, 0x0?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc000508f50 sp=0xc000508f30 pc=0x43d9ae runtime.gcBgMarkWorker() /usr/local/go/src/runtime/mgc.go:1295 +0xe5 fp=0xc000508fe0 sp=0xc000508f50 pc=0x41eb65 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000508fe8 sp=0xc000508fe0 pc=0x470901 created by runtime.gcBgMarkStartWorkers in goroutine 1 /usr/local/go/src/runtime/mgc.go:1219 +0x1c goroutine 5 [GC worker (idle)]: runtime.gopark(0x1cfb45c9b4202?, 0x0?, 0x0?, 0x0?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc00009a750 sp=0xc00009a730 pc=0x43d9ae runtime.gcBgMarkWorker() /usr/local/go/src/runtime/mgc.go:1295 +0xe5 fp=0xc00009a7e0 sp=0xc00009a750 pc=0x41eb65 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00009a7e8 sp=0xc00009a7e0 pc=0x470901 created by runtime.gcBgMarkStartWorkers in goroutine 1 /usr/local/go/src/runtime/mgc.go:1219 +0x1c goroutine 6 [GC worker (idle)]: runtime.gopark(0x1cfb45c9b44f5?, 0x3?, 0xbb?, 0xef?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc00009af50 sp=0xc00009af30 pc=0x43d9ae runtime.gcBgMarkWorker() /usr/local/go/src/runtime/mgc.go:1295 +0xe5 fp=0xc00009afe0 sp=0xc00009af50 pc=0x41eb65 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00009afe8 sp=0xc00009afe0 pc=0x470901 created by runtime.gcBgMarkStartWorkers in goroutine 1 /usr/local/go/src/runtime/mgc.go:1219 +0x1c goroutine 51 [GC worker (idle)]: runtime.gopark(0x4f76a20?, 0x1?, 0x7d?, 0xdd?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc000505750 sp=0xc000505730 pc=0x43d9ae runtime.gcBgMarkWorker() /usr/local/go/src/runtime/mgc.go:1295 +0xe5 fp=0xc0005057e0 sp=0xc000505750 pc=0x41eb65 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0005057e8 sp=0xc0005057e0 pc=0x470901 created by runtime.gcBgMarkStartWorkers in goroutine 1 /usr/local/go/src/runtime/mgc.go:1219 +0x1c goroutine 7 [GC worker (idle)]: runtime.gopark(0x4f76a20?, 0x1?, 0xaa?, 0xa4?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc00009b750 sp=0xc00009b730 pc=0x43d9ae runtime.gcBgMarkWorker() /usr/local/go/src/runtime/mgc.go:1295 +0xe5 fp=0xc00009b7e0 sp=0xc00009b750 pc=0x41eb65 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00009b7e8 sp=0xc00009b7e0 pc=0x470901 created by runtime.gcBgMarkStartWorkers in goroutine 1 /usr/local/go/src/runtime/mgc.go:1219 +0x1c goroutine 8 [GC worker (idle)]: runtime.gopark(0x1cfb45c9b4284?, 0x1?, 0xa?, 0xb?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc00009bf50 sp=0xc00009bf30 pc=0x43d9ae runtime.gcBgMarkWorker() /usr/local/go/src/runtime/mgc.go:1295 +0xe5 fp=0xc00009bfe0 sp=0xc00009bf50 pc=0x41eb65 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00009bfe8 sp=0xc00009bfe0 pc=0x470901 created by runtime.gcBgMarkStartWorkers in goroutine 1 /usr/local/go/src/runtime/mgc.go:1219 +0x1c goroutine 52 [GC worker (idle)]: runtime.gopark(0x1cfb45c9cdc24?, 0x3?, 0x2b?, 0xba?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc000505f50 sp=0xc000505f30 pc=0x43d9ae runtime.gcBgMarkWorker() /usr/local/go/src/runtime/mgc.go:1295 +0xe5 fp=0xc000505fe0 sp=0xc000505f50 pc=0x41eb65 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000505fe8 sp=0xc000505fe0 pc=0x470901 created by runtime.gcBgMarkStartWorkers in goroutine 1 /usr/local/go/src/runtime/mgc.go:1219 +0x1c goroutine 21 [GC worker (idle)]: runtime.gopark(0x1cfb45c9e5b90?, 0x1?, 0xaf?, 0x0?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc000095f50 sp=0xc000095f30 pc=0x43d9ae runtime.gcBgMarkWorker() /usr/local/go/src/runtime/mgc.go:1295 +0xe5 fp=0xc000095fe0 sp=0xc000095f50 pc=0x41eb65 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000095fe8 sp=0xc000095fe0 pc=0x470901 created by runtime.gcBgMarkStartWorkers in goroutine 1 /usr/local/go/src/runtime/mgc.go:1219 +0x1c goroutine 53 [GC worker (idle)]: runtime.gopark(0x1cfb45c9b44ee?, 0x1?, 0x5b?, 0x5a?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc000506750 sp=0xc000506730 pc=0x43d9ae runtime.gcBgMarkWorker() /usr/local/go/src/runtime/mgc.go:1295 +0xe5 fp=0xc0005067e0 sp=0xc000506750 pc=0x41eb65 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0005067e8 sp=0xc0005067e0 pc=0x470901 created by runtime.gcBgMarkStartWorkers in goroutine 1 /usr/local/go/src/runtime/mgc.go:1219 +0x1c goroutine 35 [GC worker (idle)]: runtime.gopark(0x1cfb45c9b41b5?, 0x1?, 0x6a?, 0x93?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc000509750 sp=0xc000509730 pc=0x43d9ae runtime.gcBgMarkWorker() /usr/local/go/src/runtime/mgc.go:1295 +0xe5 fp=0xc0005097e0 sp=0xc000509750 pc=0x41eb65 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0005097e8 sp=0xc0005097e0 pc=0x470901 created by runtime.gcBgMarkStartWorkers in goroutine 1 /usr/local/go/src/runtime/mgc.go:1219 +0x1c goroutine 9 [select]: runtime.gopark(0xc00050a788?, 0x3?, 0x18?, 0x28?, 0xc00050a772?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc00050a618 sp=0xc00050a5f8 pc=0x43d9ae runtime.selectgo(0xc00050a788, 0xc00050a76c, 0xc000752580?, 0x0, 0x0?, 0x1) /usr/local/go/src/runtime/select.go:327 +0x725 fp=0xc00050a738 sp=0xc00050a618 pc=0x44de65 go.opencensus.io/stats/view.(*worker).start(0xc000752580) /root/project/gomodcache/go.opencensus.io@v0.24.0/stats/view/worker.go:292 +0x9f fp=0xc00050a7c8 sp=0xc00050a738 pc=0x138905f go.opencensus.io/stats/view.init.0.func1() /root/project/gomodcache/go.opencensus.io@v0.24.0/stats/view/worker.go:34 +0x25 fp=0xc00050a7e0 sp=0xc00050a7c8 pc=0x1388385 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00050a7e8 sp=0xc00050a7e0 pc=0x470901 created by go.opencensus.io/stats/view.init.0 in goroutine 1 /root/project/gomodcache/go.opencensus.io@v0.24.0/stats/view/worker.go:34 +0x8d goroutine 11 [semacquire]: runtime.gopark(0xc000b2d410?, 0xc000b7ba98?, 0x40?, 0x2b?, 0xc000b2c600?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc0013699f0 sp=0xc0013699d0 pc=0x43d9ae runtime.goparkunlock(...) /usr/local/go/src/runtime/proc.go:404 runtime.semacquire1(0xc000c2b688, 0x1?, 0x1, 0x0, 0x39?) /usr/local/go/src/runtime/sema.go:160 +0x218 fp=0xc001369a58 sp=0xc0013699f0 pc=0x44ee98 sync.runtime_Semacquire(0x3?) /usr/local/go/src/runtime/sema.go:62 +0x25 fp=0xc001369a90 sp=0xc001369a58 pc=0x46c7a5 sync.(*WaitGroup).Wait(0xc000882c60?) /usr/local/go/src/sync/waitgroup.go:116 +0x48 fp=0xc001369ab8 sp=0xc001369a90 pc=0x48e608 github.com/gohugoio/hugo/hugolib.(*Site).renderPages(0xc0009a5b80, 0xc000483020) /root/project/hugo/hugolib/site_render.go:97 +0x23c fp=0xc001369b60 sp=0xc001369ab8 pc=0x20294bc github.com/gohugoio/hugo/hugolib.(*Site).render(0xc0009a5b80, 0xc000483020) /root/project/hugo/hugolib/site.go:676 +0x6c fp=0xc001369b80 sp=0xc001369b60 pc=0x20223ac github.com/gohugoio/hugo/hugolib.(*HugoSites).render(0xc000a6e000, {0x3c4c4f0?, 0xc0000ba540}, 0xc0002f5c40) /root/project/hugo/hugolib/hugo_sites_build.go:301 +0x5be fp=0xc001369d80 sp=0xc001369b80 pc=0x1ff893e github.com/gohugoio/hugo/hugolib.(*HugoSites).Build(0xc000a6e000, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, ...) /root/project/hugo/hugolib/hugo_sites_build.go:144 +0x53b fp=0xc001369ec8 sp=0xc001369d80 pc=0x1ff6bbb github.com/gohugoio/hugo/commands.(*hugoBuilder).buildSites(0x0?, 0x0) /root/project/hugo/commands/hugobuilder.go:432 +0x54 fp=0xc001369f30 sp=0xc001369ec8 pc=0x20ca7f4 github.com/gohugoio/hugo/commands.(*hugoBuilder).fullBuild.func3() /root/project/hugo/commands/hugobuilder.go:547 +0x1b fp=0xc001369f78 sp=0xc001369f30 pc=0x20cb53b golang.org/x/sync/errgroup.(*Group).Go.func1() /root/project/gomodcache/golang.org/x/sync@v0.5.0/errgroup/errgroup.go:75 +0x56 fp=0xc001369fe0 sp=0xc001369f78 pc=0x1bab416 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc001369fe8 sp=0xc001369fe0 pc=0x470901 created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 1 /root/project/gomodcache/golang.org/x/sync@v0.5.0/errgroup/errgroup.go:72 +0x96 goroutine 12 [chan receive]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc000507e60 sp=0xc000507e40 pc=0x43d9ae runtime.chanrecv(0xc000432900, 0xc000507f90, 0x1) /usr/local/go/src/runtime/chan.go:583 +0x3cd fp=0xc000507ed8 sp=0xc000507e60 pc=0x4099ad runtime.chanrecv2(0x0?, 0x0?) /usr/local/go/src/runtime/chan.go:447 +0x12 fp=0xc000507f00 sp=0xc000507ed8 pc=0x4095d2 github.com/gohugoio/hugo/hugolib.(*HugoSites).Build.func2(0x0?, 0x0?) /root/project/hugo/hugolib/hugo_sites_build.go:78 +0x7e fp=0xc000507fc0 sp=0xc000507f00 pc=0x1ff75de github.com/gohugoio/hugo/hugolib.(*HugoSites).Build.func4() /root/project/hugo/hugolib/hugo_sites_build.go:88 +0x2b fp=0xc000507fe0 sp=0xc000507fc0 pc=0x1ff752b runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000507fe8 sp=0xc000507fe0 pc=0x470901 created by github.com/gohugoio/hugo/hugolib.(*HugoSites).Build in goroutine 11 /root/project/hugo/hugolib/hugo_sites_build.go:75 +0x370 goroutine 101 [chan receive]: runtime.gopark(0xc000433140?, 0xc000432b40?, 0x6c?, 0xe4?, 0xc000509ec0?) /usr/local/go/src/runtime/proc.go:398 +0xce fp=0xc000509e70 sp=0xc000509e50 pc=0x43d9ae runtime.chanrecv(0xc000197980, 0xc000509f88, 0x1) /usr/local/go/src/runtime/chan.go:583 +0x3cd fp=0xc000509ee8 sp=0xc000509e70 pc=0x4099ad runtime.chanrecv2(0xc000197680?, 0x0?) /usr/local/go/src/runtime/chan.go:447 +0x12 fp=0xc000509f10 sp=0xc000509ee8 pc=0x4095d2 github.com/gohugoio/hugo/hugolib.(*Site).errorCollator(0xc0009a5b80, 0x0?, 0xc000509f98?) /root/project/hugo/hugolib/site.go:933 +0x69 fp=0xc000509fb8 sp=0xc000509f10 pc=0x20244e9 github.com/gohugoio/hugo/hugolib.(*Site).renderPages.func2() /root/project/hugo/hugolib/site_render.go:71 +0x28 fp=0xc000509fe0 sp=0xc000509fb8 pc=0x20296a8 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000509fe8 sp=0xc000509fe0 pc=0x470901 created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages in goroutine 11 /root/project/hugo/hugolib/site_render.go:71 +0xd9 ```
simonheimlicher commented 7 months ago

I also encounter this issue whenever I am not careful to blank out any pageState objects from the variable I pass to jsonify. Once the issue occurs, it can be quite hard to track down because there is no indication as to where it occurs.

The work-around I have been using for years is to merge the map I pass to jsonify with a map that overwrites the pageState object with nil or "omitted":

jsonify (dict "indent" "  ") (merge $tplParams (dict "Page" "omitted") )

The reason I have not reported this issue myself is that I only use jsonify to generate more readable output of maps for debugging, which is certainly not its intended use case.

jmooring commented 7 months ago

This was fixed in v0.123.0.

git clone --single-branch -b hugo-github-issue-11827 https://github.com/jmooring/hugo-testing hugo-github-issue-11827
cd hugo-github-issue-11827
hugo server

Then visit http://localhost:1313/ja/

github-actions[bot] commented 7 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.