lkml.org 
[lkml]   [2001]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Oops 0000 and 0002 on dual PIII 750 2.4.2 SMP platform


On Thu, 15 Mar 2001, Shane Y. Gibson wrote:

> Marcelo Tosatti wrote:
> >
> > Did'nt you get a message similar to
> >
> > "kernel BUG at page_alloc.c line xxx!"
>
> Marcelo,
>
> Yes there was. I'm pasting the total sum of the /var/log/messages
> output. Note that I'm only able to locate details for the first
> crash, the second didn't seem to log a whole lot. Originally,
> just pasted the output of what "ksymops" regurgitated, which seems
> to have pulled out that "kernel BUG" reference. Here goes...

Can you please try to reproduce it with the following patch against 2.4.2?

With the patch applied it gets easier to find the problem.

Thanks

--- linux/include/linux/swap.h.orig Fri Mar 16 06:31:51 2001
+++ linux/include/linux/swap.h Fri Mar 16 06:33:41 2001
@@ -201,7 +201,15 @@
*/
#define DEBUG_ADD_PAGE \
if (PageActive(page) || PageInactiveDirty(page) || \
- PageInactiveClean(page)) BUG();
+ PageInactiveClean(page)) { \
+ if (PageActive(page)) \
+ printk (KERN_ERR "Active page on free list!\n"); \
+ if (PageInactiveDirty(page)) \
+ printk (KERN_ERR "Inactive dirty page on free list!\n"); \
+ if (PageInactiveClean(page)) \
+ printk (KERN_ERR "Inactive clean page on free list!\n"); \
+ BUG(); \
+ }

#define ZERO_PAGE_BUG \
if (page_count(page) == 0) BUG();

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.061 / U:27.628 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site