HomeFreeBSD

libspl/assert: use libunwind for backtrace when available

Description

libspl/assert: use libunwind for backtrace when available

libunwind seems to do a better job of resolving a symbols than
backtrace(), and is also useful on platforms that don't have backtrace()
(eg musl). If it's available, use it.

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 30 2024, 12:37 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 1 2024, 5:52 PM
Parents
rG2152c405ba6a: libspl/assert: dump backtrace in assert
Branches
Unknown
Tags
Unknown