Skip to content

Commit 930ee7b

Browse files
committed
Disable NORETURN annotation on PROCAbort for Arm
Contributes to dotnet#86273
1 parent 82dac28 commit 930ee7b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/coreclr/pal/src/include/pal/process.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ BOOL PROCAbortInitialize();
155155
156156
Does not return
157157
--*/
158+
#if !defined(HOST_ARM) // PAL_NORETURN produces broken unwinding information for this method
159+
// making crash dumps impossible to analyze
158160
PAL_NORETURN
161+
#endif
159162
VOID PROCAbort(int signal = SIGABRT, siginfo_t* siginfo = nullptr);
160163

161164
/*++

src/coreclr/pal/src/thread/process.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2541,7 +2541,9 @@ PROCCreateCrashDumpIfEnabled(int signal, siginfo_t* siginfo, bool serialize)
25412541
25422542
Does not return
25432543
--*/
2544+
#if !defined(HOST_ARM)
25442545
PAL_NORETURN
2546+
#endif
25452547
VOID
25462548
PROCAbort(int signal, siginfo_t* siginfo)
25472549
{

0 commit comments

Comments
 (0)