VirtualBox

Changeset 85448 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Jul 24, 2020 5:31:57 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139493
Message:

ValidationKit/testdriver: Try to gather and annotate a stack trace if starting a VM fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r84943 r85448  
    29452945                oTmp = SessionWrapper(oSession, oVM, self.oVBox, self.oVBoxMgr, self, True, sName, sLogFile);
    29462946                oTmp.addLogsToReport();
     2947
     2948                # Try to collect a stack trace of the process for fruther investigation of any startup hangs.
     2949                uPid = oTmp.getPid();
     2950                if uPid is not None:
     2951                    sHostProcessInfoHung = utils.processGetInfo(uPid, fSudo = True);
     2952                    if sHostProcessInfoHung is not None:
     2953                        reporter.log('Trying to annotate the hung VM startup process report, please stand by...');
     2954                        fRcTmp = self.annotateAndUploadProcessReport(sHostProcessInfoHung, 'vmprocess-startup-hung.log',
     2955                                                                     'process/report/vm', 'Annotated hung VM process state during startup');     # pylint: disable=line-too-long
     2956                        # Upload the raw log for manual annotation in case resolving failed.
     2957                        if not fRcTmp:
     2958                            reporter.log('Failed to annotate hung VM process report, uploading raw report');
     2959                            reporter.addLogString(sHostProcessInfoHung, 'vmprocess-startup-hung.log', 'process/report/vm',
     2960                                                  'Hung VM process state during startup');
     2961
    29472962                try:
    29482963                    if oSession is not None:
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette