Use Standard Application Debugging Tools on Linux

15 minutes
  • 3 Learning Objectives

About this Hands-on Lab

In an ideal world, all errors are carefully logged, and it only takes a couple of commands to locate a place to start troubleshooting. But realistically, there will be instances wherein the errors or issues are less obvious. In these instances, we can use `ltrace` and `strace` to trace library and system calls, respectively to aid in locating the issue. In this hands-on lab, we’ll do just that to discover the cause of an issue with an application.

_This course is not approved or sponsored by Red Hat._

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Attempt to Run Executable

Attempt to run the executable at /opt/servercheck.

Check for Memory Leaks

Use valgrind to determine if the application has any memory leaks.

Track Error

Track library and system calls to discover the issue.

Additional Resources

Your coworker is working on a script to determine if certain servers are properly configured. They would like you to take a look at the executable and determine any apparent issues.

The executable script can be found at /opt/servercheck.

This course is not approved or sponsored by Red Hat.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?