Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5116 Discussions

Tutorials are not working: "Error detected during analysis"

Luca2
Beginner
3,875 Views
Hi everyone,

I have just installed Intel Parallel Studio XE 2011 and wanted to try Intel Inspector. Given that this is the first time I use such a tool, I started from the very first beginning with the provided tutorials.
However already at this stage there is something which is not working properly.I have tried to run the memory analysis and got the following 2 errors in the Collecting Data phase:
Memory error analysis: started
Result file: [/home/lna/intel/inspxe/Projects/memory/r000mi2/r000mi2.inspxe]
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.
Application exit code: [137]
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.
Result file: [/home/lna/intel/inspxe/Projects/memory/r000mi2/r000mi2.inspxe]
Memory error analysis: terminated

In the main window I can still see the following message (as if the inspector were still working):
Please wai while result data is collected ...
Estimated collection time may be 2 to 320 times normal target execution time. [...]
I didn't do anything particular, I've just follow the tutorial about "Managing Memory Errors" and was testing the provided application "tachyon.find_and_fix_memory_errors". So I rreally have no clue on what is going on here.
I don't know whether or not this can help, but when I run the application in command line, i.e. when I type ./tachyon.find_and_fix_memory_errorsI do not get any display opening, instead I have the following output:
Using Default Image file
Use -? for additional options and usage model

Scene contains 8 bounded objects.

CPU Time: 0.024 seconds.
So I do:./tachyon.find_and_fix_memory_errors -?
and I get:
Usage:
./tachyon.find_and_fix_memory_errors modelfile [options]
Model file formats supported:
filename.dat -- The model files originated with this package.
filaname.ac -- AC3D model files.
filename.nff -- The NFF scene format used by Eric Haines' SPD.
Valid options: (** denotes default behaviour)
+D enable run-time display updating (if build supports it) **
-D disable run-time display updating
-nobounding
-boundthresh XXX (** default threshold is 25)
The only .dat file within this tutorial folder is "./dat/simpleballs.dat"
So if I run ./tachyon.find_and_fix_memory_errors ./dat/simpleballs.dat
I get:
Scene contains 8 bounded objects.
CPU Time: 0.026 seconds.
But still no display.
Can anyone suggest a possible solution?
Thanks,
Luca-
0 Kudos
15 Replies
Peter_W_Intel
Employee
3,875 Views
Hi Luca,

I just want to verify this problem on my side. I used Update 1 version

[root@kentsfield-01 ~]# export PATH=$PATH:/opt/intel/inspector_xe_2011/bin64/
[root@kentsfield-01 ~]# inspxe-cl -version
Intel Inspector XE 2011 Update 1 (build 131372) Command Line tool
Copyright (C) 2009-2010 Intel Corporation. All rights reserved.

[root@kentsfield-01 en]# cd /opt/intel/inspector_xe_2011/samples/en
[root@kentsfield-01 en]# tar xzf tachyon_insp_xe.tgz
[root@kentsfield-01 en]# cd tachyon_insp_xe
[root@kentsfield-01 tachyon_insp_xe]# make

[root@kentsfield-01 tachyon_insp_xe]# inspxe-cl -collect mi2 -- ./tachyon.find_and_fix_memory_errors dat/simpleballs.dat
Used suppression file(s): []
Note: using generic X11 with default visual for 24-bit color depth
Scene contains 8 bounded objects.

CPU Time: 2.818 seconds.

7 new problem(s) found
1 Invalid memory access problem(s) detected
4 Memory leak problem(s) detected
2 Mismatched allocation/deallocation problem(s) detected

Note:
1. The application is X11-window based, even you haven't seen any display it still ran (24-bit color depth required).
2. Please check if there is r000mi2 (result directory) generated. You can use inspxe-gui to open result file (.inspxe file) from this directory. -OR- use command line to view report in detail:

[root@kentsfield-01 tachyon_insp_xe]# inspxe-cl -report problems -r r000mi2
Used suppression file(s): []
Problem P1: Error: Mismatched allocation/deallocation
find_and_fix_memory_errors.cpp(170): Error X1: P1: Mismatched allocation/dealloc
ation: Allocation site: Function operator(): Module tachyon.find_and_fix_memory_
errors
find_and_fix_memory_errors.cpp(175): Error X2: P1: Mismatched allocation/dealloc
ation: Mismatched deallocation site: Function operator(): Module tachyon.find_an
d_fix_memory_errors

Problem P2: Error: Mismatched allocation/deallocation
xvideo.cpp(203): Error X3: P2: Mismatched allocation/deallocation: Allocation si
te: Function init_window: Module tachyon.find_and_fix_memory_errors
xvideo.cpp(235): Error X4: P2: Mismatched allocation/deallocation: Mismatched de
allocation site: Function terminate: Module tachyon.find_and_fix_memory_errors

Problem P3: Error: Invalid memory access
find_and_fix_memory_errors.cpp(166): Error X5: P3: Invalid memory access: Write:
Function operator(): Module tachyon.find_and_fix_memory_errors

Problem P4: Error: Memory leak
find_and_fix_memory_errors.cpp(163): Error X14: P4: Memory leak: Allocation site
: Function operator(): Module tachyon.find_and_fix_memory_errors

Problem P5: Error: Memory leak
find_and_fix_memory_errors.cpp(163): Error X15: P5: Memory leak: Allocation site
: Function operator(): Module tachyon.find_and_fix_memory_errors

Problem P6: Error: Memory leak
find_and_fix_memory_errors.cpp(163): Error X16: P6: Memory leak: Allocation site
: Function operator(): Module tachyon.find_and_fix_memory_errors

Problem P7: Error: Memory leak
find_and_fix_memory_errors.cpp(163): Error X17: P7: Memory leak: Allocation site
: Function operator(): Module tachyon.find_and_fix_memory_errors


Regards, Peter

0 Kudos
Luca2
Beginner
3,875 Views
Hello Peter,
and thank you for your answer.
Here is what I get when I use the command line version.
This is the version I use:
$ inspxe-cl -version
Intel Inspector XE 2011 Update 2 (build 134657) Command Line tool
Copyright (C) 2009-2011 Intel Corporation. All rights reserved.
I have copied the tutorial to a different path for my convenience (in /opt root privileges were required):
$cd ~/intel/tachyon_insp_xe
when I compiled the sources I got this warning for all of the 3 applpications:
src/video.cpp: In function int main_init_parts(int, char**):
src/video.cpp:124: warning: deprecated conversion from string constant to char*
Here is the result of the inspector:
$inspxe-cl -collect mi2 -- ./tachyon.find_and_fix_memory_errors dat/simpleballs.dat
Used suppression file(s): []
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.
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.
Error: Error: Cannot find input file. Cannot continue.
And I cannot continue anymore.
0 Kudos
Peter_W_Intel
Employee
3,875 Views

I got little confused about Inspector XE 2011 version, now is Update 1 public in Intel Register Download Center.

Amway, I try to reproduce itwith non-root user.

[root@kentsfield-01 ~]# cp -r /opt/intel/inspector_xe_2011/samples/en/tachyon_insp_xe /home/peter
[root@kentsfield-01 peter]# chown -R peter tachyon_insp_xe
[root@kentsfield-01 ~]# su peter

[peter@kentsfield-01 tachyon_insp_xe]$ source /opt/intel/composerxe-2011.0.084/bin/compilervars.sh intel64
[peter@kentsfield-01 tachyon_insp_xe]$ make clean
[peter@kentsfield-01 tachyon_insp_xe]$ make

Now can run inspxe-cl, but please check executable generated first. (Even I can't see applications' screen update since non-root user has no privilege to open X11 display - but memory issues in problem still can be detected)
I wonder if there is version issue, or some components are corrupted - you need to uninstall/reinstall the product?

[peter@kentsfield-01 tachyon_insp_xe]$ inspxe-cl -collect mi2 -- ./tachyon.find_and_fix_memory_errors dat/simpleballs.dat
Used suppression file(s): []
Xlib: connection to "localhost:10.0" refused by server
Xlib: PuTTY X11 proxy: wrong authentication protocol attempted
Can't open X11 display localhost:10.0
Scene contains 8 bounded objects.

CPU Time: 3.197 seconds.

7 new problem(s) found
1 Invalid memory access problem(s) detected
5 Memory leak problem(s) detected
1 Mismatched allocation/deallocation problem(s) detected

0 Kudos
Luca2
Beginner
3,875 Views
I don't know what to say: I downloaded the suite from the official Intel Product page, and I was not asked which update I wanted. Actually I didn't even noticed that there were 2 updates.
The installation proceeded alright with no warnings, and I followed default suggestions in all of the steps, so I strongly doubt that a re-installation could solve the issue. Moreover the compiler works perfectly well.
Is it possible that there is an incompatibilty with Ubuntu 10.10? Because this is the version I have and, if I am not wrong, only 10.04 is officially supported.
0 Kudos
Peter_W_Intel
Employee
3,875 Views
Thanks for your OS info. It's a goodnews that compiler can work well.

I suggest touninstall/reinstall the component - Inspector XE 2011. Then verify example ./tachyon.find_and_fix_memory_errorsagain, if Inspetcor XE can't detect error, can you try other simple example without X11 window required.

If it is not application specific problem, I suggest to work on other supported OS in release notes:

Supported operating systems:
o Red Hat* Enterprise Linux* 4 Update 7, 8
o Red Hat* Enterprise Linux* 5 Update 4 and 5
o Red Hat* Enterprise Linux* 6
o Red Hat* Fedora* 12, 13
o SUSE* Linux Enterprise Server* 10 Service Pack 2 and 3
o SUSE* Linux Enterprise Server* 11
o CentOS* 5.5
o Asianux* 3.0
o Debian* 4, 5

(I don't mean Ubuntu* 10.10 can't work, but not guaranteed. Sorry that I worked on RHEL5 and can't reproduce this problem)

Regards, Peter
0 Kudos
Luca2
Beginner
3,875 Views
I am surprised not to see any Ubuntu version in your list of supported OSs. Are you sure that not even the 10.04 LTS is supported?
I have run the unistall command and unistalled only "Intel Inspector XE 2011 Update 2";
then run the install command to install it again.
As expected in the pre-requisites checkings it founds this problem about the OS, and gives the following as supported OSs:
- Red Hat Enterprise Linux* 4.0, 5.0, 6.0 (IA-32/Intel 64)
- Fedora* 12, 13 (IA-32/Intel 64)
- SuSE Linux* Enterprise Server* 10.x, 11.0 (IA-32)
- SuSE Linux* Enterprise Server* 10.0, 11.1 SP1 (Intel 64)
- Asianux* Server 3.0 (IA-32/Intel 64)
- Ubuntu* 10.04 (IA-32/Intel 64)
- Debian 5.0 (IA-32/Intel 64)
However it shows this warning only concerning the compiler and the amplifier.
The installation the proceeds with no problems:
--------------------------------------------------------------------------------
Installing Inspector XE Command line interface component... done
--------------------------------------------------------------------------------
Installing Inspector XE Graphical user interface component... done
--------------------------------------------------------------------------------
I then go to/opt/intel/inspector_xe_2011/samples/en/tachyon_insp_xe and run./tachyon.find_and_fix_memory_errors.
This still returns:
Using Default Image file
Use -? for additional options and usage model
Scene contains 8 bounded objects.
CPU Time: 0.048 seconds.
If I attach dat/simpleballs.dat to the command I just get rid of the first 2 lines, the rest of the output is the same.
Similarly if I run the test I get the same couple of errors I was obtaining before.
Which are the other tests/tutorials that you suggest me to do?
0 Kudos
Peter_W_Intel
Employee
3,875 Views

Please note that I posted on March 15, 2011 7:25 PM CST (I worked on RHEL5) - which is for Update 1. I cannot find any Update 2 info so far from https://registrationcenter.intel.com/RegCenter/Download.aspx?productid=1392&sn=


Also you can find supported OSs from http://registrationcenter.intel.com/irc_nas/2046/Release_Notes_InspectorXE_Linux.pdf

I don't know if it was caused by X11 libraries or other reasons on Ubuntu 10.04 or 10.10. My suggestions are:
1) test non-graphic application with Inspetcor XE 2011, write it simply by yourself like as -
void memory_leak()
{
printf("test memory leak\n");

int b[16];
int *a = (int *)malloc(16*sizeof(int));

for (int i=0; i<16; i++)
b = *a++;

}

2) test tachyon.find_and_fix_memory_errors on other OS, whichis claimedto be supported in release notes.

I still think this is not the product issue, but is application specific issue on specific OS - since youhave problem to run tachyon.find_and_fix_memory_error without Inspector XE. But I can do it on RHEL5

[root@kentsfield-01 tachyon_insp_xe]# ./tachyon.find_and_fix_memory_errors dat/simpleballs.dat
Note: using generic X11 with default visual for 24-bit color depth
Scene contains 8 bounded objects.

CPU Time: 0.037 seconds.

Regards, Peter

0 Kudos
Luca2
Beginner
3,875 Views
Dear Peter,
I have no idea why I have the Update 2. As I said I have downloadedIntel Parallel Studio XE 2011 from the Intel product page, the file I downloaded was named "parallel_studio_xe_2011_update1.tar", but then in the installation process this is the list of what has been installed:
--------------------------------------------------------------------------------
Installing Intel C++ Compiler XE 12.0 Update 2 for Linux*
(for applications running on IA-32) component... done
--------------------------------------------------------------------------------
Installing Intel C++ Compiler XE 12.0 Update 2 for Linux*
(for applications running on Intel 64) component... done
--------------------------------------------------------------------------------
Installing Intel Fortran Compiler XE 12.0 Update 2 for Linux*
(for applications running on IA-32) component... done
--------------------------------------------------------------------------------
Installing Intel Fortran Compiler XE 12.0 Update 2 for Linux*
(for applications running on Intel 64) component... done
--------------------------------------------------------------------------------
Installing Intel Debugger 12.0 Update 2 for Linux*
(for applications running on IA-32) component... done
--------------------------------------------------------------------------------
Installing Intel Debugger 12.0 Update 2 for Linux*
(for applications running on Intel 64) component... done
--------------------------------------------------------------------------------
Installing Intel Math Kernel Library 10.3 Update 2 for Linux*
(for applications running on IA-32) component... done
--------------------------------------------------------------------------------
Installing Intel Math Kernel Library 10.3 Update 2 for Linux*
(for applications running on Intel 64) component... done
--------------------------------------------------------------------------------
Installing Intel Integrated Performance Primitives 7.0 Update 2 for Linux*
(for applications running on IA-32) component... done
--------------------------------------------------------------------------------
Installing Intel Integrated Performance Primitives 7.0 Update 2 for Linux*
(for applications running on Intel 64) component... done
--------------------------------------------------------------------------------
Installing Intel Threading Building Blocks 3.0 Update 5 core files and
examples for Linux* component... done
--------------------------------------------------------------------------------
Installing Inspector XE Command line interface component... done
--------------------------------------------------------------------------------
Installing Inspector XE Graphical user interface component... done
--------------------------------------------------------------------------------
Installing Amplifier XE Command line interface component... done
--------------------------------------------------------------------------------
Installing Amplifier XE driver kit component... done
--------------------------------------------------------------------------------
Installing Amplifier XE user interface component... done
--------------------------------------------------------------------------------
I have considered the test code you proposed:
#include
void memory_leak()
{
printf("test memory leak\n");
int b[16];
int *a = (int *)malloc(16*sizeof(int));
int i=0;
for (i=0; i<16; i++)
b = *a++;
}
int main()
{
memory_leak();
return 0;
}
When I run it I simply get:
test memory leak
When I use the inspector, I still get the errors:
$ inspxe-cl -collect mi2 -- ./a.out
Used suppression file(s): []
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.
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.
Error: Error: Cannot find input file. Cannot continue.
As regards using a different OS, I could test it on a MAC (I believe OS X 10.6), but that's not my computer, so that would just be a test. In the end I'd like to use the suite on my corei7 machine, if needed I could downgrade Ubuntu to the LTS 10.04.
Regards,
Luca-
0 Kudos
Peter_W_Intel
Employee
3,875 Views
What I can say are - 1Please downloadlatest package fromInspector XE 2011 site, I posted it last time. 2)Inspector XE doesn't support MAC OS. 3) Testing on Ubuntu* 10.04 isquite a good idea.

Good luck.

Regards, Peter
0 Kudos
Leonard_Marziliano
3,875 Views
Hi,

I'm having the same issue with inspectorwith my application. I basically have the same setup (Ubunu 10.10, inspector update 2, etc) as you. Did youlook into it further ? If so, have you found a solution or your still having problems ?

Cheers,
Leo
0 Kudos
Alexis_R_
New Contributor I
3,875 Views
I am having the same problem too.
Here's what I noticed:
- when installing the inspector from its own package, you get update 1
- when installing the inspector which comes bundled with the parallel studio, you get update 2, which has a larger build number. This packaging inconsistency just adds confusion, apparently even for Intel support!
- under Ubuntu 10.10, inspector updates 1 and 2 both fail with the internal errors
- under Fedora 13 (which I installed in a virtual machine for the purpose), inspector 1 appears to work fine. I have not tested update 2.

I have not tried to investigate what it is about Ubuntu 10.10 that throws the inspector off.

Hope this helps!
0 Kudos
Peter_W_Intel
Employee
3,875 Views
What I can say are - 1Please downloadlatest package fromInspector XE 2011 site, I posted it last time. 2)Inspector XE doesn't support MAC OS. 3) Testing on Ubuntu* 10.04 isquite a good idea.

Good luck.

Regards, Peter

See my this post:-)

0 Kudos
Alexis_R_
New Contributor I
3,875 Views
Peter,

I am not sure who you were replying to in #12.

I did read your post #9 and followed that link. As I said, the link you gave to leads to a download of update 1 of the Inspector, which is build #131372.

However, if you go to download the Parallel Studio (http://registrationcenter-download.intel.com/akdlm/irc_nas/2065/parallel_studio_xe_2011_update1_intel64.tgz), you get a later version of Inspector as part of the package: it is called update 2 and has build ID #134657.

This is why your instructions are self-contradictory: you're telling users to download the "latest" Inspector, but in fact the latest Inspector build appears to be elsewhere.

In any case, to re-iterate the point I made earlier, the Inspector version used does not seem to make a difference in my hands under Ubuntu 10.10 or Fedora 13. Both fail under the former and succeed under the latter.

0 Kudos
Peter_W_Intel
Employee
3,875 Views
You are right! Please use latest update 1 of Inspector XE, click here - https://registrationcenter.intel.com/RegCenter/Download.aspx?productid=1392
0 Kudos
Luca2
Beginner
3,875 Views
Hello everyone I have some news, after a long pause, in the last few days I have looked into this issue again and done few tests.
I have found out that if I login as root the inspector *seems* to work just fine:
root@...# inspxe-cl -collect mi2 -- ./tachyon.find_and_fix_memory_errors dat/simpleballs.dat
Used suppression file(s): []
Scene contains 8 bounded objects.
CPU Time: 3.135 seconds.
11 new problem(s) found
1 Invalid memory access problem(s) detected
8 Memory leak problem(s) detected
1 Mismatched allocation/deallocation problem(s) detected
1 Uninitialized partial memory access problem(s) detected
However if I run the inspector using sudo, i.e.:
sudoinspxe-cl -collect mi2 -- ./tachyon.find_and_fix_memory_errors dat/simpleballs.dat
I get:
sudo: inspxe-cl: command not found
and in fact if I login as root inspxe-cl is not auomatically loaded in the path and I need to:
export PATH=$PATH:/opt/intel/inspector_xe_2011/bin64/

Similarly if I use the gui version it works alright. No signs of the previous errors.
However the inspector find 11 problems, while on the tutorial it shows 10. Probably this minor difference could be due to the difference in the update.


Now, I find quite strange that one has to login as root in order to use this program. Is this normal? Is there something that *silently* went wrong during the installation?I am afraid that I do not have much experience with installing things on unix machines, but I havecarefullyfollowed all of the instructions provided during the installation procedure and everything went very smooth.
By the way, I have first tested this using Update 1, then un-installed it and re-installed Update 2. Results are the same.
Although we are here considering only the Inspector, let me just mention that something similar is happening also with VTune Amplifier, i.e. when running as a normal user returns some errors, while works fine with root user.

Finally, can I ask you what shall I do to see a video output when running./tachyon.find_and_fix_memory_errors? When I run it I just get the following text output and no window:
Scene contains 8 bounded objects.
CPU Time: 0.037 seconds.
Are there some specific libraries that I should download?

It looks as if you are doing some steps forward ... I hope they are real.
0 Kudos
Reply