Re: [PATCH] libtraceevent utest: exit test if mmap fails

Steven Rostedt <[email protected]> Fri, 29 May 2026 14:41:24 -0400
Newsgroups org.kernel.vger.linux-trace-devel
Message-ID <20260529144124.14954a5f@fedora>
On Tue, 26 May 2026 19:42:19 +0100
Sudip Mukherjee <[email protected]> wrote:

> CU_TEST() continues execution even if the test fails. It just records
> that the test has failed and moves on.
> So, when libtraceevent is built in a chroot, it can open
> /sys/kernel/btf/vmlinux but fails in mmap stage and since CU_TEST()
> does not stop so we get a segfault when tep_load_btf() tries to use
> the mapped buffer.
> 
> Signed-off-by: Sudip Mukherjee <[email protected]>

Thanks, but the real fix is here and I'm applying that one:

  https://lore.kernel.org/all/[email protected]/

-- Steve