-
Notifications
You must be signed in to change notification settings - Fork 264
Closed
Labels
Description
Currently, the error callback function passed to libbacktrace
does nothing:
backtrace-rs/src/symbolize/libbacktrace.rs
Lines 156 to 158 in 190b2f9
extern "C" fn error_cb(_data: *mut c_void, _msg: *const c_char, _errnum: c_int) { | |
// do nothing for now | |
} |
Doing something here (printing an error, or just setting a flag that makes backtrace-rs
calls fail) will make it much easier to debug issues like rust-lang/rust#69151 - it took me quite a while to realize that the memory corruption I was seeing was the result of libbacktrace
intentionally freeing memory.