CompTIA Linux+ XK0-006 (V8) Practice Question

A developer reports that a freshly built command-line tool crashes immediately with the message "Segmentation fault (core dumped)", yet no core file appears in the working directory or in /var/lib/systemd/coredump. Before you can analyze the fault with gdb you must ensure a core file is actually written the next time the program crashes. Which action will most directly enable core-dump generation for the process without requiring a rebuild of the binary?

  • Increase the process stack size to 64 MiB using ulimit -s 65536.

  • Raise the core-file size limit for the session, for example by running ulimit -c unlimited before starting the application.

  • Enable kernel crash dumping by starting the kdump service and configuring /etc/kdump.conf.

  • Recompile the program with the -g compiler flag so that debugging symbols are included.

CompTIA Linux+ XK0-006 (V8)
Troubleshooting
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot