Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • (1) What’s your basis for claiming “A kernel needs to core dump.”?   (2) You ask, “Can you have a unix program that produces no exit value?”  What does that have to do with this question?  If you want to dispute stevea’s answer, post a comment under that answer.  But note that the accepted answer says “you don't run the kernel like you run a program.”   (3) What’s your basis for claiming that a program that produces no exit value is not (implicitly, cannot be) ‘‘a UNIX program’’? Commented Dec 21, 2024 at 1:44
  • P.S. Please capitalize consistently. Commented Dec 21, 2024 at 1:44
  • A core dump is a binary image of an executing process at the time some unhandled event (exception or signal) occurred. Useful for debugging IF the app was compiled with debug info (big & bloaty) - which is rarely the case. W/o using compilation debug option, the info value is quite limited. More modern programming languages are memory safe and use library methods that avoid most causes of a core dump. Core-dump certainly isn't required, and is not very prominent as a debugging tool. Commented Dec 23, 2024 at 4:51
  • To avoid confusion, a coredump can help debug a user-space app. When a kernel detects an internal kernel fault it (tries to) dump registers and a "stack trace" of the kernel thread to the logs. Commented Dec 23, 2024 at 4:57
  • I guess the missing principle is that if your machine has a dollar value then there are probably other people expecting you to be able to (minimally) trap a bug on the system they are relying on, see? [Assurance] Commented Dec 24, 2024 at 21:55