HomeFreeBSD

libspl/assert: dump backtrace in assert

Description

libspl/assert: dump backtrace in assert

Adds a check for the backtrace() function. If available, uses it to show
a stack backtrace in the assertion output.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #16140

Details

Provenance
rob.norris_klarasystems.comAuthored on Apr 27 2024, 11:35 AM
Tony Hutter <hutter2@llnl.gov>Committed on Jul 17 2024, 9:54 PM
Parents
rG3ca305f87377: libspl/assert: add lock around assertion output
Branches
Unknown
Tags
Unknown