Debugging Hung Build
I'm having a problem with my build where it hangs but I'm not getting any information back from it.
I can run the Nant command (which runs a python which calls VSIBUILD) from the commandline of a machine just fine and the build completes successfully.
However when I run the build from Team City it's hanging as soon as VSIBUILD loads my solution. I'm assuming something is popping up, probably a perforce login screen but I'm not sure how to check to see what it is. Is there a method of tracking this kind of hang down?
Any help would be most appreciated.
Thanks
Dave
Please sign in to leave a comment.
Hello,
Could you please try 'View thread dump' link to capture thread dumps of
all java/.NET processes of the build.
What process uses the most of CPU (if any)?
What NAnt task is used to start the VSIBUILD? What version of NAnt is it?
Could you please capture process tree from the build agent at the time
it seems hung. For doing this, you may use Sysinternals Process Explorer.
Thanks!
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
View Thread Dump comes up with: Error -68. Failed to get thread dump from non-java process.
None of the build processes are using the CPU (Sys Idle Process is using all).
I'm using Nant to call a python script to call VSIBuild (ie exec task).
Here's the process output:
To me it looks like this is an issue that vsibuild is spawning devenv.exe under a different login (though they do both say they are under the same account name).
Ideally I just need a way to figure out what is hanging it and it seems like the thread dump is the place, but it's not giving me any info.
Process PID CPU Description Company Name
System Idle Process 0 99.26
Interrupts n/a Hardware Interrupts
DPCs n/a Deferred Procedure Calls
System 4
smss.exe 288 Windows NT Session Manager Microsoft Corporation
csrss.exe 336 Client Server Runtime Process Microsoft Corporation
winlogon.exe 360 Windows NT Logon Application Microsoft Corporation
services.exe 408 Services and Controller app Microsoft Corporation
svchost.exe 600 Generic Host Process for Win32 Services Microsoft Corporation
unsecapp.exe 1836 WMI Microsoft Corporation
wmiprvse.exe 1960 WMI Microsoft Corporation
PegasusProviderAdapter.exe 2036 IBM Corporation
wmiprvse.exe 2088 WMI Microsoft Corporation
unsecapp.exe 2632 WMI Microsoft Corporation
devenv.exe 3920 Microsoft Visual Studio 2005 Microsoft Corporation
devenv.exe 1632 Microsoft Visual Studio 2005 Microsoft Corporation
svchost.exe 664 Generic Host Process for Win32 Services Microsoft Corporation
svchost.exe 736 Generic Host Process for Win32 Services Microsoft Corporation
svchost.exe 776 Generic Host Process for Win32 Services Microsoft Corporation
svchost.exe 792 Generic Host Process for Win32 Services Microsoft Corporation
spoolsv.exe 944 Spooler SubSystem App Microsoft Corporation
msdtc.exe 968 MS DTCconsole program Microsoft Corporation
cimlistener.exe 1132 OpenSource Pegasus
svchost.exe 1196 Generic Host Process for Win32 Services Microsoft Corporation
IBMSA.exe 1220 IBM Corporation
slp_srvreg.exe 1236
sqlservr.exe 1256 SQL Server Windows NT Microsoft Corporation
svchost.exe 1300 Generic Host Process for Win32 Services Microsoft Corporation
TeamCityAgentService-windows-x86-32.exe 1576
java.exe 1860 Java(TM) 2 Platform Standard Edition binary Sun Microsystems, Inc.
java.exe 2536 Java(TM) 2 Platform Standard Edition binary Sun Microsystems, Inc.
NAnt.exe 3216 NAnt http://nant.sourceforge.net
python.exe 1844
vsibuild.exe 3512 VSI command line building utility
tier1slp.exe 1592 IBM Corporation
twgipcsv.exe 1604 IBM Corporation
twgipc.exe 1624 IBM Corporation
twgescli.exe 2156 IBM Corporation
twgmonit.exe 2236 IBM Corporation
winvnc4.exe 1652 VNC Server Free Edition for Win32 RealVNC Ltd.
wmicimserver.exe 1732 IBM Corporation
svchost.exe 2364 Generic Host Process for Win32 Services Microsoft Corporation
svchost.exe 3264 Generic Host Process for Win32 Services Microsoft Corporation
dbsagent.exe 2420 SN-DBS V2 Agent SN Systems
snclm.exe 3440 Client License Manager
lsass.exe 420 LSA Shell Microsoft Corporation
logon.scr 2740 Logon Screen Saver Microsoft Corporation
csrss.exe 2956 Client Server Runtime Process Microsoft Corporation
winlogon.exe 2984 Windows NT Logon Application Microsoft Corporation
rdpclip.exe 3204 RDP Clip Monitor Microsoft Corporation
explorer.exe 3328 Windows Explorer Microsoft Corporation
BacsTray.exe 3392 BacsTray Application Broadcom Corporation
P4win.exe 188 Perforce Windows Client Perforce Software
cmd.exe 3448 Windows Command Processor Microsoft Corporation
procexp.exe 3116 0.77 Sysinternals Process Explorer Sysinternals - www.sysinternals.com
snclm.exe 2868 Client License Manager
Are you running your agent as windows service? Probably the user under which service is running does not have enough rights. Try to specify another user for this service or try to lauch agent via agent.bat.
--
Pavel Sher