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
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 1 2024, 5:52 PM
Parents
rGdec697ad683e: libspl/assert: add lock around assertion output
Branches
Unknown
Tags
Unknown