public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* context[2] stuck: (null)
@ 2017-07-10 15:16 Arkady
  2017-07-11  6:25 ` Arkady
  0 siblings, 1 reply; 15+ messages in thread
From: Arkady @ 2017-07-10 15:16 UTC (permalink / raw)
  To: systemtap

Hi,

I am getting context[2] stuck: (null) error. The cause of error is
likely the "unmanaged" code I have added to the driver. Specifically I
have a shared memory (mmap) in the driver. The failure happens
randomly every 50-200 module restarts The failure happens only on the
multicore CPUs, or happens often enough to be caught.

I tried to force the the wait function with
STAP_OVERRIDE_STUCK_CONTEXT - kernel panics in one of the (probably
random) probes.

While debugging the issue I  patched the SystemTap source code - added
an argument to the _stp_runtime_entryfn_get_context(int) like in this
commit https://github.com/larytet/SystemTap/commit/61a284732893fa6f201e07f9f12f5e1820e7c26f
In the function _stp_runtime_context_wait() I print the line in the
source code which called the _stp_runtime_entryfn_get_context()

The "bad" context is enter_be_probe(). I checked the source code of
enter_be_probe() and there is not much there.

I struggle with the problem for some time and I will greatly
appreciate any tip.

Thank you, Arkady.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-07-16 16:33 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-10 15:16 context[2] stuck: (null) Arkady
2017-07-11  6:25 ` Arkady
2017-07-11  6:47   ` Arkady
2017-07-11 10:31     ` Arkady
2017-07-12 13:01       ` David Smith
2017-07-12 12:58     ` David Smith
2017-07-12 13:16       ` Arkady
2017-07-12 13:55         ` David Smith
2017-07-12 14:41           ` Arkady
2017-07-12 15:39             ` Arkady
2017-07-14 13:44               ` Arkady
2017-07-14 15:16               ` David Smith
2017-07-14 16:38                 ` Arkady
2017-07-14 17:40                   ` Arkady
2017-07-16 16:33                     ` Arkady

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).