Re: BUG at rmap.c:212

Andrew Morton (akpm@zip.com.au)
Wed, 31 Jul 2002 10:03:17 -0700


Petr Vandrovec wrote:
>
> ...
> > > Probably because of your code did not do anything special when
> > > 'Not found. This should NEVER happen!' code path triggers.
> > Of course, ntpd is probably running into a different problem,
> > but the printk's enabled with DEBUG_RMAP should give us some
> > hints.
>
> No nvidia here. Boot, start X, quit X, run updatedb, reboot...
> cat /proc/`pidof ntpd`/maps says that it has mmaped only ntpd and
> few libraries from /lib. I hope that printed values will have
> some value for you. And btw, ntpd uses some mlock*() call, it has status
> 'SL' in process list. Do you know how to find what memory it has locked?

It's good that this it nice and reproducible, thanks.

Linus, can we please not have that BUG() in 2.5.30?

--- 2.5.29/mm/rmap.c~no-bug Wed Jul 31 09:58:47 2002
+++ 2.5.29-akpm/mm/rmap.c Wed Jul 31 09:58:53 2002
@@ -205,8 +205,6 @@ void page_remove_rmap(struct page * page
}
printk("\n");
printk(KERN_ERR "page_remove_rmap: driver cleared PG_reserved ?\n");
-#else
- BUG();
#endif

out:

.
-
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/