<div dir="auto">Thank you For the inputs!<div dir="auto"><br></div><div dir="auto"><div dir="auto">I'm using heaptrack version 1.2.0 and libunwind 1.3.1. I will try with libunwind version 1.6.2.</div><div dir="auto"><br></div><div dir="auto">Is there any way to provide debug symbols separately when using a stripped binary?</div><div dir="auto"><br></div><div dir="auto">I dont see any issue with heaptrack for simple "hello world" program and for some applications with fewer dependencies. However, I have observed crashes in applications that have multiple dependent libraries.<br></div><div dir="auto"><br></div><div dir="auto">How do I execute heaptrack for a running process? Do I only need to attach the process to heaptrack, or can I modify the service file to start the process directly with heaptrack?</div><div dir="auto"><br></div><div dir="auto">Thanks for your help</div><div dir="auto"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 13, 2023, 3:58 PM Milian Wolff <<a href="mailto:mail@milianw.de" target="_blank" rel="noreferrer">mail@milianw.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Dienstag, 13. Juni 2023 11:20:53 CEST sindhu krishnan wrote:<br>
> Attaching the backtrace of the crash:<br>
> <br>
> Program terminated with signal SIGSEGV, Segmentation fault.<br>
> #0 0xb3466b3e in _ULarm_step () from /usr/lib/libunwind.so.8<br>
> [Current thread is 1 (LWP 30383)]<br>
> (gdb) bt<br>
> #0 0xb3466b3e in _ULarm_step () from /usr/lib/libunwind.so.8<br>
> #1 0xb3466110 in unw_backtrace () from /usr/lib/libunwind.so.8<br>
> #2 0xb3f68f32 in heaptrack_malloc () from<br>
> /usr/lib/heaptrack/libheaptrack_preload.so<br>
> #3 0xb3f67582 in posix_memalign () from<br>
> /usr/lib/heaptrack/libheaptrack_preload.so<br>
> #4 0xb393b1d2 in ?? () from /usr/lib/libglib-2.0.so.0<br>
> Backtrace stopped: previous frame identical to this frame (corrupt stack?)<br>
> (gdb)<br>
<br>
What version of heaptrack and libunwind are you using? What UNW_ARM_METHOD are <br>
you using?<br>
<br>
Note how this crashes within libunwind, not in heaptrack so in the end this <br>
isn't something I can help you with really except saying you need to use a <br>
recent libunwind and that `UNW_ARM_METHOD=4` might be more resilient.<br>
<br>
Good luck<br>
-- <br>
Milian Wolff<br>
<a href="mailto:mail@milianw.de" rel="noreferrer noreferrer" target="_blank">mail@milianw.de</a><br>
<a href="http://milianw.de" rel="noreferrer noreferrer noreferrer" target="_blank">http://milianw.de</a></blockquote></div>