Index | Thread | Search

From:
Christian Ludwig <christian_ludwig@genua.de>
Subject:
Re: btrace: Parse unset arguments to 0
To:
"dv@sisu.io" <dv@sisu.io>
Cc:
"tech@openbsd.org" <tech@openbsd.org>
Date:
Tue, 16 Jan 2024 12:10:14 +0000

Download raw body.

Thread
Hi,

On Sun, 2024-01-14 at 22:04 -0500, Dave Voutila wrote:
> Do you have a simple btrace example? I believe there's an issue here,
> but not sure I'm following how to trigger it.

Use an undefined argument in any probe.

A simple reproducer would be:

$ doas btrace -e 'tracepoint:sched:on__cpu { printf("%s\n", arg0); }'
Segmentation fault (core dumped)


So long,


 - Christian