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

Check data race in test #6478

Closed
bep opened this issue Nov 5, 2019 · 0 comments
Closed

Check data race in test #6478

bep opened this issue Nov 5, 2019 · 0 comments
Assignees
Milestone

Comments

@bep
Copy link
Member

@bep bep commented Nov 5, 2019

Read at 0x00c000b29500 by goroutine 148:
  runtime.slicecopy()
      /Users/travis/.gimme/versions/go1.12.10.darwin.amd64/src/runtime/slice.go:197 +0x0
  github.com/gohugoio/hugo/hugolib.(*pagesMapBucket).getPagesAndSections.func1()
      /Users/travis/src/hugo/hugolib/pages_map.go:437 +0xcb
  sync.(*Once).Do()
      /Users/travis/.gimme/versions/go1.12.10.darwin.amd64/src/sync/once.go:44 +0xde
  github.com/gohugoio/hugo/hugolib.(*pagesMapBucket).getPagesAndSections()
      /Users/travis/src/hugo/hugolib/pages_map.go:435 +0x65
  github.com/gohugoio/hugo/hugolib.(*pageState).Pages.func1()
      /Users/travis/src/hugo/hugolib/page.go:139 +0x1fd
  sync.(*Once).Do()
      /Users/travis/.gimme/versions/go1.12.10.darwin.amd64/src/sync/once.go:44 +0xde
  github.com/gohugoio/hugo/hugolib.(*pageState).Pages()
      /Users/travis/src/hugo/hugolib/page.go:170 +0xa1
  runtime.call32()
      /Users/travis/.gimme/versions/go1.12.10.darwin.amd64/src/runtime/asm_amd64.s:519 +0x3a
  reflect.Value.Call()
      /Users/travis/.gimme/versions/go1.12.10.darwin.amd64/src/reflect/value.go:308 +0xc0
  text/template.safeCall()
      /Users/travis/.gimme/versions/go1.12.10.darwin.amd64/src/text/template/funcs.go:293 +0xdd
  text/template.(*state).evalCall()
      /Users/travis/.gimme/versions/go1.12.10.darwin.amd64/src/text/template/exec.go:703 +0x6e0
  text/template.(*state).evalField()
      /Users/travis/.gimme/versions/go1.12.10.darwin.amd64/src/text/template/exec.go:593 +0xf38
  text/template.(*state).evalFieldChain()
      /Users/travis/.gimme/versions/go1.12.10.darwin.amd64/src/text/template/exec.go:554 +0x2fb
  text/template.(*state).evalFieldNode()
      /Users/travis/.gimme/versions/go1.12.10.darwin.amd64/src/text/template/exec.go:518 +0x161
  text/template.(*state).evalCommand()
      /Users/travis/.gimme/versions/go1.12.10.darwin.amd64/src/text/template/exec.go:456 +0xcb1
  text/template.(*state).evalPipeline()
      /Users/travis/.gimme/versions/go1.12.10.darwin.amd64/src/text/template/exec.go:430 +0x1ff
  text/template.(*state).walk()
      /Users/travis/.gimme/versions/go1.12.10.darwin.amd64/src/text/template/exec.go:254 +0x69c
  text/template.(*state).walk()
      /Users/travis/.gimme/versions/go1.12.10.darwin.amd64/src/text/template/exec.go:262 +0x1a0
  text/template.(*Template).execute()
      /Users/travis/.gimme/versions/go1.12.10.darwin.amd64/src/text/template/exec.go:217 +0x2f8
  html/template.(*Template).Execute()
      /Users/travis/.gimme/versions/go1.12.10.darwin.amd64/src/text/template/exec.go:200 +0xd3
  github.com/gohugoio/hugo/tpl.(*TemplateAdapter).Execute()
      /Users/travis/src/hugo/tpl/template.go:163 +0xf8
  github.com/gohugoio/hugo/hugolib.(*Site).renderForLayouts()
      /Users/travis/src/hugo/hugolib/site.go:1597 +0xc8
  github.com/gohugoio/hugo/hugolib.(*Site).renderAndWritePage()
      /Users/travis/src/hugo/hugolib/site.go:1513 +0x297
  github.com/gohugoio/hugo/hugolib.pageRenderer()
      /Users/travis/src/hugo/hugolib/site_render.go:152 +0x8ed
Previous write at 0x00c000b29500 by goroutine 74:
  [failed to restore the stack]
Goroutine 148 (running) created at:
  github.com/gohugoio/hugo/hugolib.(*Site).renderPages()
      /Users/travis/src/hugo/hugolib/site_render.go:73 +0x199
  github.com/gohugoio/hugo/hugolib.(*Site).render()
      /Users/travis/src/hugo/hugolib/site.go:1095 +0x8b
  github.com/gohugoio/hugo/hugolib.(*HugoSites).render()
      /Users/travis/src/hugo/hugolib/hugo_sites_build.go:337 +0x9f0
  github.com/gohugoio/hugo/hugolib.(*HugoSites).Build.func4()
      /Users/travis/src/hugo/hugolib/hugo_sites_build.go:134 +0x57
  runtime/trace.WithRegion()
      /Users/travis/.gimme/versions/go1.12.10.darwin.amd64/src/runtime/trace/annotation.go:137 +0x10b
  github.com/gohugoio/hugo/hugolib.(*HugoSites).Build()
      /Users/travis/src/hugo/hugolib/hugo_sites_build.go:136 +0xa77
  github.com/gohugoio/hugo/hugolib.(*sitesBuilder).build()
      /Users/travis/src/hugo/hugolib/testhelpers_test.go:551 +0x1fa
  github.com/gohugoio/hugo/hugolib.(*sitesBuilder).Build()
      /Users/travis/src/hugo/hugolib/testhelpers_test.go:516 +0xe8
  github.com/gohugoio/hugo/hugolib.TestSmoke()
      /Users/travis/src/hugo/hugolib/hugo_smoke_test.go:174 +0x14b8
  testing.tRunner()
      /Users/travis/.gimme/v
@bep bep self-assigned this Nov 5, 2019
@bep bep modified the milestones: v0.60, v0.59.2 Nov 5, 2019
@bep bep modified the milestones: v0.59.2, v0.60 Nov 25, 2019
bep added a commit to bep/hugo that referenced this issue Nov 25, 2019
bep added a commit to bep/hugo that referenced this issue Nov 25, 2019
bep added a commit to bep/hugo that referenced this issue Nov 25, 2019
@bep bep closed this in 03e2d74 Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.