From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 17 19:40:22 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8910C16A4CF for ; Fri, 17 Sep 2004 19:40:22 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E3BD43D58 for ; Fri, 17 Sep 2004 19:40:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i8HJeMtq037219 for ; Fri, 17 Sep 2004 19:40:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i8HJeMWn037218; Fri, 17 Sep 2004 19:40:22 GMT (envelope-from gnats) Resent-Date: Fri, 17 Sep 2004 19:40:22 GMT Resent-Message-Id: <200409171940.i8HJeMWn037218@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, archeron@wavefire.com Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 474E316A4CE for ; Fri, 17 Sep 2004 19:33:28 +0000 (GMT) Received: from arch.wavefire.com (arch.wavefire.com [64.141.15.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6CD343D48 for ; Fri, 17 Sep 2004 19:33:27 +0000 (GMT) (envelope-from wade@arch.wavefire.com) Received: from arch.wavefire.com (localhost [127.0.0.1]) by arch.wavefire.com (8.13.1/8.13.1) with ESMTP id i8HJXQaX000788 for ; Fri, 17 Sep 2004 12:33:26 -0700 (PDT) (envelope-from wade@arch.wavefire.com) Received: (from root@localhost) by arch.wavefire.com (8.13.1/8.13.1/Submit) id i8HJXPxK000787; Fri, 17 Sep 2004 12:33:25 -0700 (PDT) (envelope-from wade) Message-Id: <200409171933.i8HJXPxK000787@arch.wavefire.com> Date: Fri, 17 Sep 2004 12:33:25 -0700 (PDT) From: archeron@wavefire.com To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/71827: Running java applications causes kernel panic. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: archeron@wavefire.com List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2004 19:40:22 -0000 >Number: 71827 >Category: kern >Synopsis: Running java applications causes kernel panic. >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 17 19:40:21 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Charlie & >Release: FreeBSD 5.3-BETA4 i386 >Organization: >Environment: System: FreeBSD arch.wavefire.com 5.3-BETA4 FreeBSD 5.3-BETA4 #0: Fri Sep 17 10:09:02 PDT 2004 root@arch.wavefire.com:/usr/obj/usr/src/sys/WORKSTATION-5.0-SMP i386 dmesg output: root@arch-~:dmesg Copyright (c) 1992-2004 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.3-BETA4 #0: Fri Sep 17 10:09:02 PDT 2004 root@arch.wavefire.com:/usr/obj/usr/src/sys/WORKSTATION-5.0-SMP WARNING: WITNESS option enabled, expect reduced performance. WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant WARNING: MPSAFE network stack disabled, expect reduced performance. ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel Pentium III (604.23-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x681 Stepping = 1 Features=0x383fbff real memory = 1073725440 (1023 MB) avail memory = 1041281024 (993 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 3 cpu1 (AP): APIC ID: 0 Security policy loaded: TrustedBSD MAC/MLS (mac_mls) Security policy loaded: TrustedBSD MAC/portacl (trustedbsd_mac_portacl) Security policy loaded: TrustedBSD MAC/seeotheruids (mac_seeotheruids) Security policy loaded: TrustedBSD MAC/Partition (mac_partition) Security policy loaded: TrustedBSD MAC/Biba (mac_biba) Security policy loaded: TrustedBSD MAC/BSD Extended (mac_bsdextended) Security policy loaded: TrustedBSD MAC/ifoff (mac_ifoff) ioapic0 irqs 0-23 on motherboard netsmb_dev: loaded npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0 cpu0: on acpi0 cpu1: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) isab0: at device 4.0 on pci0 isa0: on isab0 atapci0: port 0xd800-0xd80f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 4.1 on0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 pci0: at device 4.2 (no driver attached) pci0: at device 4.3 (no driver attached) xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xb800-0xb87f mem 0xf8800000-0xf880007f irq 19 at device 9.0 on pci0 miibus0: on xl0 xlphy0: <3c905C 10/100 internal PHY> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: Ethernet address: 00:50:da:91:0d:3f xl0: [GIANT-LOCKED] ahc0: port 0xb400-0xb4ff mem 0xf8000000-0xf8000fff irq 16 at device 12.00 ahc0: [GIANT-LOCKED] aic7890/91: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs isp0: port 0xb000-0xb0ff mem 0xf7800000-0xf7800fff irq 19 at device 13.0 0 isp0: [GIANT-LOCKED] fdc0: port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A, console sio1 port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] orm0: at iomem 0xcc000-0xd17ff,0xc8000-0xc87ff,0xc0000-0xc7fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x100> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 10.000 msec IPsec: Initialized Security Association Processing. ipfw2 initialized, divert enabled, rule-based forwarding disabled, default to deny, logging limited to 100 packett ad0: 57259MB [116336/16/63] at ata0-master UDMA100 ATAPI_RESET time = 190us acd0: CDROM at ata1-master PIO4 Waiting 15 seconds for SCSI devices to settle da0 at ahc0 bus 0 target 4 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit), Tagged Queueing Enabled da0: 4094MB (8386000 512 byte sectors: 255H 63S/T 522C) da1 at ahc0 bus 0 target 8 lun 0 da1: Fixed Direct Access SCSI-2 device da1: 40.000MB/s transfers (20.000MHz, offset 15, 16bit), Tagged Queueing Enabled da1: 4094MB (8386000 512 byte sectors: 255H 63S/T 522C) SMP: AP CPU #1 Launched! Mounting root from ufs:/dev/ad0s2a WARNING: / was not properly dismounted >Description: I have only noticed this when attempting to run a java application, in this case, a freenet server. The kernel simply panics with a signal 12 after running a java app for a few seconds, or even a minute some times. If I disable any java apps from startup, the machine appears stable. Java version as follows: root@arch-~:javavm -version java version "1.4.2-p6" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p6-root_12_mar_2004_07_21) Java HotSpot(TM) Client VM (build 1.4.2-p6-root_12_mar_2004_07_21, mixed mode) I rebuilt my kernel with the following debugging options: # Debugging for use in -current options DDB #Enable the kernel debugger options KDB options GDB options INVARIANTS options INVARIANT_SUPPORT options WITNESS options WITNESS_SKIPSPIN makeoptions DEBUG=-g makeoptions PREEMPTION I was unable to obtain a kernal core however. Prior to the debugging kernel, I was receiving the following dump to the serial console: login: kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 03 fault virtual address = 0x174 fault code = supervisor write, page not present instruction pointer = 0x8:0xc052967b stack pointer = 0x10:0xe4dfec04 frame pointer = 0x10:0xe4dfec10 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = resume, IOPL = 0 current process = 4 (g_down) [thread 100032] Stopped at runq_remove+0x2b: movl %eax,0x4(%esi) db> Now all I get is: root@arch-~:panic: sched_add: kse 0xc298c494 (java) already in run queue cpuid = 1 KDB: enter: panic Kernel config may be found at: http://archeron.wavefire.com/~wade/WORKSTATION-5.0-SMP If I can provide any additional information, please just ask. -Wade Klaver >How-To-Repeat: run Java. >Fix: >Release-Note: >Audit-Trail: >Unformatted: