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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:27:51+00:00 2026-05-30T15:27:51+00:00

My goal altogether is to figure out from a post mortem core file, why

  • 0

My goal altogether is to figure out from a post mortem core file, why a specific process is consuming a lot of memory. Is there a summary that I can get somehow? As obvious valgrind is out of the question, because I can’t get access to the process live.

First of all getting an output something similar to /proc/”pid”/maps, would help, but

maintenance info sections

(as described here: GDB: Listing all mapped memory regions for a crashed process) in gdb didn’t show me heap memory consumption.

info proc map

is an option, as I can get access to machine with the exact same code, but as far as I have seen it is not correct. My process was using 700MB-s, but the maps seen only accounted for some 10 MBs. And I didn’t see .so-s there which are visible in

maintenance print statistics

Do you know any other command which might be useful?

I can always instrument the code, but that’s no easy. Along with reaching all the allocated data through pointers is like needle in the haystack.

Do you have any ideas?

  • 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-30T15:27:53+00:00Added an answer on May 30, 2026 at 3:27 pm

    Postmortem debugging of this sort in gdb is a bit of an art more than a science.

    The most important tool for it, in my opinion, is the ability to write scripts that run inside of gdb. The manual will explain it to you. The reason I find this so useful is that it lets you do things like walking data structures and printing out information abou them.

    Another possibility for you here is to instrument your version of malloc — write a new malloc function that saves statistics about what is being allocated so that you can then look at those post mortem. You can, of course, call the original malloc to do the actual memory allocation work.

    I’m sorry that I can’t give you an obvious and simple answer that will simply yield an immediate fix for you here — without tools like valgrind this is a very hard job.

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

Sidebar

Related Questions

My goal is to maintain a web file server separately from my main ASP.NET
Goal of the application is get latest post from facebook, it is possible if
Goal Pass images generated by one process efficiently and at very high speed to
The goal: To create a .NET dll i can reference from inside SQL Server
Goal: Retrieve all instance of List<> from interface GameFactory Problem: I retrieve error message
Goal is to replace 'byebye' with 'Hello ' # START: file.txt contains string byebye
Goal: from a list of vectors of equal length, create a matrix where each
Goal: take results from recognizer stating a name in contacts, then dial their #.
Goal: Display different context menu if right clicking a row from the listview or
Goal: Having two buttons that should be enable to add or delete data from

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.