From owner-freebsd-bugs Tue Feb 11 19:20:06 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA14696 for bugs-outgoing; Tue, 11 Feb 1997 19:20:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA14643; Tue, 11 Feb 1997 19:20:02 -0800 (PST) Resent-Date: Tue, 11 Feb 1997 19:20:02 -0800 (PST) Resent-Message-Id: <199702120320.TAA14643@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:(from nobody@localhost) by.freefall.freebsd.org.id.TAA14545;Tue; (8.8.5/8.8.5);, 11 Feb 1997 19:19:04.-0800 (PST) Message-Id: <199702120319.TAA14545@freefall.freebsd.org> Date: Tue, 11 Feb 1997 19:19:04 -0800 (PST) From: futagi@csctk.jcsnet.or.jp To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: kern/2717: Panic with daily script (find) Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2717 >Category: kern >Synopsis: Panic with daily script (find) >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 11 19:20:01 PST 1997 >Last-Modified: >Originator: Masaaki Futagi >Organization: Japan Computer Science Co.,Ltd. >Release: 2.1.6R >Environment: FreeBSD csc-wall2.jcsnet.or.jp 2.1.6-RELEASE FreeBSD 2.1.6-RELEASE #10: Wed Feb 12 11:40:07 JST 1997 futagi@csc-wall2.jcsnet.or.jp:/usr/src/sys/compile/JFK i386 We added our original 'firewall' code to some modules in /sys/netinet This firewall module puts many 'printf' messages to syslog and console. >Description: Panic message: Fatal trap 12: page fault while in kernel mode fault virtual address = 0x0 fault code = supervisor write, page not present instruction pointer = 0x8:0xf0127564 (is in cache_lookup() in vfs_cache.o) code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 7438 (find) interrupt mask = panic: page fault At 02:03 AM when /etc/daily was running. This problem did not occur everyday. >How-To-Repeat: I could not repeat the probloem manually, but it occurd not once in midnight. >Fix: I found PURGE() procedure (macro) was called in cache_lookup()/vfs_cache.c Now I inhibit interrupts while 'PURGE()' and observing. >Audit-Trail: >Unformatted: