This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/6646] SystemTap scripts fail with an Oops on x86
- From: "wenji dot huang at oracle dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 18 Jun 2008 07:22:16 -0000
- Subject: [Bug runtime/6646] SystemTap scripts fail with an Oops on x86
- References: <20080616053045.6646.ananth@in.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From wenji dot huang at oracle dot com 2008-06-18 07:22 -------
To reproduce the problem, just make a little kernel config change and compile
it again.
Then execute any stap script, it will fail in _stp_transport_init (kernel oops).
Both _stp_kallsyms_lookup_name and _stp_init_kernel_symbols depend on
_stp_kernel_symbols which is from debuginfo file or /proc/kallsyms. I believe
runtime facility such as transport shouldn't trust debuginfo too much . The
incorrect debuginfo would result in kprobe register/trigger error, not earlier
stp_transport_init.
The origin code about retrieving kernel symbols is to read /sys/modules/ which
looks like safer although not very graceful.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6646
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.