]> sourceware.org Git - systemtap.git/commit
stapbpf (for PR27030): bugfix the b71d20af bugfix
authorSerhei Makarov <smakarov@redhat.com>
Wed, 13 Jan 2021 19:28:20 +0000 (14:28 -0500)
committerSerhei Makarov <smakarov@redhat.com>
Wed, 13 Jan 2021 19:28:20 +0000 (14:28 -0500)
commit8a62fac0823ade3824e0908d823902e06ebab57c
treea7c823d6ee3fdda6a2b773e1b60e4a47c9f710dd
parent263f980e2fdb74ad9950cd5430b1f80d7d89a808
stapbpf (for PR27030): bugfix the b71d20af bugfix

stap commit b71d20af819 fixed error messages in bpf assembly
(being broken by implicit deallocation of stack vars on exception throw)
but neglected the fact that visit_embeddedcode can recurse
(via emit_functioncall) such that a single bpf_unparser field for
storing asm_stmts will get overwritten by the recursive call.

Alloc/free a separate statement list per visit_embeddedcode call instead.
bpf-translate.cxx
This page took 0.027505 seconds and 5 git commands to generate.