VirtualBox

Changeset 31801 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Aug 19, 2010 6:41:27 PM (14 years ago)
Author:
vboxsync
Message:

tstRTCoreDump: fixed memory attributes in core.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTCoreDump.cpp

    r31795 r31801  
    839839                            for (uint64_t i = 0; i < pVBoxProc->cMappings; i++, pMap++, pCur++)
    840840                            {
    841                                 pCur->pMap = *pMap;
     841                                memcpy(&pCur->pMap, pMap, sizeof(pCur->pMap));
    842842                                if (pPrev)
    843843                                    pPrev->pNext = pCur;
     
    17701770        ProgHdr.p_filesz = pMapInfo->pMap.pr_size;      /* Size of the file image of the mapping */
    17711771
     1772        ProgHdr.p_flags = 0;                            /* Reset fields in a loop when needed! */
    17721773        if (pMapInfo->pMap.pr_mflags & MA_READ)
    17731774            ProgHdr.p_flags |= PF_R;
     
    21492150        else
    21502151        {
     2152            /* @todo detect if we are awaiting for ourselves, if so don't. */
    21512153            CORELOGREL(("CoreSigHandler: Core dump already in progress! Waiting before signalling Sig=%d.\n", Sig));
    21522154            int64_t iTimeout = 10000;  /* timeout (ms) */
     
    22132215     * Send signal to dump core.
    22142216     */
    2215     kill(getpid(), SIGUSR1);
     2217    kill(getpid(), SIGSEGV);
    22162218    g_cErrors++;
    22172219
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