Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is a core file? How do I get a core file?

core file
0
10 Posted

What is a core file? How do I get a core file?

0

A core file is an image of the memory when your application crashed. Using the core file, you can know which variables were set and where your application crashed. Some distributions disable the generation of core files. To re-enable them, use “ulimit -c unlimited”. Once you have a core file for a crash, you can examine it with gdb appname core . This will open gdb on the core file for the given application. Once at the gdb prompt, the most useful command is “bt” which generates a backtrace of the crash.

0

A core file is an image of the memory when your application crashed. Using the core file, you can now which variables were set and where your application crashed. Some distributions disable the generation of core files. To re-enable them, use “ulimit -c unlimited”. Once you have a core file for a crash, you can examine it with gdb appname core . This will open gdb on the core file for the given application. Once at the gdb prompt, the most useful command is “bt” which generates a backtrace of the crash. For more information about how to use gdb, see this page.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123