mvdan / xurls

Extract urls from text
BSD 3-Clause "New" or "Revised" License
1.19k stars 116 forks source link

generate: concurrent map write #44

Closed mvdan closed 4 years ago

mvdan commented 4 years ago

About a quarter of the times I run the program, I get a fatal error: concurrent map iteration and map write.

I presume the race has been there for a long time, but the older versions of Go I used in the past didn't notice that.

Not a hugely pressing matter, since this is just a code generator I use, and the output still seems to be stable. But I should still fix this at some point.