A generalized library and application to handle crashes in Linux applications