From owner-freebsd-questions Mon Feb 23 16:18:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA25743 for freebsd-questions-outgoing; Mon, 23 Feb 1998 16:18:49 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from echonyc.com (echonyc.com [198.67.15.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA25730 for ; Mon, 23 Feb 1998 16:18:34 -0800 (PST) (envelope-from benedict@echonyc.com) Received: from localhost (benedict@localhost) by echonyc.com (8.8.7/8.8.7) with SMTP id TAA05825 for ; Mon, 23 Feb 1998 19:18:31 -0500 (EST) Date: Mon, 23 Feb 1998 19:18:30 -0500 (EST) From: Snob Art Genre To: questions@FreeBSD.ORG Subject: 2.2.5 keeps crashing . . . please advise. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, My system crashes whenever it runs out of memory. This is understandable, but I would much prefer that it used the swap partition I've provided for it instead. Here is what displays on the console when it panics: Fatal Trap 12: page fault while in kernel mode fault virtual address = 0x9c fault code = supervisor read, page not present instruction pointer = 0x8:0xf01d1300 stack pointer = 0x10:0xefbffd14 frame pointer = 0x10:0xefbffd20 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 = 2 (pagedaemon) interrupt mask = bio panic: page fault Sometimes when I'm in Xwindows and running Netscape or xemacs, the system reboots spontaneously. I wrote a little program to try to reproduce the problem (it's attached after my signature), and that produced the above panic when the system got down to 532K free (as measured by top). I can find nothing in the system log that would indicate the source of the error. Could it be a hardware problem? Here is my dmesg output: FreeBSD 2.2.5-STABLE #0: Mon Feb 23 13:02:39 EST 1998 root@ben:/usr/src/sys/compile/LOCAL5 CPU: Pentium (99.72-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x525 Stepping=5 Features=0x1bf real memory = 67108864 (65536K bytes) avail memory = 62742528 (61272K bytes) Probing for devices on PCI bus 0: chip0 rev 17 on pci0:0 chip1 rev 67 on pci0:2 ahc0 rev 0 int a irq 9 on pci0:6 ahc0: aic7870 Wide Channel, SCSI Id=7, 16 SCBs ahc0 waiting for scsi devices to settle (ahc0:0:0): "SEAGATE ST15230N 0638" type 0 fixed SCSI 2 sd0(ahc0:0:0): Direct-Access 4095MB (8386733 512 byte sectors) vga0 rev 0 on pci0:12 fxp0 rev 2 int a irq 9 on pci0:14 fxp0: Ethernet address 00:a0:c9:65:45:a8 Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: WARNING: video mode switching is only partially supported sc0: VGA color <16 virtual consoles, flags=0x0> sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (atapi): , removable, intr, iordis wdc1 not found at 0x170 npx0 flags 0x1 on motherboard npx0: INT 16 interface changing root device to sd0a Intel Pentium F00F detected, installing workaround WARNING: / was not properly dismounted. Ben "You have your mind on computers, it seems." #include #include #define CHUNK 1024 main() { off_t *ptr; while(1) { printf("Mallocing!\n"); ptr = malloc(CHUNK * CHUNK); sleep(1); } } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message