VirtualBox

Changeset 32353 in vbox


Ignore:
Timestamp:
Sep 9, 2010 12:53:41 PM (14 years ago)
Author:
vboxsync
Message:

Runtime/r3/coredumper: Fix taking live core when signalled externally.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/solaris/coredumper-solaris.cpp

    r32350 r32353  
    6565volatile static bool       g_fCoreDumpDeliberate = false;
    6666volatile static bool       g_fCoreDumpInProgress = false;
    67 volatile static bool       g_fCoreDumpLiveCore = false;
    6867volatile static uint32_t   g_fCoreDumpFlags = 0;
    6968static char                g_szCoreDumpDir[PATH_MAX] = { 0 };
     
    21722171    }
    21732172
    2174     if (ASMAtomicReadBool(&g_fCoreDumpLiveCore) == false)
     2173    if (Sig == SIGSEGV || Sig == SIGBUS)
    21752174    {
    21762175        /*
     
    22282227
    22292228    ASMAtomicWriteBool(&g_fCoreDumpDeliberate, true);
    2230     ASMAtomicWriteBool(&g_fCoreDumpLiveCore, fLiveCore);
    22312229
    22322230    if (fLiveCore == false)
    22332231        raise(SIGSEGV);
    22342232    else
    2235     {
    22362233        raise(SIGUSR2);
    2237         ASMAtomicWriteBool(&g_fCoreDumpLiveCore, false);
    2238     }
    22392234
    22402235    ASMAtomicWriteBool(&g_fCoreDumpDeliberate, false);
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