]> sourceware.org Git - systemtap.git/commit
PR25133: fix stabpf foreach loop segfault
authorSagar Patel <sapatel@redhat.com>
Fri, 25 Oct 2019 17:08:12 +0000 (13:08 -0400)
committerSagar Patel <sapatel@redhat.com>
Fri, 25 Oct 2019 18:37:17 +0000 (14:37 -0400)
commit716d8b9f54a8c1cbc25873d2a85d4fbe636980e1
tree6f92081e0b272743812adf80114e8350dfc7904e
parentb54a0507e445bc80c3671676153b043c78bcfb63
PR25133: fix stabpf foreach loop segfault

There was a foreach loop example that was observed to cause a
segmentation fault. After some investigation, it was found that
one of the registers was clobbered in the optimization process.

This patch modifies the register interference implementation.
Previously, variables that were defined at an instruction were
not considered in the register interference graph. However, by
defintion, a variable is live where it is defined and wherever
it holds a value that is used in the future. With this patch,
the register interference graph also takes into account where
the variables are defined, and considers them to be live.

1) Included variables that are being defined in live set.
2) Split foreach_string.stp test probes to accomodate for stack size.
bpf-opt.cxx
testsuite/systemtap.bpf/bpf_tests/foreach_string.stp
This page took 0.027573 seconds and 5 git commands to generate.