Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
4679 Discussions

need help to locate the memory leak through CLI

santoshsridhar
Beginner
140 Views
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
140 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
140 Views
Thanks Mark! Its working now.
Regards,
Santosh
Reply