There is a c++ program running as daemon on linux in production environment. It keeps on restarting after some unpredictable time. Since it is in production environment it has no debug info. It does not log errors in any file. There is no liberty to attach gdb to the running process as it may affect production. But the fix is to be provided.
How to collect info or dump in such a case? How to debug such a scenario?