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 6566113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:10:41+00:00 2026-05-25T14:10:41+00:00

I have a core dump from an application with a memory leak. I have

  • 0

I have a core dump from an application with a memory leak. I have used the strings command and xdd to examine the file and I’ve got a few ideas of which part of the program might be responsible for the leak. I’m able to run up the core file in gdb with the application but I can’t do a lot of testing with it because it’s an embedded application with lots of complex time based I/O which I can’t simulate in the office.

I’ve also heard that running with various memory leak detection utilities will slow down the app which we can’t afford because it is running at near CPU capacity already.

So for now, all I have is this core file. Example of what I’m looking for: Is there a pointer table I can examine to find memory that’s been allocated which I can then use to try and find stuff that should have been freed but hasn’t been?

  • 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-05-25T14:10:42+00:00Added an answer on May 25, 2026 at 2:10 pm

    Not very easily, no. The whole point of leaked memory is that it’s memory that was allocated that no longer has a reference to it.

    You would have to walk through the entire memory arena to get a list of all allocated blocks, then examine every possible variable/memory-location which may be pointing to it (with almost certainly some false positives).

    It may be worth a shot getting some statistics on the allocated blocks. Assuming that your memory leak is causing an out-of-memory problem, most of the blocks would be of a specific type, based on possibly size or the content.

    For example, if 80% of the allocated blocks are 31424 bytes long, you’d be looking for allocations of that range (give or take 16 bytes, depending on how the memory allocator works).

    Or, if they all contain strings like “2011-01-01 15:25:00 Beginning process 42”, you may want to look for the leak in the logging library.

    In any case, you will have to dive into the C++ runtime source code to find out how to locate the memory arena, then use that code to be able to traverse the structures.

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

Sidebar

Related Questions

I have core dump file. when I try to open in gdb. I am
I've got a full-heap core dump from a dead process on an x86 Linux
I have a core dump file generated by a c++ program. I suspect the
I have a core file generated on a remote system that I don't have
I have a Core Data based mac application that is working perfectly well until
I have a core data application which uses a navigation controller to drill down
If I have the core of a class defined in one file as public
I have a core dump of an executable that was NOT built with debug
I have a process which suddenly hanged and is not giving any core dump
I have come across an option to do core dump analysis by using GDB

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.