Community
cancel
Showing results for 
Search instead for 
Did you mean: 
santoshsridhar
Beginner
69 Views

need help to locate the memory leak through CLI

HI,
After running the CLI command, (inspxe-runmc and inspxe-cl -report) I have obtained the output for a memory leak as below:

Problem P1: Error: Memory leak
(0x579e6): Error X3: P1: Memory leak: Allocation site: Function xmalloc: Module /bin/bash
Problem P1: Error: Memory leak(0x579e6): Error X3: P1: Memory leak: Allocation site: Function xmalloc: Module /bin/bash
==================================================================
However I am unable to loacte the exact point or the cause this leak in my application through CLI.
Note: Seeing this leak with -leak-check-on-exit.
Would be of great if get info in this.
Thanks,
Santosh
0 Kudos
2 Replies
Mark_D_Intel
Employee
69 Views

Santosh,
The reported leak is in 'bash' - it looks like your application is launched using a shell script. Only one executable can be analyzed in a single run. To analyze your application, use the -executable-of-interest option.

For example, suppose we have an application named 'my_app', and a script that calls it, named 'launcher.sh'. The command line would be:
$ inspxe-cl -collect mi3 -executable-of-interest my_app launcher.sh
santoshsridhar
Beginner
69 Views

Thanks Mark! Its working now.
Regards,
Santosh
Reply