Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
5255 Discussions

need help to locate the memory leak through CLI

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