On Mon, May 20, 2013 at 7:31 AM, Basile Starynkevitch
<bas...@starynkevitch.net> wrote:
>
> Currently (for GCC 4.8 at least) when a plugin crashes (ie. SIGSEGV) 
> libbacktrace is apparently not able
> to show backtrace information inside the plugin[s].
>
> I believe that, at least on GNU/Linux wich has dladdr, it would be nice to 
> extend libbacktrace
> to show backtrace information inside plugins (at least those compiled with 
> -g).
>
> Is is reasonably feasible? I'm not familiar with libbacktrace, but (since 
> MELT would be very happy with that)
> I might perhaps help....

That is actually supposed to work already.  The code is in
libbacktrace/elf.c.  It calls dl_iterate_phdr to find all the shared
libraries loaded into the process.  I never tested it with dlopen so I
can certainly believe that it doesn't work, but I don't know why it
doesn't work.

Ian

Reply via email to