% stap -p2 -e 'probe oneshot {log("hi")} probe kernel.statement("do_exit@*:8332")? { log("yo") }' semantic error: no line records for kernel/exit.c:8332 [man error::dwarf] This hits if the statement probes -partly- resolve, but then fail, such as if the line number range is a little off but the function name is valid.
commit ab0c5c25509600b7c9cecc9e10baebc984082b50 gpg: Signature made Fri 12 May 2023 11:18:18 AM EDT gpg: using RSA key 5D38116FA4D3A7CC77E378D37E83610126DCC2E8 gpg: Good signature from "Frank Ch. Eigler <fche@elastic.org>" [ultimate] Author: Frank Ch. Eigler <fche@redhat.com> Date: Fri May 12 11:13:45 2023 -0400 PR30442: failing optional statement probes should not trigger pass2 exceptions
Looks great, seems to work! Thanks for looking into this. Full regression tests running...
Verified, thanks for fixing!