This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: kernel read fault when accessing context variables


tonyg362 <tonyg3622@yahoo.com> writes:

> [...]
> I am able access $npid->tgid just fine and it prints the correct npid,
> however whenever I try to access $prev->tgid the entire probe is skipped and
> I get a kernel read fault:
>
> SystemTap translator/driver (version 0.9.8/0.141 non-git sources)
> [...]
> ERROR: kernel read fault at 0x000000000000029d (addr) near identifier
> '$prev' at test.stp:2:9

There are a couple of possible workarounds and fixes for the cause,
most likely incorrect debugging data.

1) run your script with --skip-badvars
2) with modern systemtap, wrap your $var accessing code in try {} catch {}
3) try building your kernel with gcc 4.5 or Red Hat's 4.4.4
   VTA-enabled backports

- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]