Skip to content

Commit

Permalink
Disable NORETURN annotation on PROCAbort for Arm (#99587)
Browse files Browse the repository at this point in the history
* Disable NORETURN annotation on PROCAbort for Arm

Contributes to #86273

* Fix build break
  • Loading branch information
jkotas committed Mar 13, 2024
1 parent b181ed5 commit e4fceb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/coreclr/pal/src/include/pal/process.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ BOOL PROCAbortInitialize();
Does not return
--*/
#if !defined(HOST_ARM) // PAL_NORETURN produces broken unwinding information for this method
// making crash dumps impossible to analyze
PAL_NORETURN
#endif
VOID PROCAbort(int signal = SIGABRT, siginfo_t* siginfo = nullptr);

/*++
Expand Down
4 changes: 3 additions & 1 deletion src/coreclr/pal/src/thread/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ RaiseFailFastException(
ENTRY("RaiseFailFastException");

TerminateCurrentProcessNoExit(TRUE);
PROCAbort();
for (;;) PROCAbort();

LOGEXIT("RaiseFailFastException");
PERF_EXIT(RaiseFailFastException);
Expand Down Expand Up @@ -2541,7 +2541,9 @@ PROCCreateCrashDumpIfEnabled(int signal, siginfo_t* siginfo, bool serialize)
Does not return
--*/
#if !defined(HOST_ARM)
PAL_NORETURN
#endif
VOID
PROCAbort(int signal, siginfo_t* siginfo)
{
Expand Down

0 comments on commit e4fceb3

Please sign in to comment.