VirtualBox

Changeset 64942 in vbox


Ignore:
Timestamp:
Dec 17, 2016 2:35:09 AM (8 years ago)
Author:
vboxsync
Message:

vsheriff: check for 'Error opening VBoxDrvStub: STATUS_OBJECT_NAME_NOT_FOUND' in VBoxHardening.log

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/batch/virtual_test_sheriff.py

    r64941 r64942  
    692692        ( True,  ktReason_Host_HostMemoryLow,                       'HostMemoryLow' ),
    693693        ( True,  ktReason_Host_HostMemoryLow,                       'Failed to procure handy pages; rc=VERR_NO_MEMORY' ),
     694    ];
     695
     696    ## Things we search a VBoxHardening.log file for to figure out why something went bust.
     697    katSimpleVBoxHardeningLogReasons = [
     698        # ( Whether to stop on hit, reason tuple, needle text. )
    694699        ( True,  ktReason_Host_DriverNotLoaded,                     'Error opening VBoxDrvStub:  STATUS_OBJECT_NAME_NOT_FOUND' ),
    695700    ];
     701
    696702
    697703    ## Things we search the _RIGHT_ _STRIPPED_ vgatext for.
     
    803809                        fFoundSomething = True;
    804810
     811            # Check VBoxHardening.log.
     812            if sNtHardLog is not None:
     813                for fStopOnHit, tReason, sNeedle in self.katSimpleVBoxHardeningLogReasons:
     814                    if sNtHardLog.find(sNeedle) > 0:
     815                        oCaseFile.noteReasonForId(tReason, oFailedResult.idTestResult);
     816                        if fStopOnHit:
     817                            return True;
     818                        fFoundSomething = True;
     819
    805820            #
    806821            # Check for repeated reboots...
     
    819834        #
    820835        sVMLog      = None;
     836        sNtHardLog  = None;
    821837        sScreenHash = None;
    822838        sKrnlLog    = None;
     
    825841        for oFile in oFailedResult.aoFiles:
    826842            if oFile.sKind == TestResultFileData.ksKind_LogReleaseVm:
    827                 if sVMLog is not None:
    828                     if investigateLogSet() is True:
    829                         return True;
    830                 sKrnlLog    = None;
    831                 sScreenHash = None;
    832                 sVgaText    = None;
    833                 sInfoText   = None;
    834                 sVMLog      = oCaseFile.getLogFile(oFile);
     843                if 'VBoxHardening.log' not in oFile.sFile:
     844                    if sVMLog is not None:
     845                        if investigateLogSet() is True:
     846                            return True;
     847                    sInfoText   = None;
     848                    sVgaText    = None;
     849                    sKrnlLog    = None;
     850                    sScreenHash = None;
     851                    sNtHardLog  = None;
     852                    sVMLog      = oCaseFile.getLogFile(oFile);
     853                else:
     854                    sNtHardLog  = oCaseFile.getLogFile(oFile);
    835855            elif oFile.sKind == TestResultFileData.ksKind_LogGuestKernel:
    836856                sKrnlLog  = oCaseFile.getLogFile(oFile);
     
    844864                    sScreenHash = sScreenHash.lower();
    845865                    self.vprint(u'%s  %s' % ( sScreenHash, oFile.sFile,));
    846         if sVMLog is not None and investigateLogSet() is True:
     866
     867        if    (   sVMLog     is not None \
     868               or sNtHardLog is not None) \
     869          and investigateLogSet() is True:
    847870            return True;
    848871
Note: See TracChangeset for help on using the changeset viewer.

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