<< Back to previous view

[QB-1527] Build hangs and cannot be stopped
Created: 23/Jan/13  Updated: 07/Feb/13

Status: Closed
Project: QuickBuild
Component/s: None
Affects Version/s: 4.0.88
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Martin Weindel Assigned To: Robin Shen
Resolution: Fixed Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown
Environment: Windows 7 Prof, Java 1.6 Update 31

File Attachments: PNG File qb1.png     PNG File qb2.png    

 Description   
Sporadically, builds do not finish. But no processes related to the build are running.
Requesting to stop the build does not help either.
As a result, new builds for these hanging build configuration cannot be started anymore.
The only way to clean up is the restart the QuickBuild server. As we are using QB also for long running load test builds (lasting multiple days), this is very annoying.

Here is the end of the log output of the build (taken multiple hours after the last log entry). Note that the step TS01 has no explicit post-execution action.

08:44:53,012 [master>TTrunk>TS00>TS01?OSName=Windows_NT>TS02?Target_Os=win&Toolset=vc10>TS03?OSPlat=x86>TBuilder@ska-wn-build01:8810] INFO - Executing post-execute action...
08:44:53,053 [master>TTrunk>TS00>TS01?OSName=Windows_NT>TS02?Target_Os=win&Toolset=vc10>TS03?OSPlat=x86>TxSUnitReport@ska-wn-build01:8810] INFO - Checking step execute condition...
08:44:53,053 [master>TTrunk>TS00>TS01?OSName=Windows_NT>TS02?Target_Os=win&Toolset=vc10>TS03?OSPlat=x86>TxSUnitReport@ska-wn-build01:8810] INFO - Step execute condition satisfied, executing...
08:44:54,069 [master>TTrunk>TS00>TS01?OSName=Windows_NT>TS02?Target_Os=win&Toolset=vc10>TS03?OSPlat=x86>TxSUnitReport@ska-wn-build01:8810] INFO - Executing pre-execute action...
08:44:54,069 [master>TTrunk>TS00>TS01?OSName=Windows_NT>TS02?Target_Os=win&Toolset=vc10>TS03?OSPlat=x86>TxSUnitReport@ska-wn-build01:8810] INFO - Running step...
08:44:54,069 [master>TTrunk>TS00>TS01?OSName=Windows_NT>TS02?Target_Os=win&Toolset=vc10>TS03?OSPlat=x86>TxSUnitReport@ska-wn-build01:8810] INFO - The report dir: D:\quickbuild-4.0.88\workspace\root\xserver\servers\xlocate\module\trunk\vc10\x86\target does not exists.
08:44:54,069 [master>TTrunk>TS00>TS01?OSName=Windows_NT>TS02?Target_Os=win&Toolset=vc10>TS03?OSPlat=x86>TxSUnitReport@ska-wn-build01:8810] INFO - Executing post-execute action...
08:44:54,109 [master>TTrunk>TS00>TS01?OSName=Windows_NT>TS02?Target_Os=win&Toolset=vc10>TS03?OSPlat=x86>TPublisher@ska-wn-build01:8810] INFO - Checking step execute condition...
08:44:54,114 [master>TTrunk>TS00>TS01?OSName=Windows_NT>TS02?Target_Os=win&Toolset=vc10>TS03?OSPlat=x86>TPublisher@ska-wn-build01:8810] INFO - Step execute condition not satisfied, step will be skipped.
08:44:54,140 [master>TTrunk>TS00>TS01?OSName=Windows_NT>TS02?Target_Os=win&Toolset=vc10>TS03?OSPlat=x86>Tsonar@ska-wn-build01:8810] INFO - Checking step execute condition...
08:44:54,140 [master>TTrunk>TS00>TS01?OSName=Windows_NT>TS02?Target_Os=win&Toolset=vc10>TS03?OSPlat=x86>Tsonar@ska-wn-build01:8810] INFO - Step execute condition not satisfied, step will be skipped.
08:44:54,153 [master>TTrunk>TS00>TS01?OSName=Windows_NT>TS02?Target_Os=win&Toolset=vc10>TS03?OSPlat=x86@ska-wn-build01:8810] INFO - Executing post-execute action...
08:44:54,184 [master>TTrunk>TS00>TS01?OSName=Windows_NT>TS02?Target_Os=win&Toolset=vc10@ska-wn-build01:8810] INFO - Executing post-execute action...
08:44:54,231 [master>TTrunk>TS00>TS01?OSName=Windows_NT@ska-wn-build01:8810] INFO - Executing post-execute action...




 Comments   
Comment by Martin Weindel [ 23/Jan/13 11:51 AM ]
Screenshot of the step status
Comment by Martin Weindel [ 23/Jan/13 11:57 AM ]
step status of second hanging build
Comment by Robin Shen [ 24/Jan/13 04:37 AM ]
When build stucks, please run below command to print stack trace of QB server
jstack <QB server JVM process id> (note that QB server creates two processes after starting, the wrapper process and JVM process)

Ideally this command should be run when no other builds run except the stuck builds so that the stack trace is not cluttered with information of other builds.
Comment by Martin Weindel [ 06/Feb/13 04:45 PM ]
Problem does not appear anymore after switching from 32 to 64 bit Java. It seems to be related to some resource limitations (memory or threads) on 32 bit JREs.
Comment by Robin Shen [ 07/Feb/13 12:11 AM ]
Closing this issue now. Feel free to re-open if it appears again.
Generated at Tue May 21 08:41:19 UTC 2024 using JIRA 189.