I have a core dump file generated by a c++ program.
I suspect the reason it crashed is because it was running out of memory.
Is there a way the get the amount of memory in use from the core file using gdb (or any other way)?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
According to this thread, it is not possible.
However, you can use
size -A coreto get the sizes of individual sections of the core dump (you won’t know what they are, though).