From chris@vindaloo.com  Sat Feb 14 06:43:32 2004
Return-Path: <chris@vindaloo.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9E3DF16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 14 Feb 2004 06:43:32 -0800 (PST)
Received: from corellia.vindaloo.com (corellia.vindaloo.com [209.87.64.81])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 69DB643D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 14 Feb 2004 06:43:32 -0800 (PST)
	(envelope-from chris@vindaloo.com)
Received: from yavin.vindaloo.com (yavin.vindaloo.com [192.168.133.2])
	by corellia.vindaloo.com (Postfix) with ESMTP id 907A112854
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 14 Feb 2004 09:43:31 -0500 (EST)
Received: from dagobah.pvt.vindaloo.com (dagobah.pvt.vindaloo.com [192.168.132.4])
	by yavin.vindaloo.com (Postfix) with ESMTP id 0B464EB8
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 14 Feb 2004 09:43:31 -0500 (EST)
Received: from dagobah.pvt.vindaloo.com (localhost [127.0.0.1])
	by dagobah.pvt.vindaloo.com (8.12.10/8.12.10) with ESMTP id i1EEePnh003182
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 14 Feb 2004 09:40:25 -0500 (EST)
	(envelope-from chris@dagobah.pvt.vindaloo.com)
Received: (from chris@localhost)
	by dagobah.pvt.vindaloo.com (8.12.10/8.12.10/Submit) id i1EEePGX003181;
	Sat, 14 Feb 2004 09:40:25 -0500 (EST)
	(envelope-from chris)
Message-Id: <200402141440.i1EEePGX003181@dagobah.pvt.vindaloo.com>
Date: Sat, 14 Feb 2004 09:40:25 -0500 (EST)
From: Christopher Sean Hilton <chris@vindaloo.com>
Reply-To: Christopher Sean Hilton <chris@vindaloo.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: linux-sun-jdk14 executables hang with COMPAT_LINUX in the the kernel.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         62837
>Category:       java
>Synopsis:       linux-sun-jdk14 executables hang with COMPAT_LINUX in the the kernel.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-java
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 14 06:50:18 PST 2004
>Closed-Date:    Mon Aug 29 05:54:13 UTC 2011
>Last-Modified:  Mon Aug 29 05:54:13 UTC 2011
>Originator:     Christopher Sean Hilton
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
Vindaloo.Com
>Environment:
System: FreeBSD dagobah.pvt.vindaloo.com 4.9-STABLE FreeBSD 4.9-STABLE #1: Wed Jan 28 17:07:24 EST 2004 chris@hoth.pvt.vindaloo.com:/usr/obj/usr/src/sys/GATEWAY-M450 i386


FreeBSD 4.9 Stable, Custom kernel with COMPAT_LINUX Specified.

Kernel config:

# Kernel Configuration for GATEWAY-M450 Laptop

machine		i386
cpu		I586_CPU
cpu		I686_CPU
ident		GATEWAY-M450
maxusers	0

options 	INET			#InterNETworking
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	UFS_DIRHASH
options 	NFS			#Network Filesystem
options 	MSDOSFS			#MSDOS Filesystem
options		EXT2FS
options 	CD9660			#ISO 9660 Filesystem
options 	PROCFS			#Process filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	SCSI_DELAY=5000		#Delay (in ms) before probing SCSI
options 	UCONSOLE		#Allow users to grab the console
options 	USERCONFIG		#boot -c editor
options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	KTRACE			#ktrace(1) support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores
options		ICMP_BANDLIM		#Rate limit bad replies
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev

options		COMPAT_LINUX

options		USER_LDT

options		IPSEC
options		IPSEC_ESP

options 	DDB
options 	DDB_UNATTENDED
options 	GDB_REMOTE_CHAT

device		isa
device		eisa
device		pci

device		apm0

# ATA and ATAPI devices
device		ata0
device		ata1
device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives
device		atapifd			# ATAPI floppy drives
device		atapist			# ATAPI tape drives

# SCSI peripherals
device		scbus		# SCSI bus (required)
device		da		# Direct Access (disks)
device		sa		# Sequential Access (tape etc)
device		cd		# CD
device		pass		# Passthrough device (direct SCSI access)

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1 flags 0x1
device		psm0	at atkbdc? irq 12 flags 0x6100

# syscons is the default console driver, resembling an SCO console
device		vga0	at isa?
device		sc0	at isa? flags 0x100
pseudo-device	splash
options		VESA
options		SC_PIXEL_MODE

# Floating point support - do not disable.
device		npx0	at nexus? port IO_NPX irq 13

# PCCARD (PCMCIA) support
device		card
device		pcic0	at isa? irq 10 port 0x3e0 iomem 0xd0000

# Server Management Bus Supported interfaces:
device		smbus		
device		intpm		# Intel PIIX4 Power Management Unit
device		iicbus		# Bus support, required for ic/iic/iicsmb below.
device		iicbb
device		ic
device		iic
device		iicsmb		# smb over i2c bridge

# Serial ports

device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? disable port IO_COM2 irq 3

# Parallel port
device		ppc0	at isa? irq 7
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		plip		# TCP/IP over parallel
device		ppi		# Parallel port interface device
device		vpo		# Requires scbus and da

device		miibus		# MII bus support

device		em
device		wi

device		pcm

# Pseudo devices - the number indicates how many units to allocated.
pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
pseudo-device	ppp	2	# Kernel PPP
pseudo-device	tun		# Packet tunnel.
pseudo-device	pty		# Pseudo-ttys (telnet etc)

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-device	bpf	4	#Berkeley packet filter

# USB support
device		uhci		# UHCI PCI->USB interface
device		ohci		# OHCI PCI->USB interface
device		usb		# USB Bus (required)
device		ugen		# Generic
device		uhid		# "Human Interface Devices"
device		ukbd		# Keyboard
device		ulpt		# Printer
device		umass		# Disks/Mass storage - Requires scbus and da
device		ums		# Mouse
device		uvisor		# Visor USB PDA
device		ucom		# More Visor
# USB Ethernet, requires mii
device		aue		# ADMtek USB ethernet
device		cue		# CATC USB ethernet
device		kue		# Kawasaki LSI USB ethernet




>Description:

On systems with a custom kernel with COMPAT_LINUX compiled in and
linprocfs loaded as a module the Linux Sun jdk executables hang and
need to be killed with kill -9.

>How-To-Repeat:

Compile a 4.9 Stable kernel with COMPAT_LINUX. 
Load linprocfs with with kldload.
Add linux-sun-jdk from the ports collection.
Run the Linux Java compiler.

$ kldstat              
Id Refs Address    Size     Name
 1    3 0xc0100000 3359b4   kernel
 2    1 0xc2346000 7000     linprocfs.ko
 3    1 0xc23c3000 2000     green_saver.ko
$ uname -a
FreeBSD dagobah.pvt.vindaloo.com 4.9-STABLE FreeBSD 4.9-STABLE #1: Wed Jan 28 17:07:24 EST 2004     chris@hoth.pvt.vindaloo.com:/usr/obj/usr/src/sys/GATEWAY-M450  i386
$ kldstat
Id Refs Address    Size     Name
 1    3 0xc0100000 3359b4   kernel
 2    1 0xc2346000 7000     linprocfs.ko
 3    1 0xc23c3000 2000     green_saver.ko
$ pkg_info -aI | grep linux-sun
linux-sun-jdk-1.4.2.02 Sun Java Development Kit 1.4 for Linux

>Fix:

Using the GENERIC kernel and loading both the linux compatibility and
the linprocfs works around this problem. I assume that loading linux
from the module is the fix. I will test this this afternoon and post a
follow-up.

-- Chris


>Release-Note:
>Audit-Trail:

From: Christopher Sean Hilton <chris@vindaloo.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc: roberthuff@rcn.com
Subject: Re: java/62837: linux-sun-jdk14 executables hang with COMPAT_LINUX in the the kernel.
Date: Thu, 8 Apr 2004 08:44:47 -0400

 I solved this by rebuilding my kernel configuration starting with
 GENERIC. I've enclosed a working kernel config and the differences. I
 stopped optimizing after I got Java running so I don't know which on
 the patches here actually fixed the problem.
 
 *** New Kernel config (works with Java) ***
 
 # Kernel Configuration for GATEWAY-450 Laptop
 #
 # $Id$
 
 machine		i386
 cpu		I386_CPU/c
 cpu		I486_CPU
 cpu		I586_CPU
 cpu		I686_CPU
 ident		GATEWAY_450
 maxusers	0
 
 makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
 
 options		DDB
 options		DDB_UNATTENDED
 options		GDB_REMOTE_CHAT
 
 options 	MATH_EMULATE		#Support for x87 emulation
 options 	INET			#InterNETworking
 options 	INET6			#IPv6 communications protocols
 options 	FFS			#Berkeley Fast Filesystem
 options 	FFS_ROOT		#FFS usable as root device [keep this!]
 options 	SOFTUPDATES		#Enable FFS soft updates support
 options 	UFS_DIRHASH		#Improve performance on big directories
 options 	NFS			#Network Filesystem
 options 	MSDOSFS			#MSDOS Filesystem
 options 	CD9660			#ISO 9660 Filesystem
 options		EXT2FS			#Linux Filesystems
 options 	PROCFS			#Process filesystem
 options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
 options 	SCSI_DELAY=5000		#Delay (in ms) before probing SCSI
 options 	UCONSOLE		#Allow users to grab the console
 options 	USERCONFIG		#boot -c editor
 options 	VISUAL_USERCONFIG	#visual boot -c editor
 options 	KTRACE			#ktrace(1) support
 options 	SYSVSHM			#SYSV-style shared memory
 options 	SYSVMSG			#SYSV-style message queues
 options 	SYSVSEM			#SYSV-style semaphores
 options 	P1003_1B		#Posix P1003_1B real-time extensions
 options 	_KPOSIX_PRIORITY_SCHEDULING
 options 	ICMP_BANDLIM		#Rate limit bad replies
 options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
 
 options		USER_LDT
 
 options		IPSEC
 options		IPSEC_ESP
 
 options 	IPFIREWALL		#firewall
 options 	IPFIREWALL_VERBOSE	#enable logging to syslogd(8)
 options 	IPFIREWALL_FORWARD	#enable transparent proxy support
 options 	IPFIREWALL_VERBOSE_LIMIT=100	#limit verbosity
 options 	IPFIREWALL_DEFAULT_TO_ACCEPT	#allow everything by default
 
 options 	IPV6FIREWALL		#firewall for IPv6
 options 	IPV6FIREWALL_VERBOSE
 options 	IPV6FIREWALL_VERBOSE_LIMIT=100
 options 	IPV6FIREWALL_DEFAULT_TO_ACCEPT
 
 options 	IPDIVERT		#divert sockets
 
 options		DA_OLD_QUIRKS
 options		CAMDEBUG
 
 device		isa
 device		eisa
 device		pci
 
 # Floppy drives
 device		fdc0	at isa? port IO_FD1 irq 6 drq 2
 device		fd0	at fdc0 drive 0
 
 # ATA and ATAPI devices
 device		ata0	at isa? port IO_WD1 irq 14
 device		ata1	at isa? port IO_WD2 irq 15
 device		ata
 device		atadisk			# ATA disk drives
 device		atapicd			# ATAPI CDROM drives
 device		atapifd			# ATAPI floppy drives
 device		atapist			# ATAPI tape drives
 options 	ATA_STATIC_ID		#Static device numbering
 
 # SCSI Controllers
 device		aic0	at isa?
 
 # SCSI peripherals
 device		scbus		# SCSI bus (required)
 device		da		# Direct Access (disks)
 device		sa		# Sequential Access (tape etc)
 device		cd		# CD
 device		ch		# Tape Changer
 device		pass		# Passthrough device (direct SCSI access)
 
 # atkbdc0 controls both the keyboard and the PS/2 mouse
 device		atkbdc0	at isa? port IO_KBD
 device		atkbd0	at atkbdc? irq 1 flags 0x1
 device		psm0	at atkbdc? irq 12
 
 device		vga0	at isa?
 
 # splash screen/screen saver
 pseudo-device	splash
 
 # syscons is the default console driver, resembling an SCO console
 device		sc0	at isa? flags 0x100
 options		SC_PIXEL_MODE
 options 	VESA
 
 device		agp		# support several AGP chipsets
 
 device		pcm
 
 # Floating point support - do not disable.
 device		npx0	at nexus? port IO_NPX irq 13
 
 # Power management support (see LINT for more options)
 device		apm0	at nexus? 
 
 # PCCARD (PCMCIA) support
 device		card
 device		pcic0	at isa? irq 0 port 0x3e0 iomem 0xd0000
 
 # Serial (COM) ports
 device		sio0	at isa? port IO_COM1 flags 0x90 irq 4
 device		sio1	at isa? port IO_COM2 irq 3
 
 # Parallel port
 device		ppc0	at isa? irq 7
 device		ppbus		# Parallel port bus (required)
 device		lpt		# Printer
 device		plip		# TCP/IP over parallel
 device		ppi		# Parallel port interface device
 #device		vpo		# Requires scbus and da
 
 
 # PCI Ethernet NICs.
 device		em		# Intel PRO/1000 adapter Gigabit Ethernet Card (``Wiseman'')
 device		ed
 device		miibus
 
 device		awi
 device		wi
 
 # Pseudo devices - the number indicates how many units to allocate.
 pseudo-device	loop		# Network loopback
 pseudo-device	ether		# Ethernet support
 pseudo-device	ppp	4	# Kernel PPP
 pseudo-device	tun		# Packet tunnel.
 pseudo-device	pty		# Pseudo-ttys (telnet etc)
 pseudo-device	md		# Memory "disks"
 pseudo-device	gif		# IPv6 and IPv4 tunneling
 pseudo-device	faith	1	# IPv6-to-IPv4 relaying (translation)
 
 # The `bpf' pseudo-device enables the Berkeley Packet Filter.
 # Be aware of the administrative consequences of enabling this!
 pseudo-device	bpf	4	#Berkeley packet filter
 
 # USB support
 device		uhci		# UHCI PCI->USB interface
 device		ohci		# OHCI PCI->USB interface
 device		ehci
 device		usb		# USB Bus (required)
 device		ugen		# Generic
 device		uhid		# "Human Interface Devices"
 device		ukbd		# Keyboard
 device		ulpt		# Printer
 device		umass		# Disks/Mass storage - Requires scbus and da
 device		ums		# Mouse
 device		uscanner	# Scanners
 device		urio		# Diamond Rio MP3 Player
 device		uvisor
 device		ucom
 # USB Ethernet, requires mii
 device		aue		# ADMtek USB ethernet
 device		cue		# CATC USB ethernet
 device		kue		# Kawasaki LSI USB ethernet
 
 # FireWire support
 device		firewire	# FireWire bus code
 device		sbp		# SCSI over FireWire (Requires scbus and da)
 device		fwe		# Ethernet over FireWire (non-standard!)
 
 *** Differences ***
 
 diff -c /sys/i386/conf/DAGOBAH /sys/i386/conf/DAGOBAH.no-java
 *** /sys/i386/conf/DAGOBAH	Sun Apr  4 18:42:40 2004
 --- /sys/i386/conf/DAGOBAH.no-java	Tue Feb 17 01:07:19 2004
 ***************
 *** 1,32 ****
 ! # Kernel Configuration for GATEWAY-450 Laptop
 ! #
 ! # $Id$
   
   machine		i386
 - cpu		I386_CPU
 - cpu		I486_CPU
   cpu		I586_CPU
   cpu		I686_CPU
 ! ident		GATEWAY_450
   maxusers	0
   
 - makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
 - 
 - options		DDB
 - options		DDB_UNATTENDED
 - options		GDB_REMOTE_CHAT
 - 
 - options 	MATH_EMULATE		#Support for x87 emulation
   options 	INET			#InterNETworking
 ! options 	INET6			#IPv6 communications protocols
   options 	FFS			#Berkeley Fast Filesystem
   options 	FFS_ROOT		#FFS usable as root device [keep this!]
   options 	SOFTUPDATES		#Enable FFS soft updates support
 ! options 	UFS_DIRHASH		#Improve performance on big directories
   options 	NFS			#Network Filesystem
   options 	MSDOSFS			#MSDOS Filesystem
   options 	CD9660			#ISO 9660 Filesystem
 - options		EXT2FS			#Linux Filesystems
   options 	PROCFS			#Process filesystem
   options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
   options 	SCSI_DELAY=5000		#Delay (in ms) before probing SCSI
 --- 1,21 ----
 ! # Kernel Configuration for GATEWAY-M450 Laptop
   
   machine		i386
   cpu		I586_CPU
   cpu		I686_CPU
 ! ident		GATEWAY-450
   maxusers	0
   
   options 	INET			#InterNETworking
 ! options 	INET6			#InterNETworking
   options 	FFS			#Berkeley Fast Filesystem
   options 	FFS_ROOT		#FFS usable as root device [keep this!]
   options 	SOFTUPDATES		#Enable FFS soft updates support
 ! options 	UFS_DIRHASH
   options 	NFS			#Network Filesystem
   options 	MSDOSFS			#MSDOS Filesystem
 + options		EXT2FS
   options 	CD9660			#ISO 9660 Filesystem
   options 	PROCFS			#Process filesystem
   options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
   options 	SCSI_DELAY=5000		#Delay (in ms) before probing SCSI
 ***************
 *** 37,45 ****
   options 	SYSVSHM			#SYSV-style shared memory
   options 	SYSVMSG			#SYSV-style message queues
   options 	SYSVSEM			#SYSV-style semaphores
 ! options 	P1003_1B		#Posix P1003_1B real-time extensions
 ! options 	_KPOSIX_PRIORITY_SCHEDULING
 ! options 	ICMP_BANDLIM		#Rate limit bad replies
   options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
   
   options		USER_LDT
 --- 26,32 ----
   options 	SYSVSHM			#SYSV-style shared memory
   options 	SYSVMSG			#SYSV-style message queues
   options 	SYSVSEM			#SYSV-style semaphores
 ! options		ICMP_BANDLIM		#Rate limit bad replies
   options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
   
   options		USER_LDT
 ***************
 *** 47,129 ****
   options		IPSEC
   options		IPSEC_ESP
   
 ! options 	IPFIREWALL		#firewall
 ! options 	IPFIREWALL_VERBOSE	#enable logging to syslogd(8)
 ! options 	IPFIREWALL_FORWARD	#enable transparent proxy support
 ! options 	IPFIREWALL_VERBOSE_LIMIT=100	#limit verbosity
 ! options 	IPFIREWALL_DEFAULT_TO_ACCEPT	#allow everything by default
 ! 
 ! options 	IPV6FIREWALL		#firewall for IPv6
 ! options 	IPV6FIREWALL_VERBOSE
 ! options 	IPV6FIREWALL_VERBOSE_LIMIT=100
 ! options 	IPV6FIREWALL_DEFAULT_TO_ACCEPT
 ! 
 ! options 	IPDIVERT		#divert sockets
 ! 
 ! options		DA_OLD_QUIRKS
 ! options		CAMDEBUG
   
   device		isa
   device		eisa
   device		pci
   
 ! # Floppy drives
 ! device		fdc0	at isa? port IO_FD1 irq 6 drq 2
 ! device		fd0	at fdc0 drive 0
   
   # ATA and ATAPI devices
 ! device		ata0	at isa? port IO_WD1 irq 14
 ! device		ata1	at isa? port IO_WD2 irq 15
   device		ata
   device		atadisk			# ATA disk drives
   device		atapicd			# ATAPI CDROM drives
   device		atapifd			# ATAPI floppy drives
   device		atapist			# ATAPI tape drives
 - options 	ATA_STATIC_ID		#Static device numbering
 - 
 - # SCSI Controllers
 - device		aic0	at isa?
   
   # SCSI peripherals
   device		scbus		# SCSI bus (required)
   device		da		# Direct Access (disks)
   device		sa		# Sequential Access (tape etc)
   device		cd		# CD
 - device		ch		# Tape Changer
   device		pass		# Passthrough device (direct SCSI access)
   
   # atkbdc0 controls both the keyboard and the PS/2 mouse
   device		atkbdc0	at isa? port IO_KBD
   device		atkbd0	at atkbdc? irq 1 flags 0x1
 ! device		psm0	at atkbdc? irq 12
 ! 
 ! device		vga0	at isa?
 ! 
 ! # splash screen/screen saver
 ! pseudo-device	splash
   
   # syscons is the default console driver, resembling an SCO console
   device		sc0	at isa? flags 0x100
   options		SC_PIXEL_MODE
 - options 	VESA
 - 
 - device		agp		# support several AGP chipsets
 - 
 - device		pcm
   
   # Floating point support - do not disable.
   device		npx0	at nexus? port IO_NPX irq 13
   
 - # Power management support (see LINT for more options)
 - device		apm0	at nexus? 
 - 
   # PCCARD (PCMCIA) support
   device		card
 ! device		pcic0	at isa? irq 0 port 0x3e0 iomem 0xd0000
   
 ! # Serial (COM) ports
 ! device		sio0	at isa? port IO_COM1 flags 0x90 irq 4
 ! device		sio1	at isa? port IO_COM2 irq 3
   
   # Parallel port
   device		ppc0	at isa? irq 7
 --- 34,98 ----
   options		IPSEC
   options		IPSEC_ESP
   
 ! makeoptions	DEBUG=-g
 ! options		DDB
 ! options		DDB_UNATTENDED
 ! options		GDB_REMOTE_CHAT
   
   device		isa
   device		eisa
   device		pci
   
 ! device		apm0
   
   # ATA and ATAPI devices
 ! device		ata0
 ! device		ata1
   device		ata
   device		atadisk			# ATA disk drives
   device		atapicd			# ATAPI CDROM drives
   device		atapifd			# ATAPI floppy drives
   device		atapist			# ATAPI tape drives
   
   # SCSI peripherals
   device		scbus		# SCSI bus (required)
   device		da		# Direct Access (disks)
   device		sa		# Sequential Access (tape etc)
   device		cd		# CD
   device		pass		# Passthrough device (direct SCSI access)
   
   # atkbdc0 controls both the keyboard and the PS/2 mouse
   device		atkbdc0	at isa? port IO_KBD
   device		atkbd0	at atkbdc? irq 1 flags 0x1
 ! device		psm0	at atkbdc? irq 12 flags 0x6100
   
   # syscons is the default console driver, resembling an SCO console
 + device		vga0	at isa?
   device		sc0	at isa? flags 0x100
 + pseudo-device	splash
 + options		VESA
   options		SC_PIXEL_MODE
   
   # Floating point support - do not disable.
   device		npx0	at nexus? port IO_NPX irq 13
   
   # PCCARD (PCMCIA) support
   device		card
 ! device		pcic0	at isa? irq 10 port 0x3e0 iomem 0xd0000
 ! 
 ! # Server Management Bus Supported interfaces:
 ! device		smbus		
 ! device		intpm		# Intel PIIX4 Power Management Unit
 ! device		iicbus		# Bus support, required for ic/iic/iicsmb below.
 ! device		iicbb
 ! device		ic
 ! device		iic
 ! device		iicsmb		# smb over i2c bridge
 ! 
 ! # Serial ports
   
 ! device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
 ! device		sio1	at isa? disable port IO_COM2 irq 3
   
   # Parallel port
   device		ppc0	at isa? irq 7
 ***************
 *** 131,156 ****
   device		lpt		# Printer
   device		plip		# TCP/IP over parallel
   device		ppi		# Parallel port interface device
 ! #device		vpo		# Requires scbus and da
   
   
 ! # PCI Ethernet NICs.
 ! device		em		# Intel PRO/1000 adapter Gigabit Ethernet Card (``Wiseman'')
 ! device		ed
 ! device		miibus
 ! 
 ! device		awi
   device		wi
   
 ! # Pseudo devices - the number indicates how many units to allocate.
   pseudo-device	loop		# Network loopback
   pseudo-device	ether		# Ethernet support
 ! pseudo-device	ppp	4	# Kernel PPP
   pseudo-device	tun		# Packet tunnel.
   pseudo-device	pty		# Pseudo-ttys (telnet etc)
 - pseudo-device	md		# Memory "disks"
 - pseudo-device	gif		# IPv6 and IPv4 tunneling
 - pseudo-device	faith	1	# IPv6-to-IPv4 relaying (translation)
   
   # The `bpf' pseudo-device enables the Berkeley Packet Filter.
   # Be aware of the administrative consequences of enabling this!
 --- 100,120 ----
   device		lpt		# Printer
   device		plip		# TCP/IP over parallel
   device		ppi		# Parallel port interface device
 ! device		vpo		# Requires scbus and da
   
 + device		miibus		# MII bus support
   
 ! device		em
   device		wi
   
 ! device		pcm
 ! 
 ! # Pseudo devices - the number indicates how many units to allocated.
   pseudo-device	loop		# Network loopback
   pseudo-device	ether		# Ethernet support
 ! pseudo-device	ppp	2	# Kernel PPP
   pseudo-device	tun		# Packet tunnel.
   pseudo-device	pty		# Pseudo-ttys (telnet etc)
   
   # The `bpf' pseudo-device enables the Berkeley Packet Filter.
   # Be aware of the administrative consequences of enabling this!
 ***************
 *** 159,165 ****
   # USB support
   device		uhci		# UHCI PCI->USB interface
   device		ohci		# OHCI PCI->USB interface
 - device		ehci
   device		usb		# USB Bus (required)
   device		ugen		# Generic
   device		uhid		# "Human Interface Devices"
 --- 123,128 ----
 ***************
 *** 167,182 ****
   device		ulpt		# Printer
   device		umass		# Disks/Mass storage - Requires scbus and da
   device		ums		# Mouse
 ! device		uscanner	# Scanners
 ! device		urio		# Diamond Rio MP3 Player
 ! device		uvisor
 ! device		ucom
   # USB Ethernet, requires mii
   device		aue		# ADMtek USB ethernet
   device		cue		# CATC USB ethernet
   device		kue		# Kawasaki LSI USB ethernet
   
 - # FireWire support
 - device		firewire	# FireWire bus code
 - device		sbp		# SCSI over FireWire (Requires scbus and da)
 - device		fwe		# Ethernet over FireWire (non-standard!)
 --- 130,139 ----
   device		ulpt		# Printer
   device		umass		# Disks/Mass storage - Requires scbus and da
   device		ums		# Mouse
 ! device		uvisor		# Visor USB PDA
 ! device		ucom		# More Visor
   # USB Ethernet, requires mii
   device		aue		# ADMtek USB ethernet
   device		cue		# CATC USB ethernet
   device		kue		# Kawasaki LSI USB ethernet
   
 
 -- Chris
 
 Chris Hilton                                 chilton-at-vindaloo-dot-com
 ------------------------------------------------------------------------
                 "All I was doing was trying to get home from work!"
                                                  -- Rosa Parks

From: "Jonathan Belson" <jon@witchspace.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc: chris@vindaloo.com, freebsd-java@freebsd.org
Subject: Re: java/62837: linux-sun-jdk14 executables hang with COMPAT_LINUX 
     in the the kernel.
Date: Tue, 23 Nov 2004 09:54:40 -0000 (GMT)

 I've just had a similar problem, but I think the kernel option in question
 is _KPOSIX_PRIORITY_SCHEDULING, not COMPAT_LINUX.  Adding that option my
 local config and rebuilding made the issue go away.  In the meantime, maybe
 applying the following patch would save other people a few hours:
 
 *** pkg-message.orig    Tue Nov 23 09:50:03 2004
 --- pkg-message Tue Nov 23 09:52:20 2004
 ***************
 *** 15,18 ****
 --- 15,22 ----
   kldload linprocfs
   mount /compat/linux/proc
 
 + If the java executables hang with a VM error, try adding the
 + option _KPOSIX_PRIORITY_SCHEDULING to your kernel config (if it isn't
 + there already) and rebuilding.
 +
   ======================================================================
 
 Cheers,
 
 --Jon
 
 
Responsible-Changed-From-To: freebsd-java->phantom 
Responsible-Changed-By: phantom 
Responsible-Changed-When: Fri Dec 24 08:51:20 GMT 2004 
Responsible-Changed-Why:  
Remind me to handle this one 


http://www.freebsd.org/cgi/query-pr.cgi?pr=62837 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Fri Mar 31 08:51:09 UTC 2006 
State-Changed-Why:  
Submitter: is this still a problem? 


Responsible-Changed-From-To: phantom->freebsd-java 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Mar 31 08:51:09 UTC 2006 
Responsible-Changed-Why:  
Reassign from phantom since he has been inactive for more than one year. 

Hat:	gnats-admin 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62837 

From: Stefan Walter <stefan@freebsd.org>
To: Christopher Sean Hilton <chris@vindaloo.com>,
	Jonathan Belson <jon@witchspace.com>
Cc: GNATS <FreeBSD-gnats-submit@FreeBSD.org>
Subject: Re: java/62837: linux-sun-jdk14 executables hang with COMPAT_LINUX
	in the the kernel.
Date: Fri, 6 Apr 2007 13:30:27 +0200

 --sm4nu43k4a2Rpi4c
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Hi,
 
 there hasn't been an update of this PR [1] for quite a while now. Has the
 problem been resolved/can the PR be closed?
 
 Regards,
 Stefan
 
 [1]: http://www.freebsd.org/cgi/query-pr.cgi?pr=java/62837
 
 --sm4nu43k4a2Rpi4c
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.7 (FreeBSD)
 
 iQGVAwUBRhYvUlaRERsSueCzAQIbXAwArbMEk2ABhfI1ZFKNYME0HBp57H3cU/sn
 zNNlymQ78pR49n38o7FlssEoYqa3XaLk1BWQ+oXrvqwP4hAu020W5FJiRuMncCtd
 RVv6X9SV6s1LgFreW006foHlEEDZmYzLHULJwYExC8E33KVM4xd/q6TsOpdw6798
 m2mSRyJxi+To52H7aLAx0unF/VVt//LjuSpj0IXaQboA4tgCppPAVb8QTwX5lm3e
 CmNYso3r2N85vpF+U5a91Um84051ayBUUit5uGPpKm4SDAIqJ7xHrdk3TFak1nYg
 /8Z0G/QTYiCTlQKjXs5TEMael2ObeAMVL70PDqmf5OpZ9UWrHccZG2dqh2w6zNUr
 DHy8clqiGjomSGGRKJwX5KOWL0+O8U5u0pfp/FTF4Qysm0N5XhxUgTFmiA9O9M2L
 eUgxuNHHh0YLY1ZLne9hxE1o9vNC1V5I5Qx0jRuu7MFt5Qp+zPiA8n2/zkwk3kwI
 c2lafOm2prMu4RvN6dI5xufuqEwKyr8o
 =N5dH
 -----END PGP SIGNATURE-----
 
 --sm4nu43k4a2Rpi4c--

From: Jonathan Belson <jon@witchspace.com>
To: Stefan Walter <stefan@freebsd.org>
Cc: Christopher Sean Hilton <chris@vindaloo.com>,
 GNATS <FreeBSD-gnats-submit@FreeBSD.org>
Subject: Re: java/62837: linux-sun-jdk14 executables hang with COMPAT_LINUX in the the kernel.
Date: Thu, 12 Apr 2007 21:26:31 +0100

 On 6 Apr 2007, at 12:30, Stefan Walter wrote:
 
 > Hi,
 >
 > there hasn't been an update of this PR [1] for quite a while now.  
 > Has the
 > problem been resolved/can the PR be closed?
 
 I just checked with FreeBSD 6.2 release.  Without  
 _KPOSIX_PRIORITY_SCHEDULING in the kernel, attempting to run  
 executables from linux-sun-jdk14 causes core dumps:
 
 Apr 12 19:47:14 xev kernel: cmd java pid 88362 tried to use non- 
 present sched_getscheduler
 Apr 12 19:47:14 xev kernel: pid 88362 (java), uid 0: exited on signal  
 6 (core dumped)
 
 sched_getscheduler() is supplied by _KPOSIX_PRIORITY_SCHEDULING,  
 which is enabled in GENERIC.  I guess an end-user could figure out  
 the problem from the error message, but it would be nice if the  
 requirement was documented somewhere (eg. in the pkg-message, as I  
 suggested).
 
 Cheers,
 
 --Jon
 
State-Changed-From-To: feedback->suspended 
State-Changed-By: linimon 
State-Changed-When: Sat Mar 1 23:29:46 UTC 2008 
State-Changed-Why:  
Note that feedback was received quite some time ago.  Mark as suspended 
since no one seems to be working on this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62837 
State-Changed-From-To: suspended->closed 
State-Changed-By: glewis 
State-Changed-When: Mon Aug 29 05:53:45 UTC 2011 
State-Changed-Why:  
linux-sun-jdk14 has been removed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62837 
>Unformatted:
