Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
crash: Event::~File() called too late to block Event::Loop #82
@nhardt has been finding a lot of crashes like this one lately.
I think the problem is: RPC::MessageSocket::ReceiveSocket derives from Event::File. ~ReceiveSocket() is called, and C++ starts to destroy the ~ReceiveSocket members. then Event::~File is called, which waits for the Event::Loop to stop operating on this Event::File. but by then it's too late, calling handleFileEvent() is no longer safe. and analogous problem for SendSocket and probably other things that derive from Event::File.