* Does glibc support remote process backtracing
@ 2023-11-25 6:02 Abhijit Ray Chaudhury
2023-11-27 9:20 ` Florian Weimer
0 siblings, 1 reply; 5+ messages in thread
From: Abhijit Ray Chaudhury @ 2023-11-25 6:02 UTC (permalink / raw)
To: libc-help
[-- Attachment #1: Type: text/plain, Size: 230 bytes --]
Hi,
Libunwind supports remote process backtracing through libunwind-ptrace (
https://www.nongnu.org/libunwind/man/libunwind-ptrace(3).html ). Does glibc
also support remote process backtracing ?
Thanking you in advance,
-Abhijit
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Does glibc support remote process backtracing
2023-11-25 6:02 Does glibc support remote process backtracing Abhijit Ray Chaudhury
@ 2023-11-27 9:20 ` Florian Weimer
2023-11-28 7:35 ` Abhijit Ray Chaudhury
0 siblings, 1 reply; 5+ messages in thread
From: Florian Weimer @ 2023-11-27 9:20 UTC (permalink / raw)
To: Abhijit Ray Chaudhury via Libc-help; +Cc: Abhijit Ray Chaudhury
* Abhijit Ray Chaudhury via Libc-help:
> Hi,
> Libunwind supports remote process backtracing through libunwind-ptrace (
> https://www.nongnu.org/libunwind/man/libunwind-ptrace(3).html ). Does glibc
> also support remote process backtracing ?
For current architectures, glibc does not supply an implementation of
stack unwinding/backtrace generatio. We use libgcc_s for that (via the
unwind-link facility in glibc). There's no remote backtracing support
in libgcc_s.
There's a remote backtrace implementation in elfutils, which probably
has a greater affinity with the GNU toolchain on Linux (compared to
libunwind).
Thanks,
Florian
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Does glibc support remote process backtracing
2023-11-27 9:20 ` Florian Weimer
@ 2023-11-28 7:35 ` Abhijit Ray Chaudhury
2023-12-11 9:14 ` Florian Weimer
0 siblings, 1 reply; 5+ messages in thread
From: Abhijit Ray Chaudhury @ 2023-11-28 7:35 UTC (permalink / raw)
To: Florian Weimer; +Cc: Abhijit Ray Chaudhury via Libc-help
[-- Attachment #1: Type: text/plain, Size: 1251 bytes --]
Hi Florian,
Thanks a lot for replying. I need to do remote stack tracing , for which I
am using libunwind-ptrace . The problem is it does not work on VDSOs . It
treats VDSO memory mapping entry in /proc/<pid>/maps as a file and tries to
open it and subsequently fails.
I tried mailing in libunwind-dev, but it seemed dormant .
I need a library which works on both arm and x86_64 , do you think elfutils
would be a good option ?
Thanks in Advance,
-Abhijit
On Mon, Nov 27, 2023 at 2:50 PM Florian Weimer <fweimer@redhat.com> wrote:
> * Abhijit Ray Chaudhury via Libc-help:
>
> > Hi,
> > Libunwind supports remote process backtracing through libunwind-ptrace (
> > https://www.nongnu.org/libunwind/man/libunwind-ptrace(3).html ). Does
> glibc
> > also support remote process backtracing ?
>
> For current architectures, glibc does not supply an implementation of
> stack unwinding/backtrace generatio. We use libgcc_s for that (via the
> unwind-link facility in glibc). There's no remote backtracing support
> in libgcc_s.
>
> There's a remote backtrace implementation in elfutils, which probably
> has a greater affinity with the GNU toolchain on Linux (compared to
> libunwind).
>
> Thanks,
> Florian
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Does glibc support remote process backtracing
2023-11-28 7:35 ` Abhijit Ray Chaudhury
@ 2023-12-11 9:14 ` Florian Weimer
2023-12-11 15:50 ` Szabolcs Nagy
0 siblings, 1 reply; 5+ messages in thread
From: Florian Weimer @ 2023-12-11 9:14 UTC (permalink / raw)
To: Abhijit Ray Chaudhury; +Cc: Abhijit Ray Chaudhury via Libc-help
* Abhijit Ray Chaudhury:
> Hi Florian,
>
> Thanks a lot for replying. I need to do remote stack tracing , for which I am using libunwind-ptrace
> . The problem is it does not work on VDSOs . It treats VDSO memory mapping entry in
> /proc/<pid>/maps as a file and tries to open it and subsequently fails.
> I tried mailing in libunwind-dev, but it seemed dormant .
>
> I need a library which works on both arm and x86_64 , do you think elfutils would be a good option
> ?
The AArch64 vDSO did not have accurate unwinding information in the
past. We've got a Fedora bug for this:
kernel: vDSO lacks unwind information on aarch64
<https://bugzilla.redhat.com/show_bug.cgi?id=2044483>
I don't know if this has been fixed since then.
Thanks,
Florian
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Does glibc support remote process backtracing
2023-12-11 9:14 ` Florian Weimer
@ 2023-12-11 15:50 ` Szabolcs Nagy
0 siblings, 0 replies; 5+ messages in thread
From: Szabolcs Nagy @ 2023-12-11 15:50 UTC (permalink / raw)
To: Florian Weimer, Abhijit Ray Chaudhury; +Cc: Abhijit Ray Chaudhury via Libc-help
The 12/11/2023 10:14, Florian Weimer via Libc-help wrote:
> * Abhijit Ray Chaudhury:
> > Hi Florian,
> >
> > Thanks a lot for replying. I need to do remote stack tracing , for which I am using libunwind-ptrace
> > . The problem is it does not work on VDSOs . It treats VDSO memory mapping entry in
> > /proc/<pid>/maps as a file and tries to open it and subsequently fails.
> > I tried mailing in libunwind-dev, but it seemed dormant .
> >
> > I need a library which works on both arm and x86_64 , do you think elfutils would be a good option
> > ?
>
> The AArch64 vDSO did not have accurate unwinding information in the
> past. We've got a Fedora bug for this:
>
> kernel: vDSO lacks unwind information on aarch64
> <https://bugzilla.redhat.com/show_bug.cgi?id=2044483>
>
> I don't know if this has been fixed since then.
i believe it is not fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-12-11 15:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-25 6:02 Does glibc support remote process backtracing Abhijit Ray Chaudhury
2023-11-27 9:20 ` Florian Weimer
2023-11-28 7:35 ` Abhijit Ray Chaudhury
2023-12-11 9:14 ` Florian Weimer
2023-12-11 15:50 ` Szabolcs Nagy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).