Re: Segfault in pahole 1.18 when building kernel 5.9.1 for arm64

From: Andrii Nakryiko
Date: Wed Oct 21 2020 - 11:53:29 EST


On Wed, Oct 21, 2020 at 6:48 AM Arnaldo Carvalho de Melo
<acme@xxxxxxxxxx> wrote:
>
> Em Wed, Oct 21, 2020 at 08:22:40AM +0200, Jiri Slaby escreveu:
> > On 20. 10. 20, 14:20, Arnaldo Carvalho de Melo wrote:
> > > > Yeah, I observe the very same. I reported it at:
> > > > https://bugzilla.suse.com/show_bug.cgi?id=1177921
>
> > > Would it be possible to try with
> > > https://git.kernel.org/pub/scm/devel/pahole/pahole.git/commit/?h=tmp.libbtf_encoder
> > > ?
>
> > Yes, that branch fixes the crashes and the kernel build finishes. The
> > zero-sized symbol error remains.
>
> > So what should distributions do now -- should we switch to a pahole snapshot
> > for a while?
>
> That would do the trick, I just completed my testing and pushed to the
> master branch on kernel.org and github, tests detailed at:
>
> https://git.kernel.org/pub/scm/devel/pahole/pahole.git/commit/?id=040fd7f585c9b9fcf4475d294b3f5ddf78405297
>
> There are some minor bug reports I want to address but my ETA right now
> is the end of this week to release v1.19.

I've just sent a patch that skips zero-sized ELF symbols without a
warning or error.

>
> - Arnaldo