SIGSEGV incoming
deputinizer opened this issue · 3 comments
deputinizer commented
This will cause memory issues. Nil pointer dereference probably
req := fasthttp.AcquireRequest()
fasthttp.ReleaseRequest(req)
// using req later
arriven commented
ah, right. It doesn't cause SIGSEGV as it just returns the request to the pool, but it probably reuses it between different goroutines making a mess anyway
deputinizer commented
It caused SIGSEGV in stoppropaganda 🤣
arriven commented
hmm, I've quickly run through the source of that pool and I'm not sure I see anything that could lead to a crash except race detection. Anyway that's not a good code and I fixed it already