# Stack Overflow when updating files

**URL:** <https://discourse.gohugo.io/t/stack-overflow-when-updating-files/23313>\
**Category:** Uncategorized\
**Created:** [February 7, 2020, 8:57pm UTC](https://discourse.gohugo.io/t/stack-overflow-when-updating-files/23313 "2020-02-07T20:57:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbscpe](https://avatars.discourse-cdn.com/v4/letter/c/4bbf92/32.png) [@cbscpe](https://discourse.gohugo.io/u/cbscpe)\
**Post date:** [February 7, 2020, 8:57pm UTC](https://discourse.gohugo.io/t/stack-overflow-when-updating-files/23313/1 "2020-02-07T20:57:15Z")

</div>

I have updated to the newest version

Hugo Static Site Generator v0.64.0/extended darwin/amd64 BuildDate: unknown

and now when running as local server I always get a stack overflow when I update a file

Change detected, rebuilding site.  
2020-02-07 21:55:36.222 +0100  
Source changed “/Users/peter/5volts/v2/content/projects/toy.md”: WRITE  
runtime: goroutine stack exceeds 1000000000-byte limit  
fatal error: stack overflow

runtime stack:  
runtime.throw(0x5923a6a, 0xe)  
/usr/local/Cellar/go/1.13.7/libexec/src/runtime/panic.go:774 +0x72  
runtime.newstack()  
/usr/local/Cellar/go/1.13.7/libexec/src/runtime/stack.go:1046 +0x6e9  
runtime.morestack()  
/usr/local/Cellar/go/1.13.7/libexec/src/runtime/asm\_amd64.s:449 +0x8f

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [February 7, 2020, 10:19pm UTC](https://discourse.gohugo.io/t/stack-overflow-when-updating-files/23313/2 "2020-02-07T22:19:57Z")

</div>

You have a infinite recursion in one of your templates. Hard to tell without seeing your full project.

---

<div class="post-metadata">

**Author:** ![cbscpe](https://avatars.discourse-cdn.com/v4/letter/c/4bbf92/32.png) [@cbscpe](https://discourse.gohugo.io/u/cbscpe)\
**Post date:** [February 8, 2020, 6:31am UTC](https://discourse.gohugo.io/t/stack-overflow-when-updating-files/23313/3 "2020-02-08T06:31:57Z")

</div>

I did not make any changes. The crash did not occur with .60 . Also if there is a recursion why has it an effect only when I modify a file. A Recursion would crash the server immediately when I start hugo not only when I modify one of the content files

---

<div class="post-metadata">

**Author:** ![cbscpe](https://avatars.discourse-cdn.com/v4/letter/c/4bbf92/32.png) [@cbscpe](https://discourse.gohugo.io/u/cbscpe)\
**Post date:** [February 9, 2020, 8:49am UTC](https://discourse.gohugo.io/t/stack-overflow-when-updating-files/23313/4 "2020-02-09T08:49:12Z")

</div>

Checked the site with the theme I was using and updated my copy to the newest version. And now the problem has gone. In case this happens again, how do you find the culprit respectively the “looping” template? I have no clue how this could happen.
