Re: [PATCH 4/5] tests default_vmlinux_btf: Cover the no args segfault too

Arnaldo Carvalho de Melo
2024-11-19T17:51:17Z

On Tue, Nov 19, 2024 at 04:45:42PM +0000, Alan Maguire wrote:
> On 18/11/2024 20:41, Arnaldo Carvalho de Melo wrote:
> > From: Arnaldo Carvalho de Melo <acme@redhat.com>
> >
> > root@x1:/home/acme/git/pahole# pahole --running_kernel_vmlinux
> > pahole: couldn't find a vmlinux that matches the running kernel
> > HINT: Maybe you're inside a container or missing a debuginfo package?
> > root@x1:/home/acme/git/pahole# tests/default_vmlinux_btf.sh
> > Default BTF on a system without BTF: FAILED
> > root@x1:/home/acme/git/pahole# pahole
> > Segmentation fault (core dumped)
> > root@x1:/home/acme/git/pahole#
> >
> > Now to fix this one as well.
> >
> > Reported-by: Matthias Schwarzott <zzam@gentoo.org>
> > Cc: Alan Maguire <alan.maguire@oracle.com>
> > Cc: Andrii Nakryiko <andrii@kernel.org>
> > Cc: Eduard Zingerman <eddyz87@gmail.com>
> > Cc: Jiri Olsa <jolsa@kernel.org>
> > Cc: Song Liu <song@kernel.org>
> > Cc: Yonghong Song <yonghong.song@linux.dev>
> > Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
>
> Reviewed-by: Alan Maguire <alan.maguire@oracle.com>

Thanks, added to the cset,

- Arnaldo