kern/71827: Running java applications causes kernel panic.

archeron at archeron at
Fri Sep 17 12:40:22 PDT 2004

>Number:         71827
>Category:       kern
>Synopsis:       Running java applications causes kernel panic.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 17 19:40:21 GMT 2004
>Originator:     Charlie &
>Release:        FreeBSD 5.3-BETA4 i386
System: FreeBSD 5.3-BETA4 FreeBSD 5.3-BETA4 #0: Fri Sep 17 10:09:02 PDT 2004 root at i386
dmesg output:
root at 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 at
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.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel Pentium III (604.23-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x681  Stepping = 1
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 <Version 1.1> irqs 0-23 on motherboard
netsmb_dev: loaded
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <ASUS CUV4X-D> 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: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 4.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686B UDMA100 controller> 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: <serial bus, USB> at device 4.2 (no driver attached)
pci0: <serial bus, USB> 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: <MII bus> 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
ahc0: <Adaptec 2940 Ultra2 SCSI adapter (OEM)> port 0xb400-0xb4ff mem 0xf8000000-0xf8000fff irq 16 at device 12.00
aic7890/91: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs
isp0: <Qlogic ISP 1020/1040 PCI SCSI Adapter> port 0xb000-0xb0ff mem 0xf7800000-0xf7800fff irq 19 at device 13.0 0
fdc0: <floppy drive controller> 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: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
orm0: <ISA Option ROMs> at iomem 0xcc000-0xd17ff,0xc8000-0xc87ff,0xc0000-0xc7fff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
vga0: <Generic ISA VGA> 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 <MAXTOR 6L060J3/A93.0500> [116336/16/63] at ata0-master UDMA100
ATAPI_RESET time = 190us
acd0: CDROM <MATSHITA CR-587/7S13> at ata1-master PIO4
Waiting 15 seconds for SCSI devices to settle
da0 at ahc0 bus 0 target 4 lun 0
da0: <COMPAQ HD00441730 3208> 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: <COMPAQ HD00441730 3208> 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

	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 at 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)

Now all I get is:
root at arch-~:panic: sched_add: kse 0xc298c494 (java) already in run queue
cpuid = 1
KDB: enter: panic

Kernel config may be found at:

If I can provide any additional information, please just ask.

 -Wade Klaver
	run Java.


More information about the freebsd-bugs mailing list