Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Segmentation Fault #469

Closed
chelinho139 opened this issue Sep 29, 2015 · 2 comments
Closed

Segmentation Fault #469

chelinho139 opened this issue Sep 29, 2015 · 2 comments

Comments

@chelinho139
Copy link

Hi, we are getting segmentation fault signal and the backtrace from gdb says:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 3144.0xd88]
0x0000000000461084 in websocketpp::processor::hybi13websocketpp::config::asio::consume(unsigned char*, unsigned long long, std::error_code&) ()

Here is our code:

void WebServer::OnRead(ConnectionWebsocket* connection, websocketpp::connection_hdl hdl, websocketpp::serverwebsocketpp::config::asio::message_ptr msg){
try{
memcpy(connection->inBuff, msg->get_payload().c_str(), inMsgLength);
// std::cout << "Msg Received: "<< connection->inBuff << std::endl;
actionResolver->solveMessage(connection, this->mutexWorld);
}catch(...){
std::cout << "Excepcion en OnRead"<< std::endl;
}
}

We have no idea what that consume function does, but please any help???

@tkarls
Copy link

tkarls commented Oct 8, 2015

I had the same problem and found the fix here:
#395

See if that helps you too.

@zaphoyd
Copy link
Owner

zaphoyd commented Feb 22, 2016

as of 0.7.0 you shouldn't need to #define anything special to avoid this.

@zaphoyd zaphoyd closed this as completed Feb 22, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants