Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Debugging a memory leak on Nios II with MMU Linux

I'm running an application on my Nios II with MMU Linux, and every time that I perform a certain operation with it the app's memory usage goes up a little, until the kernel just kills it after a few hundred operations because it's trying to use more memory than is available in the system. Correct me if I'm wrong, but it seems to me like I have a memory leak in my application. I've used Valgrind when debugging this sort of problem on a PC, but it doesn't seem like I can use it in this case (again, please correct me if I'm wrong).

Is there another tool available for debugging memory leaks on Nios II? If not, then do you have any suggestions for how to go about debugging the leak?

Thanks,

-A