-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix broken http parser #1782
Fix broken http parser #1782
Conversation
|
I can't reproduce crashes, neither with Will deprecate Planning to remove the now unused http_server from FC in the context of #1584. |
There are other clients using I can reproduce the crash by starting Stack back trace:
No interesting info found in other threads. Still crashes with a clean build. |
Still crashes with a clean build. It's strange that I haven't reproduced same issue on bitshares-core/programs/cli_wallet/main.cpp Line 209 in 726ce95
bitshares-core/programs/cli_wallet/main.cpp Line 240 in 726ce95
|
After many attempts I still haven't seen a crash (Boost-1.69, RelWithDebInfo build). Your stacktrace indicates that the crash happens in the fail_handler. In fact a breakpoint in that handler is triggered after CTRL-D, even though there are no open connections. From the code I see that the I have attempted to rule out the effect from multiple |
Same crash, in addition, now I can reproduce the crash on I think I got what's happening. You're correct. There is a race condition on the Actually, there is another race condition, the entire fail handler may execute after the server object is destructed, which may even lead to a crash on I'll try to fix it when refactoring |
... by replacing http_server with another websocketpp instance and decprecating cli_wallet -H