Open code1w opened 3 years ago
PS: Some more info:
Compiled with g++ 10.2.0 in C++17 mode
Running libstdc++ of GCC10 for C++17 feature support
Running on Red Hat Enterprise Linux Server release 7.2 (Maipo)
Everything compiled with -O2
I do not know why it crash at asio_handler_allocate function , should i open ASIO_DISABLE_SMALL_BLOCK_RECYCLING macro?
you pass the shared pointer by reference. this means that it doesn't increase the usecount maybe this is the reason. please include the code that starts the send chain as well. the one that checks the sendding_ variable.
on an unrelated note, the error handling code does not reset the sendding_ variable to false
I am using Asio only Asio Only Source Code to handle my network class. I have been troubling for a while and I can't get the reason why. My server has been running for more than 20 hours for a long time. During this period, I stress test the server uninterruptedly. Sometimes it crashes, sometimes it does not crash. My code
The crash stack is as follow:
By the way : io_service run in single thread