HomeFreeBSD

abort2: Generate a core dump

Description

abort2: Generate a core dump

Call sigexit rather than exit1 so that a core is generated.

If running the SIGABRT handler is desired, this would need to use
kern_psignal() instead. In that case a userspace wrapper in libc
would be needed to force an exit if the handler doesn't exit. Given
that abort2(2)'s intended use case is when userland is in a
sufficiently bad state such that it can't safely call syslog(3) before
abort(3), a userspace abort2(3) wrapper in libc might be dubious.

Reviewed by: Olivier Certner <olce.freebsd@certner.fr>, emaste
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D42163

Details

Provenance
jhbAuthored on Nov 14 2023, 1:00 AM
Reviewer
olivier
Differential Revision
D42163: abort2: Generate a core dump
Parents
rGab063ac4444e: ipmi_ssif: Fix typo in debug print
Branches
Unknown
Tags
Unknown