Troubleshooting
A custom service written in C exits unpredictably with "Segmentation fault (core dumped)." systemd-coredump is enabled on the host, and the binary was built with debug symbols. Which command BEST helps identify the function and source line that caused the crash?
Show the answer
Correct answerD. coredumpctl gdb appd to open the latest core dump in the debugger and inspect the backtrace
A segmentation fault is an invalid memory access, and a backtrace from the core dump in gdb points to the faulting function and line. OOM messages describe a kernel kill with SIGKILL, which is a different failure from a segfault.