Hi
I have a service which has been running on ubuntu for a couple of years without problems. It has a backend API which runs on Sinatra and uses PG to read from Postgres (1.9.1).
I just upgraded the server to Ubuntu 14.04.1. This included upgrading Ruby to 1.9.1. Following the upgrade, I now get intermittent but fairly regular segfaults (every fifteen minutes or so when the server is busy). They appear to only be happening on attempts to access a socket which has been open for some time. The error is possibly also related to number of accesses: I have a test server with an identical setup upgraded at the same time, which has not so far shown the error (it is firewalled so only gets traffic from me).
The typical error message that kicks it off each time is (with varying non-ASCII message types, and varying, usually negative, lengths):
PG::UnableToSend - lost synchronization with server: got message type "<90>", length
2126233537I've uploaded a copy of the log with ruby versions etc to
http://pastebin.ca/2860925I don't really have the knowledge to debug this in any kind of depth but will happily follow instructions if anyone can suggest anything to try!
Graham