Linux Labs

Inside the system: resources, kernel, processes / Stage 8 of 12

dmesg and the kernel log

Not running Starting usually ~20 s
Leave the lesson

Step 4 of 8 · on a machine · 3 min

A program crashed

The kernel writes about more than disks: when a program touches memory that is not its own, the kernel ends it and leaves a line in the same buffer.

In ~/crash-lab the thumbgen program makes thumbnails of the photos in photos/. Run it.

Exercise · look

Run thumbgen

In ~/crash-lab, run thumbgen, check its exit status and find it in the kernel buffer.

First, predict

thumbgen will crash on the first photo. What will echo $? print?

Now start the exercise, run the command and compare your prediction with the output.

Sign in and start The machine is available after signing in
Ubuntu 24.04
Loading…