Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I regularly code in C/C++. Today while compiling a program. it returned "KILLED". I believe it is because of memory management issues. I use dynamic allocation very rarely so its highly unlikely that it might have caused the problem. Nonetheless what is the best thing to do now to free that leaked memory?

share|improve this question
Can you provide more details on your problem? What exactly does this have to do with Ubuntu? –  Kevin Bowen Dec 22 '12 at 12:00
Well the only OS I use is Ubuntu 12.04. And I wouls like to know how to correct this situation ie how to reclaim he leaked memory. –  Shagun Dec 23 '12 at 3:31
Your request is too vague to be of any use. –  Kevin Bowen Dec 23 '12 at 6:19
I don't have access to my Ubuntu system at the moment, so forgive me if anything is not exactly right but I suggest: look in logs in /var/logs for error message that might give actual reason for process being killed. If it is a lack of memory issue, use Resource Monitor to identify program using ever increasing amount of memory. If it is your program, kill it to free up allocated memory, then debug it to fix. –  Chris Good Dec 24 '12 at 6:24
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.