Re: Replacing abort() with __builtin_trap()? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Replacing abort() with __builtin_trap()?
Date
Msg-id 183981.1688320553@sss.pgh.pa.us
Whole thread Raw
In response to Replacing abort() with __builtin_trap()?  (Andres Freund <andres@anarazel.de>)
Responses Re: Replacing abort() with __builtin_trap()?
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> I'd like to propose that we do a configure test for __builtin_trap() and use
> it, if available, before the abort() in ExceptionalCondition(). Perhaps also
> for PANIC, but it's not as clear to me whether we should.

Does that still result in the same process exit signal being reported to
the postmaster?  The GCC manual makes it sound like the reported signal
could be platform-dependent, which'd be kind of confusing.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Replacing abort() with __builtin_trap()?
Next
From: Andres Freund
Date:
Subject: Re: Replacing abort() with __builtin_trap()?