ghedipunk / PHP-Websockets

A Websockets server written in PHP.
BSD 3-Clause "New" or "Revised" License
913 stars 375 forks source link

Segmentation fault (core dumped) in Ubuntu server #78

Closed emman-ok closed 8 years ago

emman-ok commented 8 years ago

Am getting this when i start the server. Server started Listening on: @.@@.@@.@@@:8080 Master socket: Resource id #8 Segmentation fault (core dumped)

then the client application cannot connect to the system.

Xaraknid commented 8 years ago

I'll make assumptions that did not happens at the start but after some client connect to the server, if not tell us.

In short you running out of memory.

ghedipunk commented 8 years ago

PHP programs themselves can't segfault: There is no direct memory pointer management, so no way for the scripts to attempt to read from or write to an inaccessible memory location.

There is likely a bug in your version of PHP or in an extension loaded in your server. Please upgrade to the latest version in the PHP branch that supports your code base (I suggest PHP 7.0.6, but this may not be available to you. At a minimum, you should be running either 5.6.21 or 5.5.35), and recompile any extensions that are not managed by your distro.

emman-ok commented 8 years ago

Problem Solved. Segmentation fault (core dumped) is caused by mysqli library that am using. Thanks.