]> sourceware.org Git - systemtap.git/commit
PR17249: tolerate early module notifier calls with null mod->sect_attrs
authorFrank Ch. Eigler <fche@redhat.com>
Sun, 10 Aug 2014 01:16:32 +0000 (21:16 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Sun, 10 Aug 2014 23:18:25 +0000 (19:18 -0400)
commitcb619f41696f36a4a9df35912fb4205893a85d16
treee04e1ac69871f284ce3e256a73cb2192f9be2ff3
parent440c8ee0eb0198d7c871c842eafcefe65b096b75
PR17249: tolerate early module notifier calls with null mod->sect_attrs

In the case of MODULE_STATE_COMING, we may encounter NULL sect_attrs,
and we must not crash.  Sadly, that case can mean the loss of ability
to probe module-init functions - i.e., breaking the bz6503 test case.

* runtime/transport/symbols.c (_stp_module_notifier): Don't assume
  that mod->sect_attrs is valid.  Treat COMING|LIVE notifications
  similarly, except LIVE should assume init.* gone gone gone,
  she been gone so long, she been gone gone gone so long.
runtime/transport/symbols.c
testsuite/systemtap.base/bz6503.exp
This page took 0.02675 seconds and 5 git commands to generate.