VirtualBox

Ignore:
Timestamp:
Mar 21, 2023 12:43:25 PM (21 months ago)
Author:
vboxsync
Message:

ValidationKit/{common/utils.py,testdriver/base.py}: Rework the
Solaris-specific core file configuration code to back up any existing
coreadm(8) changes before modifying the system-wide core file
configuration and then restore the original coreadm(8) setup afterwards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/common/utils.py

    r98931 r99086  
    14601460        # Some other useful locations as fallback.
    14611461        asDmpDirs.extend([
    1462             u'/var/cores/',
    1463             u'/var/core/',
     1462            u'/var/cores/'
    14641463        ]);
    14651464        #
     
    14691468        # the host needs to be tweaked via:
    14701469        #
    1471         # ```coreadm -g /path/to/cores/core.%f.%p```
     1470        # ```coreadm -g /var/cores/core.%f.%p```
    14721471        #
    1473         sMatchSuffix = '.%u.core' % (uPid,);
     1472        sMatchRegEx = r'core\..*\.%u' % (uPid);
    14741473        for sDir in asDmpDirs:
    14751474            sDir = os.path.expandvars(sDir);
     
    14821481            for sEntry in asDirEntries:
    14831482                fnLog('Entry: %s' % (os.path.join(sDir, sEntry)));
    1484                 if sEntry.endswith(sMatchSuffix):
     1483                if re.search(sMatchRegEx, sEntry):
    14851484                    sFull = os.path.join(sDir, sEntry);
    14861485                    fnLog('Found crash dump for %u: %s' % (uPid, sFull,));
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