]> sourceware.org Git - systemtap.git/commit
stapbpf bugfix: missing in_block() in try-catch code
authorSerguei Makarov <smakarov@redhat.com>
Fri, 30 Jul 2021 20:22:53 +0000 (16:22 -0400)
committerSerguei Makarov <smakarov@redhat.com>
Fri, 30 Jul 2021 20:24:29 +0000 (16:24 -0400)
commit5d89bb03ee69f314eff4db18ea00a5ad215f06ab
tree5423a085f9a2c38dedbfdf2cfe6bca87f976b46f
parent04b43f48f1091bdc4bfdbabae86745547e539f8c
stapbpf bugfix: missing in_block() in try-catch code

After emit_stmt(), we may not be in a block, e.g. if we do

try { return 0 } catch { return 1 }

Also added an assert to make the error more obvious
if it's missed anywhere else. Was a non obvious segfault.
bpf-translate.cxx
This page took 0.025964 seconds and 5 git commands to generate.