Bug 4286 - improve kretprobes BUG message
Summary: improve kretprobes BUG message
Alias: None
Product: systemtap
Classification: Unclassified
Component: kprobes (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
Depends on:
Reported: 2007-03-27 12:47 UTC by Frank Ch. Eigler
Modified: 2007-03-27 11:48 UTC (History)
0 users

See Also:
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
Description Frank Ch. Eigler 2007-03-27 12:47:12 UTC
On a pre-fc7-test vmware image, I sometimes see this kernel BUG:

kernel BUG at arch/i386/kernel/kprobes.c:452!
invalid opcode: 0000 [#1]
last sysfs file: /module/uhci_hcd/sections/.text
Modules linked in: stap_ec0f35607d3d65b494254c869904aa15_693632(U) xt_tcpudp ipt
able_nat nf_nat nf_conntrack_ipv4 nf_conntrack nfnetlink ip_tables x_tables hidp
EFLAGS: 00010046   (2.6.20-1.2986.fc7 #1)
EIP is at trampoline_handler+0xeb/0x137
eax: 00000000   ebx: 00000000   ecx: 00000000   edx: 00000000
esi: de14cac0   edi: c1a31ef8   ebp: c1a31ef0   esp: c1a31ed4
ds: 007b   es: 007b   fs: 00d8  gs: 0000  ss: 0068
Process migration/0 (pid: 2, ti=c1a31000 task=ed34e030 task.ti=c1a31000)
Stack: 00000096 00000000 00000000 00000000 00000000 de14cac0 00000000 cb9dde28 
       c06161fa 00000000 00000033 de14cc70 de14cac0 00000000 cb9dde28 de14cac0 
       0000007b 0000007b 000000d8 ffffffff c06161e4 00000060 00000082 c1a31f94 
Call Trace:
 [<c04061ed>] show_trace_log_lvl+0x1a/0x2f
 [<c040629d>] show_stack_log_lvl+0x9b/0xa3
 [<c040645d>] show_registers+0x1b8/0x289
 [<c040665b>] die+0x12d/0x242
 [<c0615817>] do_trap+0x79/0x91
 [<c0406bfe>] do_invalid_op+0x97/0xa1
 [<c06155ec>] error_code+0x7c/0x84
 [<c06161fa>] kretprobe_trampoline+0x16/0x30

From this information, one cannot tell which kprobe/kretprobe might have been
associated with the problem.  It would be helpful if any such assertion-type
messages also printed out information such as the kprobe* or kretprobe/instance
addresses, as those can be mapped back to systemtap modules (with some effort).
Comment 1 Frank Ch. Eigler 2007-03-27 12:48:03 UTC
(sorry, web browser triggered duplicate bug.)