Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12620 Discussions

Debugging a memory leak on Nios II with MMU Linux

Altera_Forum
Honored Contributor II
1,341 Views

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
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
585 Views

I've used memwatch (http://sourceforge.net/projects/memwatch/) successfully in the past. 

 

Cheers, 

 

Slacker
0 Kudos
Altera_Forum
Honored Contributor II
585 Views

thanks a lot

0 Kudos
Reply