2008-06-11 13:59:54     memory leak detection

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2008-06-11 13:59:54     memory leak detection

Linux Newbie (INDIA)

Message: 57018   

 

Hi,

 

Is there any way to detect memory leak in the application code as we havent use wrapper for malloc or free!!!

QuoteReplyEditDelete

 

 

2008-06-11 14:06:12     Re: memory leak detection

Mike Frysinger (UNITED STATES)

Message: 57022   

 

mudflap is about your best bet currently:

http://docs.blackfin.uclinux.org/doku.php?id=debuging_applications#mudflap

QuoteReplyEditDelete

 

 

2008-06-12 05:04:29     Re: memory leak detection

Linux Newbie (INDIA)

Message: 57118   

 

Hi ,

 

When I run the application with mudflap compiler options, it throws the following error.

 

can't load library 'libmudflapth.so.0'

 

Do I need to compile the toolchain for this option ?

 

Please suggest.

 

 

QuoteReplyEditDelete

 

 

2008-06-12 09:15:29     Re: memory leak detection

Mike Frysinger (UNITED STATES)

Message: 57127   

 

if you're building FDPIC, then that library is supposed to be in your /lib/ directory ... i have it there as the default install target in uclinux-dist copies it into romfs/lib/

QuoteReplyEditDelete

 

 

2008-06-12 12:40:46     Re: memory leak detection

Linux Newbie (INDIA)

Message: 57164   

 

Hi,

 

I am using FDPIC, but couldnt find the library in romfs/lib. I am using 2007R1.

QuoteReplyEditDelete

 

 

2008-06-12 12:50:44     Re: memory leak detection

Mike Frysinger (UNITED STATES)

Message: 57168   

 

you need 2008R1

Attachments

    Outcomes