Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7858375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:24:14+00:00 2026-06-02T21:24:14+00:00

I am working through Zed Shaw’s Learn C the Hard Way. In the chapter

  • 0

I am working through Zed Shaw’s Learn C the Hard Way.

In the chapter on Valgrind, the section “What you should see” has line numbers for various glibc functions.

I’ve determined that (obviously) my CentOS 5.5 install has the non-debug glibc installed. However yum does not list glibc-dbg (or anything similar:

[nzucker:~/projects/lcthw]$ yum info \*glibc\* | grep Name
Name       : glibc
Name       : glibc
Name       : glibc-common
Name       : glibc-devel
Name       : glibc-devel
Name       : glibc-headers
Name       : compat-glibc
Name       : compat-glibc
Name       : compat-glibc-headers
Name       : glibc-utils

I’ve bricked Linux boxes in the past by haphazardly installing packages (either via packages or building from source), so I want to know what I’m doing here.

Questions:

  1. Since I have glibc-devel already installed, are the debug libraries perhaps already there and I just need to link to them and/or add a compilation switch?

  2. If I re-build glibc from source (or install a package) with debugging enabled, how can I be sure not to accidentally brick the machine (i.e. because building the wrong package and triggering library incompatibilities)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T21:24:15+00:00Added an answer on June 2, 2026 at 9:24 pm

    Under CentOS, you can install the debug information for a particular package using the debuginfo-install command. For example:

    debuginfo-install glibc
    

    For this to work, you need to have the debuginfo repository defined. For CentOS 5, put the following in /etc/yum.repos.d/CentOS-Base-debuginfo.repo:

    [base-debuginfo]
    name=CentOS-$releasever - DebugInfo
    baseurl=http://debuginfo.centos.org/$releasever/$basearch/
    gpgcheck=0
    enabled=0
    protect=1
    priority=1
    

    Caveat: In case you found your way here from Google looking about information for CentOS 6: This works great for CentOS 5. The CentOS team has had a hard time getting their act together with CentOS 6, and the CentOS 6 debuginfo repositories are out-of-date respect to the most recent packages. You may or may not be able to find the appropriate debuginfo package for CentOS 6.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am going through Zed Shaw's Python Book. I am currently working on the
I am working through trying to learn to program in Python and am focused
Working through a sample in Chapter 3 of Programming in Scala, the following code
So I'm working through the code in this tutorial which has a small button
I'm working through this thing on pyschools and it has me mystified. Here's the
While working through the MVC 2 NerdDinner tutorial I see that some business logic
Working through the summer of nHibernate tutorials have gotten to the section on queries.
I'm working through K & R to learn programming. Going well so far, but
I'm currently working through Thinking in C++, and chapter 9, exercise 15 gives instructions
Working through the NerdDinner Tutorial , I'm trying to figure out a good way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.