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

Having trouble running Hot Spot Analysis on a program

Floris_C_
Beginner
1,159 Views

Hi,

I am currently evaluating Intel VTune Amplifier XE 2015, but I am having trouble running a Basic Hotspot analysis.  When executed from Visual Studio, the app starts up.   Takes a while to load, then just crashes.   VTune then shows the following 

"Failed to write probes in process, can't complete attach"

After some debugging, the following API call seems to be the cause of this. -> ConvertStringSecurityDescriptorToSecurityDescriptor
Without VTune analyzing the code, this runs without any problems.

Any ideas?

0 Kudos
10 Replies
Floris_C_
Beginner
1,159 Views

Below is the full error details

Collection failed
    08/27/14 14:37:06  Collection failed. The data cannot be displayed. 
    [Instrumentation Engine]: Source\pin\vm_w\attach_windows.cpp:LEVEL_VM::ATTACH_FLOW_MANAGER_IMPL::NotifyPinInitialized:LEVEL_VM::ATTACH_FLOW_MANAGER_IMPL::NotifyPinInitialized:391: Failed to write probes in process, can't complete attach! 

0 Kudos
Bernard
Valued Contributor I
1,159 Views

>>>After some debugging, the following API call seems to be the cause of this. -> ConvertStringSecurityDescriptorToSecurityDescriptor>>>

Can you post faulting API call parameters as described in link pasted below?

http://msdn.microsoft.com/en-us/library/windows/desktop/aa376401(v=vs.85).aspx

0 Kudos
Floris_C_
Beginner
1,159 Views

Below is the code I am currently using.  This is a Visual Studio 2013 project, using Unicode character set

SECURITY_ATTRIBUTES security;	
ZeroMemory(&security, sizeof(security)); 
security.nLength = sizeof(security); 

ConvertStringSecurityDescriptorToSecurityDescriptor(TEXT("D:P(A;OICI;GA;;;SY)(A;OICI;GA;;;BA)(A;OICI;GWGR;;;IU)"), 
			                                            SDDL_REVISION_1, 
			                                            &security.lpSecurityDescriptor, 
			                                            NULL); 

 

 

0 Kudos
Bernard
Valued Contributor I
1,159 Views

@Floris

Your code looks correct. Can you post VS debugger output with the error description?

0 Kudos
Floris_C_
Beginner
1,159 Views

This is the output window for the session (no real useful info)

 

Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6229_none_d089f796442de10e\msvcr80.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\sechost.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\psapi.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\wininet.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\api-ms-win-downlevel-user32-l1-1-0.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\user32.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\lpk.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\usp10.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\api-ms-win-downlevel-shlwapi-l1-1-0.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\api-ms-win-downlevel-version-l1-1-0.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\version.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\api-ms-win-downlevel-normaliz-l1-1-0.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\normaliz.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\iertutil.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\api-ms-win-downlevel-advapi32-l1-1-0.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\userenv.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\profapi.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\msvcr100.dll'. Symbols loaded.
Loaded 'C:\Windows\SysWOW64\msvcp100.dll'. Symbols loaded.
Loaded 'C:\Windows\SysWOW64\ole32.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\msvcp120.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\msvcr120.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\imm32.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\msctf.dll'. Cannot find or open the PDB file.
Loaded 'C:\Program Files (x86)\Intel\VTune Amplifier XE 2015\bin32\pinvm.dll'. Module was built without symbols.
Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\cryptsp.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\rsaenh.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oraclient11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oracore11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oranls11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oraunls11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\orauts.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\ws2_32.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\nsi.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\winmm.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oracommon11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\orasnls11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\orageneric11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oraxml11.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6229_none_d089f796442de10e\msvcp80.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oran11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oranl11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\orantcp11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oranldap11.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\wsock32.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oraldapclnt11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\orancrypt11.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\IPHLPAPI.DLL'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\winnsi.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\orazt11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oranro11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oranhost11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\orancds11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\orantns11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oraztkg11.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\secur32.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\orapls11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\ORASLAX11.DLL'. Module was built without symbols.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oravsn11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oraplp11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\orahasgen11.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\netapi32.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\netutils.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\srvcli.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\wkscli.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\logoncli.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\samcli.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oraocr11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oraocrb11.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oraocrutl11.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\dbghelp.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\shell32.dll'. Cannot find or open the PDB file.
Loaded 'C:\oracle\product\11.2.0\client_1\BIN\oracell11.dll'. Cannot find or open the PDB file.
Loaded 'C:\Program Files (x86)\Intel\VTune Amplifier XE 2015\bin32\tpsstool.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\ntmarta.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\SysWOW64\Wldap32.dll'. Cannot find or open the PDB file.
The thread 0x1aa4 has exited with code -1 (0xffffffff).
The thread 0x1aa8 has exited with code -1 (0xffffffff).
The thread 0x1320 has exited with code -1 (0xffffffff).
The thread 0x15c0 has exited with code -1 (0xffffffff).
The thread 0x1084 has exited with code -1 (0xffffffff).
The thread 0x1aac has exited with code -1 (0xffffffff).
The thread 0x1104 has exited with code -1 (0xffffffff).
The thread 0x2b60 has exited with code -1 (0xffffffff).
The thread 0x1080 has exited with code -1 (0xffffffff).
The thread 0x160 has exited with code -1 (0xffffffff).
The thread 0xa9c has exited with code -1 (0xffffffff).
The thread 0x2a68 has exited with code -1 (0xffffffff).
The thread 0x16fc has exited with code -1 (0xffffffff).
The thread 0x2204 has exited with code -1 (0xffffffff).
The thread 0x2900 has exited with code -1 (0xffffffff).
The thread 0x23c4 has exited with code -1 (0xffffffff).
The thread 0x1adc has exited with code -1 (0xffffffff).
The thread 0x2614 has exited with code -1 (0xffffffff).
The thread 0x1f28 has exited with code -1 (0xffffffff).
The thread 0x29ec has exited with code -1 (0xffffffff).
The thread 0x2a38 has exited with code -1 (0xffffffff).
The thread 0x29f0 has exited with code -1 (0xffffffff).
The thread 0x1ac8 has exited with code -1 (0xffffffff).
The thread 0x28cc has exited with code -1 (0xffffffff).
The thread 0x1ca0 has exited with code -1 (0xffffffff).
The thread 0x13a4 has exited with code -1 (0xffffffff).
The program '[8752] ClientService.exe' has exited with code -1 (0xffffffff).

 

 

0 Kudos
Bernard
Valued Contributor I
1,159 Views

 

 

 

 

 

How did you figure out that String Descriptor function is responsible for the crush?

0 Kudos
Floris_C_
Beginner
1,159 Views

I added a breakpoint at the start of my app.  Then attached to the process using the VTune stand alone utility.  I then proceeded to step through the code - until the program got to that line.  Stepped over it - and the app froze for a few seconds.  Then it just stopped.

0 Kudos
Bernard
Valued Contributor I
1,159 Views

Floris C. wrote:

I added a breakpoint at the start of my app.  Then attached to the process using the VTune stand alone utility.  I then proceeded to step through the code - until the program got to that line.  Stepped over it - and the app froze for a few seconds.  Then it just stopped.

In such a case you should try to inspect function's arguments passed on the stack. Which debugger do you use. Do you insert DebugBreak() function in your code?

0 Kudos
Floris_C_
Beginner
1,159 Views

iliyapolak wrote:

Quote:

Floris C. wrote:

I added a breakpoint at the start of my app.  Then attached to the process using the VTune stand alone utility.  I then proceeded to step through the code - until the program got to that line.  Stepped over it - and the app froze for a few seconds.  Then it just stopped.

 

In such a case you should try to inspect function's arguments passed on the stack. Which debugger do you use. Do you insert DebugBreak() function in your code?

I use Visual Studio 2013.   Its a VC++ App so I am not using DebugBreak() 

0 Kudos
Bernard
Valued Contributor I
1,159 Views

Floris C. wrote:

Quote:

iliyapolak wrote:

Quote:

Floris C. wrote:

I added a breakpoint at the start of my app.  Then attached to the process using the VTune stand alone utility.  I then proceeded to step through the code - until the program got to that line.  Stepped over it - and the app froze for a few seconds.  Then it just stopped.

 

In such a case you should try to inspect function's arguments passed on the stack. Which debugger do you use. Do you insert DebugBreak() function in your code?

 

I use Visual Studio 2013.   Its a VC++ App so I am not using DebugBreak()

Can you use Windbg for more in depth troubleshooting.

0 Kudos
Reply