Crash with double-free, on response.end() in another thread, on v1.1, v.1.2, and master #843
Labels
discussion
The viability / implementation of the issue is up for debate
feature
Code based project improvement
Hi,
I'm trying to move from v.1.0+5, but it seems that my use of asynchronous responses will always crash. I know that async is still "in development", but from trying to follow: #258, it doesn't feel like this kind of crash is what should be happening.
In my ROUTE's, I am rarely able to return a valid HTTP response directly (but in the cases I can, no crashes at all).
If I instead, save a reference (not std::move) to the crow::response, and after my 3pp asynchronous API returns via another thread, I do:
It will crash every time. According to traces my
m_response.is_alive() == true
, but then it crashes. Below trace is when compiled with-fsanitize=address
, but I just used that to get more detailed crash info.The text was updated successfully, but these errors were encountered: