-
Notifications
You must be signed in to change notification settings - Fork 34
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
Yet another "double free or corruption (out)" #8
Comments
I tried to use it with libwebsockets-2.0. The problem does not occur anymore. Can you please precise on which version of libwebsockets you worked while developing cppWebSockets? It seems to have compatibility issues with newer versions. I still have some segmentation faults in callback_main now and then... |
Yes I am also facing the same issue. |
So, I tracked this down and fixed it. While I was at it I modernized the code and fixed complaints from clang-tidy/lazy and cppcheck. Now the echoserver & chatserver apps run w/o crashing and are clean under valgrind. |
0001-Changes-to-modernize-and-fix-memory-corruption.patch.gz I tried to attach this yesterday; I guess it didn't work. |
Steps to reproduce:
On one system (ubuntu 16.04), it crashes with strings of length 16, like "1234567890123456", on another (yocto on intel edison) after 128 characters.
This does not happen with the libwebsockets-test-echo, so I assume it is something with cppWebSockets. Any idea?
The text was updated successfully, but these errors were encountered: