Just tested the echoserver with both libwebsocket v1.7.2 and libwebsocket v1.7-stable. I get a segfault on the first message reception. Here is my output:
$ ./echoserver
[cppWebSockets] Not using SSL
[cppWebSockets] Server started on port 8080
[cppWebSockets] New connection
[cppWebSockets] Received: asdasd
[cppWebSockets] Error: Error writing to socket on socketID '8'
[cppWebSockets] Error: Error writing to socket
Segmentation fault (core dumped)