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

hugo server: fatal error: concurrent map read and map write #3013

Closed
bep opened this issue Feb 6, 2017 · 2 comments
Closed

hugo server: fatal error: concurrent map read and map write #3013

bep opened this issue Feb 6, 2017 · 2 comments
Assignees
Milestone

Comments

@bep
Copy link
Member

bep commented Feb 6, 2017

Probably something I introduced lately. Will fix.

fatal error: concurrent map read and map write

WARNING: DATA RACE
Read at 0x00c4227c7810 by goroutine 78:
  text/template.(*state).walkTemplate()
      /usr/local/Cellar/go/1.7.4/libexec/src/text/template/exec.go:383 +0x354
  text/template.(*state).walk()
      /usr/local/Cellar/go/1.7.4/libexec/src/text/template/exec.go:239 +0x3a4
  text/template.(*state).walk()
      /usr/local/Cellar/go/1.7.4/libexec/src/text/template/exec.go:234 +0x1f7
  text/template.(*Template).execute()
      /usr/local/Cellar/go/1.7.4/libexec/src/text/template/exec.go:189 +0x4a2
  text/template.(*Template).Execute()
      /usr/local/Cellar/go/1.7.4/libexec/src/text/template/exec.go:175 +0x64
  html/template.(*Template).Execute()
      /usr/local/Cellar/go/1.7.4/libexec/src/html/template/template.go:104 +0xd0
  github.com/spf13/hugo/hugolib.(*Site).renderThing()
      /Users/bep/go/src/github.com/spf13/hugo/hugolib/site.go:1890 +0xdb
  github.com/spf13/hugo/hugolib.(*Site).renderForLayouts()
      /Users/bep/go/src/github.com/spf13/hugo/hugolib/site.go:1862 +0xf0
  github.com/spf13/hugo/hugolib.(*Site).renderAndWritePage()
      /Users/bep/go/src/github.com/spf13/hugo/hugolib/site.go:1768 +0x130
  github.com/spf13/hugo/hugolib.pageRenderer()
      /Users/bep/go/src/github.com/spf13/hugo/hugolib/site_render.go:71 +0x4ea

Previous write at 0x00c4227c7810 by goroutine 18:
  text/template.(*Template).AddParseTree()
      /usr/local/Cellar/go/1.7.4/libexec/src/text/template/template.go:125 +0xf8
  html/template.(*escaper).commit()
      /usr/local/Cellar/go/1.7.4/libexec/src/html/template/escape.go:746 +0x30c
  html/template.escapeTemplate()
      /usr/local/Cellar/go/1.7.4/libexec/src/html/template/escape.go:39 +0x4fd
  html/template.(*Template).escape()
      /usr/local/Cellar/go/1.7.4/libexec/src/html/template/template.go:85 +0x2fb
  html/template.(*Template).Execute()
      /usr/local/Cellar/go/1.7.4/libexec/src/html/template/template.go:101 +0x3c
  github.com/spf13/hugo/hugolib.(*Site).renderThing()
      /Users/bep/go/src/github.com/spf13/hugo/hugolib/site.go:1890 +0xdb
  github.com/spf13/hugo/hugolib.(*Site).renderForLayouts()
      /Users/bep/go/src/github.com/spf13/hugo/hugolib/site.go:1862 +0xf0
  github.com/spf13/hugo/hugolib.(*Site).renderAndWritePage()
      /Users/bep/go/src/github.com/spf13/hugo/hugolib/site.go:1768 +0x130
  github.com/spf13/hugo/hugolib.pageRenderer()
      /Users/bep/go/src/github.com/spf13/hugo/hugolib/site_render.go:71 +0x4ea
@bep bep added the Bug label Feb 6, 2017
@bep bep added this to the v0.19 milestone Feb 6, 2017
@bep bep self-assigned this Feb 6, 2017
@bep
Copy link
Member Author

bep commented Feb 6, 2017

Running it under the race detector, it does look like the situation we had with the base templates. Will have to look further into this ... Hmm ...

@bep bep closed this as completed in a89fb86 Feb 7, 2017
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant