Subject: gdb and pmap errors under 1.2
To: NetBSD-current Users <current-users@NetBSD.ORG>
From: Curt Sampson <curt@portal.ca>
List: current-users
Date: 10/18/1996 16:16:01
When I try to gdb a locally compiled program with gdb under NetBSD
1.2/i386 in a kernel that has DEBUG defined, I get piles of messages
like the following:

Oct 18 16:04:58 cynic /netbsd: pmap_pageable: bad PT page va 10011000 next fa559a0c

This is produced by this bit of code in sys/arch/i386/i386/pmap.c:

	pv = &pv_table[pind];
	if (pv->pv_va != sva || pv->pv_next) {
		printf("pmap_pageable: bad PT page va %x next %x\n",
		       pv->pv_va, pv->pv_next);
		return; 
	}

The only think I lose by the return is that the following doesn't get
executed:

	/*
	 * Mark it unmodified to avoid pageout 
	 */
	pmap_clear_modify(pa); 

Can some explain to a relative VM novice what is happening here?

cjs

Curt Sampson    curt@portal.ca		Info at http://www.portal.ca/
Internet Portal Services, Inc.	
Vancouver, BC   (604) 257-9400		De gustibus, aut bene aut nihil.