<div dir="ltr">I found the issue in the yocto based distribution: elfutils / libdw was compiled without xz support, and was thus unable to extract the minidebuginfo symbol names.<br>On Ubuntu / Fedora, I don't know exactly what the issue is.<br><br>Etienne</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 21, 2023 at 11:53 PM Etienne Cordonnier <<a href="mailto:ecordonnier@snap.com" target="_blank">ecordonnier@snap.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks for your reply. I have tested with Fedora 39 and indeed coredumpctl info shows function names when a binary provided by a Fedora package crashes. However, when I compile a test binary on Fedora, even with debug symbols enabled (I tried -g and -ggdb), and I then send kill -SEGV my binary, coredumpctl info shows "n/a" instead of the function names of my test binary. I also tried to inject minidebuginfo into my binary file with the same result.<br><br>Do you know what I should do so that coredumpctl info also works with binary files I compile? (I added full reproduction steps including the code of this test binary to <a href="https://unix.stackexchange.com/questions/761966/how-to-get-symbolized-call-stacks-with-coredumpctl-info" target="_blank">https://unix.stackexchange.com/questions/761966/how-to-get-symbolized-call-stacks-with-coredumpctl-info</a> ).<br><br>Etienne</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 17, 2023 at 10:03 AM Lennart Poettering <<a href="mailto:lennart@poettering.net" target="_blank">lennart@poettering.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Do, 16.11.23 18:37, Etienne Cordonnier (<a href="mailto:ecordonnier@snap.com" target="_blank">ecordonnier@snap.com</a>) wrote:<br>
<br>
> Hello,<br>
> I am testing a yocto based system, where it seems that "coredumpctl info"<br>
> isn't able to use minidebuginfo / gnu_debugdata to extract a symbolized<br>
> call-stack. I saw in the code that coredumpctl uses elfutils / libdwfl in<br>
> order to extract a call-stack, and as far as I understand libdwfl supports<br>
> minidebuginfo since this commit (<br>
> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__sourceware.org_git_-3Fp-3Delfutils.git-3Ba-3Dcommit-3Bh-3D5083a70d3b64946fa47ea5766943a15a3ecc6891&d=DwIBAg&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=HRBTXvbd-s9li256Vbbs9zIn33TULJrpWyLD4WV4rEtaedXG1zYgtpXt1vN3eolJ&s=WjU-C5bJAjCxwlzGD-CwjTBUFN_ZEr7Z1pFNC54_HU0&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.com/v2/url?u=https-3A__sourceware.org_git_-3Fp-3Delfutils.git-3Ba-3Dcommit-3Bh-3D5083a70d3b64946fa47ea5766943a15a3ecc6891&d=DwIBAg&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=HRBTXvbd-s9li256Vbbs9zIn33TULJrpWyLD4WV4rEtaedXG1zYgtpXt1vN3eolJ&s=WjU-C5bJAjCxwlzGD-CwjTBUFN_ZEr7Z1pFNC54_HU0&e=</a> <br>
> ).<br>
><br>
> Is there a configuration / build-option / etc. to enable support for<br>
> minidebuginfo in coredumpctl? If no is it on the roadmap? The advantage of<br>
> minidebuginfo is that it is much smaller than full debug symbols.<br>
<br>
Fedora has been using minidebuginfo since ~10y or so, and<br>
coredumctl/libdwfl has been working fine with it. So it certainly<br>
works, it's how this all works on my local machine since forever.<br>
<br>
Maybe ask your distro for help, it's generally an integration issue of<br>
distributions i this doesn't work.<br>
<br>
Lennart<br>
<br>
--<br>
Lennart Poettering, Berlin<br>
</blockquote></div>
</blockquote></div>