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

Steven Rostedt <[email protected]> Tue, 16 Jun 2026 16:48:12 -0400
Newsgroups org.kernel.vger.linux-trace-devel
Message-ID <20260616164812.5ecda840@fedora>
On Mon, 15 Jun 2026 20:25:08 +0100
Sudip Mukherjee <[email protected]> wrote:

> Hi Steve,
> 
> On Fri, 29 May 2026 at 19:41, Steven Rostedt <[email protected]> wrote:
> >
> > 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]/  
> 
> Tried it today, and the test still fails for me.

Thanks for letting me know. I currently just started a new job and I'm
a bit overwhelmed. It may be a couple more weeks before I get to this.

-- Steve