We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f1ef9e commit f633284Copy full SHA for f633284
src/libstd/sys/unix/backtrace/printing/dladdr.rs
@@ -22,7 +22,8 @@ pub fn resolve_symname<F>(frame: Frame,
22
{
23
unsafe {
24
let mut info: Dl_info = intrinsics::init();
25
- let symname = if dladdr(frame.exact_position, &mut info) == 0 {
+ let symname = if dladdr(frame.exact_position, &mut info) == 0 ||
26
+ info.dli_sname.is_null() {
27
None
28
} else {
29
CStr::from_ptr(info.dli_sname).to_str().ok()
0 commit comments