diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-02-10 15:05:22 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-02-10 15:05:22 -0500 |
commit | 955925b709fcf1aeaa667423ed7b639dcfd94478 (patch) | |
tree | 2ca55ccb8bcec0b02cbce7cb2ad5d28bf9cba9ef | |
parent | ced8de1061ed47f7c3b0cfd4a7cedb338ab42f97 (diff) | |
download | systemtap-steved-955925b709fcf1aeaa667423ed7b639dcfd94478.tar.gz systemtap-steved-955925b709fcf1aeaa667423ed7b639dcfd94478.tar.xz systemtap-steved-955925b709fcf1aeaa667423ed7b639dcfd94478.zip |
fix segv that sometimes occurs on buildok/nfs-all-probes.stp on 2.6.29ish kernels
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tapsets.cxx | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2009-02-10 Frank Ch. Eigler <fche@elastic.org> + + * tapsets.cxx (find_variable_and_frame_base): Tolerate -1 return + value from dwarf_getscope_die. + 2009-02-07 Josh Stone <jistone@redhat.com> * buildrun.cxx (compile_pass): Pull in autoconf options in a header diff --git a/tapsets.cxx b/tapsets.cxx index c8742fbd..615ba07b 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -1761,7 +1761,7 @@ struct dwflpp if (sidx == nscopes) nscopes = dwarf_getscopes_die (scope_die, &scopes); - if (nscopes == 0) + if (nscopes <= 0) { throw semantic_error ("unable to find any scopes containing " + lex_cast_hex<string>(pc) |