* [Adeos-main] [PATCH] Sort stack dumps on non-root faults
@ 2008-02-07 13:02 Jan Kiszka
0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2008-02-07 13:02 UTC (permalink / raw)
To: Philippe Gerum; +Cc: adeos-main
[-- Attachment #1: Type: text/plain, Size: 261 bytes --]
Hi Philippe,
while trying to understand Petr's problem (no clue yet), I came across
this: dump_stack was called unconditionally, ipipe_trace_panic_dump was
missing.
Jan
--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
[-- Attachment #2: sort-stack-dumping-on-nonroot-faults.patch --]
[-- Type: text/x-patch, Size: 1214 bytes --]
---
arch/x86/kernel/ipipe.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
Index: b/arch/x86/kernel/ipipe.c
===================================================================
--- a/arch/x86/kernel/ipipe.c
+++ b/arch/x86/kernel/ipipe.c
@@ -770,19 +770,22 @@ int __ipipe_handle_exception(struct pt_r
ipipe_trace_panic_freeze();
/* Always warn about user land and unfixable faults. */
- if ((error_code & 4) || !search_exception_tables(instruction_pointer(regs)))
+ if ((error_code & 4) || !search_exception_tables(instruction_pointer(regs))) {
printk(KERN_ERR "BUG: Unhandled exception over domain"
" %s at 0x%lx - switching to ROOT\n",
ipd->name, instruction_pointer(regs));
+ dump_stack();
+ ipipe_trace_panic_dump();
#ifdef CONFIG_IPIPE_DEBUG
/* Also report fixable ones when debugging is enabled. */
- else
+ } else {
printk(KERN_WARNING "WARNING: Fixable exception over "
"domain %s at 0x%lx - switching to ROOT\n",
ipd->name, instruction_pointer(regs));
+ dump_stack();
+ ipipe_trace_panic_dump();
#endif /* CONFIG_IPIPE_DEBUG */
-
- dump_stack();
+ }
}
__ipipe_std_extable[vector](regs, error_code);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-07 13:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-07 13:02 [Adeos-main] [PATCH] Sort stack dumps on non-root faults Jan Kiszka
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.