How to figure out crash causes without log

Hey guys, my application is crashing but not generating any log, in my log file. Is there any way to figure out what’s happeing?

Ty.

Are you sure it is a crash and not just the program finishing “cleanly”?

Perhaps an if err := f(); err != nil { os.Exit(0) } somewhere (or any other number)? Therefore make sure to check your exit code after the “crash”.

Also make sure you are properly checking your error return values everywhere, there was a small tool which checked exactly this, I think it was errcheck.

Hi,

Run the application in foreground mode. You should be able to see the crash details. Or try to see in /var/log/messages on linux based system.

If you can share sample code I can help you better.
Subu

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.