summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-03-08 22:30:30 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-03-08 22:30:30 -0400
commitf9355a6c0645c7efa0b7bc7894231b51b9f7e91c (patch)
tree1737d0a1d1c732f752d34290c4ff4e1b3a82b856
parentee53a613180a780ea377b4f1c857aaeabcf44240 (diff)
downloadsystemtap-steved-f9355a6c0645c7efa0b7bc7894231b51b9f7e91c.tar.gz
systemtap-steved-f9355a6c0645c7efa0b7bc7894231b51b9f7e91c.tar.xz
systemtap-steved-f9355a6c0645c7efa0b7bc7894231b51b9f7e91c.zip
tracepoint probes: clear session derived_probe_groups pointer in ctor to avoid SEGV
-rw-r--r--elaborate.cxx1
-rw-r--r--session.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/elaborate.cxx b/elaborate.cxx
index 0a00ebf2..34e6ab16 100644
--- a/elaborate.cxx
+++ b/elaborate.cxx
@@ -1448,6 +1448,7 @@ systemtap_session::systemtap_session ():
timer_derived_probes(0),
profile_derived_probes(0),
mark_derived_probes(0),
+ tracepoint_derived_probes(0),
hrtimer_derived_probes(0),
perfmon_derived_probes(0),
procfs_derived_probes(0),
diff --git a/session.h b/session.h
index 8fa491fd..bc99385b 100644
--- a/session.h
+++ b/session.h
@@ -167,6 +167,8 @@ struct systemtap_session
hrtimer_derived_probe_group* hrtimer_derived_probes;
perfmon_derived_probe_group* perfmon_derived_probes;
procfs_derived_probe_group* procfs_derived_probes;
+ // NB: It is very important for all of the above (and below) fields
+ // to be cleared in the systemtap_session ctor (elaborate.cxx).
// unparser data
translator_output* op;