Date: Thu, 8 Apr 2004 05:50:21 -0700 (PDT) From: Christopher Sean Hilton <chris@vindaloo.com> To: freebsd-java@FreeBSD.org Subject: Re: java/62837: linux-sun-jdk14 executables hang with COMPAT_LINUX in the the kernel. Message-ID: <200404081250.i38CoL4n022059@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR java/62837; it has been noted by GNATS. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404081250.i38CoL4n022059>