Error using command in CLI

Error using command in CLI

santoshsridhar的头像
Hi, While I try to execute the "command" action in CLI. The steps followed were: 1.Start a collection. For example: $inspxe-cl -collect mi2 -r newfolder /home/../ 2.In another window try : $ inspxe-cl -command memory-growth-start -r newfolder. This gives following as message: Warning: Cannot open/write to file: [/home/ssantosh/work/hot/inspxe-runmc.txt] Warning: Non-fatal internal problem was detected and logged. Error: An internal error has occurred. Our apologies for this inconvenience. Please gather a description of the steps leading up to the problem and contact the Intel customer support team.

Warning: Cannot open/write to file: [/home/ssantosh/work/hot/inspxe-runmc.txt]Warning: Non-fatal internal problem was detected and logged.Error: An internal error has occurred. Our apologies for this inconvenience. Please gather a description of the steps leading up to the problem and contact the Intel customer support team. Request to give some inputs on this. Regards, Santosh

3 帖子 / 0 new
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项.
Peter Wang (Intel)的头像

Hi,

I cannot reproduce this problem on my side, here are steps:

1. Use a simplest case, in a loop to allocate small memory and wait 5 seconds in each iteration...elapsed timewill be10 minutes. See below mem_growth.c

#include 
#define MAX_NUM 120 /* total 120 times to allocate memory, elapsed time 600s */
int main()

{

char *str[MAX_NUM];

int i;
    for (i=0; i
        str[i] = (char *) malloc (16*sizeof(char));

        sleep (5); /* wait 5 seconds, each time */

    }
    return 1;

}

2.gcc -g mem_growth.c -o mem_growth

3.inspxe-cl -collect mi3 -- ./mem_growth

4. In other console, do
a)inspxe-cl -command memory-growth-start -r r001mi3 ; wait for awhile
b) inspxe-cl -command memory-growth-end -r r001mi3

5. In original console, after 10 minutes, will see -
[root@NHM02 problem_report]# inspxe-cl -collect mi3 -- ./mem_growth
Used suppression file(s): []

2 new problem(s) found
1 Memory growth problem(s) detected
1 Memory leak problem(s) detected

6. You may useinspxe-gui to check, in detail

Regards, Peter

Peter Wang (Intel)的头像

I also build example code / testedmemory-growthwith non-root user, set result directory in /tmp. It works.

My inspector XE 2011 version:
[peter@NHM02 problem_report]$ inspxe-cl -version
Intel Inspector XE 2011 Update 8 (build 206270) Command Line tool
Copyright (C) 2009-2011 Intel Corporation. All rights reserved.

登陆并发表评论。