Re: VM: Found a writable swap-cached page!

Stephen C. Tweedie (sct@redhat.com)
Wed, 29 Jul 1998 12:20:44 +0100


Hi,

On 28 Jul 1998 22:57:52 +0200, Anders Melchiorsen
<postmaster@and.nospam.kampsax.k-net.dk> said:

> Magnus Sjoegren <dat98msj@student3.lu.se> writes:
> I think I can reproduce it at will now. Dosemu will indeed cause this
> to happen here.

Fine --- could you please try the following diagnostic patch:

----------------------------------------------------------------
--- mm/vmscan.c.~1~ Wed Jul 22 14:48:23 1998
+++ mm/vmscan.c Wed Jul 29 12:17:03 1998
@@ -109,6 +109,7 @@
if (pte_write(pte)) {
struct page *found;
printk ("VM: Found a writable swap-cached page!\n");
+ printk ("VM: pid %d, VA %08lx\n", tsk->pid, address);
/* Try to diagnose the problem ... */
found = find_page(&swapper_inode, page_map->offset);
if (found) {
----------------------------------------------------------------

and tell us what it shows? It should display bot the pid and virtual
address at which the problem pte resides. What we really need is to
know about the mapping of this pte: if you could send me the error log
and the result of a "cat /proc/<pid>/maps" for the process concerned it
would help a lot.

What compiler are you using, btw?

Thanks,
Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html