From owner-freebsd-current@FreeBSD.ORG Fri Feb 13 09:23:50 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88AC916A4CE for ; Fri, 13 Feb 2004 09:23:50 -0800 (PST) Received: from mail2.dbitech.ca (radius.wavefire.com [64.141.13.252]) by mx1.FreeBSD.org (Postfix) with SMTP id 4240843D31 for ; Fri, 13 Feb 2004 09:23:50 -0800 (PST) (envelope-from archeron@wavefire.com) Received: (qmail 9061 invoked from network); 13 Feb 2004 18:11:32 -0000 Received: from archeron.wavefire.com (HELO 64.141.15.246) (archeron@archero@64.141.15.246) by radius.wavefire.com with SMTP; 13 Feb 2004 18:11:32 -0000 From: Wade Klaver To: freebsd-current@freebsd.org Date: Fri, 13 Feb 2004 09:23:49 -0800 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200402130923.49142.archeron@wavefire.com> Subject: Creating unkillable processes. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: archeron@wavefire.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2004 17:23:50 -0000 Hello folks, I am somehow managing to create an unkillable process. It is a javavm instance run by an unprivileged user. It happens (most of the time) when I do the following: killall java (a few times when the process is in the state "kserel") killall -TERM java (again a few times) killall -9 java After the attempt to send a SIGKILL, the process the goes into the WAIT state according to top. At this point the process ignores all signals, even from root, and can only be killed with a reboot. If I can provide any additional information, please let me know. Below is the system CV. [root@ root]# uname -a FreeBSD ***.****.com 5.2-CURRENT FreeBSD 5.2-CURRENT #23: Thu Feb 12 16:06:03 PST 2004 root@***.****.com:/usr/obj/usr/src/sys/WORKSTATION-5.0-SMP i386 [root@ root]# javavm -version java version "1.4.2-p5" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p5-root_20_nov_2003_11_27) Java HotSpot(TM) Client VM (build 1.4.2-p5-root_20_nov_2003_11_27, mixed mode) [root@ root]# more /etc/libmap.conf libc_r.so.5 libpthread.so.1 libc_r.so libpthread.so libkse.so.1 libpthread.so.1 libkse.so libpthread.so [root@ root]# more /var/run/dmesg.boot 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.2-CURRENT #23: Thu Feb 12 16:06:03 PST 2004 root@***.****.com:/usr/obj/usr/src/sys/WORKSTATION-5.0-SMP Preloaded elf kernel "/boot/kernel/kernel" at 0xc09d1000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc09d1244. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc09d1294. 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 = 536854528 (511 MB) avail memory = 515731456 (491 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 3 cpu1 (AP): APIC ID: 0 ioapic0 irqs 0-23 on motherboard netsmb_dev: loaded Pentium Pro MTRR support enabled npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard pcibios: BIOS version 2.10 Using $PIR table, 7 entries at 0xc00f12d0 acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0 acpi_cpu0: port 0x530-0x537 on acpi0 acpi_cpu1: port 0x530-0x537 on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib0: slot 4 INTD is routed to irq 5 pcib0: slot 4 INTD is routed to irq 5 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 at device 4.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata0: [MPSAFE] ata1: at 0x170 irq 15 on atapci0 ata1: [MPSAFE] pci0: at device 4.2 (no driver attached) pci0: at device 4.3 (no driver attached) ahc0: port 0xb800-0xb8ff mem 0xf8800000-0xf8800 fff irq 19 at device 9.0 on pci0 aic7890/91: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs isp0: port 0xb400-0xb4ff mem 0xf8000000-0xf8000f ff irq 17 at device 11.0 on pci0 xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xb000-0xb07f mem 0xf7800000-0xf780007f irq 16 at device 12.0 on pci0 xl0: Ethernet address: 00:50:da:91:0d:3f miibus0: on xl0 xlphy0: <3c905C 10/100 internal PHY> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isp1: port 0xa800-0xa8ff mem 0xf7000000-0xf7000f ff irq 19 at device 13.0 on pci0 fdc0: port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0 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 orm0: