Closed bep closed 8 months ago
@bep I’m curious... why do you think this is a Go bug?
Because the data race (both read and write) is inside template.Execute
:
https://godoc.org/html/template#Template.Execute
Which states that:
A template may be executed safely in parallel, although if parallel executions share a Writer the output may be interleaved.
Thanks, seems reasonable!
I get the race for my theme both when using Go 1.11 and 1.12 (only tested with latest Go patches though).
Just noticed you’ve been down this road before...
It's a road with many side roads...
Indeed it is!
We have always rendered in parallel.
Related issue: "fatal error: concurrent map read and map write" #7293
Fix in template fork: "Fix data race in templating code" #7507
Upstream https://github.com/golang/go/issues/20531 is closed again with https://github.com/golang/go/commit/d0dd26a88c019d54f22463daae81e785f5867565 fixing commit in master.
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.
Probably a bug in Go.