[PATCH] [RFC] Use llvm-symbolizer to symbolize LLVM/Clang crash dumps
Ed Maste
emaste at freebsd.org
Thu Oct 9 13:08:10 PDT 2014
@joerg, it looks like when we implemented dl_iterate_phdr in FreeBSD we returned the l_name if available rather than the path - i.e., `libc.so.7` instead of `/usr/lib/libc.so.7`, and NetBSD copied that implementation.
However, the Linux manpage claims:
> The dlpi_name field is a null-terminated string giving the pathname from which the shared object was loaded.
I'm looking at trying to make the following change or something similar to our rtld:
```
- phdr_info->dlpi_name = STAILQ_FIRST(&obj->names) ?
- STAILQ_FIRST(&obj->names)->name : obj->path;
+ phdr_info->dlpi_name = obj->path;
```
http://reviews.llvm.org/D5610
More information about the llvm-commits
mailing list