VirtualBox

Ignore:
Timestamp:
Jun 5, 2022 7:20:38 PM (3 years ago)
Author:
vboxsync
Message:

IPRT/thread-posix.cpp: Make sure we don't block SIGTRAP or the M1 will just spin on assertions. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/thread-posix.cpp

    r95190 r95196  
    251251        sigset_t SigSet;
    252252        sigfillset(&SigSet);
     253        sigdelset(&SigSet, SIGILL);  /* On the m1 we end up spinning on UDF ... */
     254        sigdelset(&SigSet, SIGTRAP); /* ... and BRK instruction if these signals are masked. */
     255        sigdelset(&SigSet, SIGFPE);  /* Just adding the rest here to be on the safe side. */
     256        sigdelset(&SigSet, SIGBUS);
     257        sigdelset(&SigSet, SIGSEGV);
    253258        int rc = sigprocmask(SIG_BLOCK, &SigSet, NULL);
    254259        AssertMsg(rc == 0, ("rc=%Rrc errno=%d\n", RTErrConvertFromErrno(errno), errno)); RT_NOREF(rc);
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