Creating unkillable processes.

From: Wade Klaver <archeron_at_wavefire.com>
Date: Fri, 13 Feb 2004 09:23:49 -0800
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_at_ root]# uname -a
FreeBSD ***.****.com 5.2-CURRENT FreeBSD 5.2-CURRENT #23: Thu Feb 12 16:06:03 
PST 2004     root_at_***.****.com:/usr/obj/usr/src/sys/WORKSTATION-5.0-SMP  i386

[root_at_ 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_at_ 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_at_ 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_at_***.****.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: <ASUS   CUV4X-D >
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,P
SE36,MMX,FXSR,SSE>
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 <Version 1.1> irqs 0-23 on motherboard
netsmb_dev: loaded
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <ASUS CUV4X-D> 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: <CPU> port 0x530-0x537 on acpi0
acpi_cpu1: <CPU> port 0x530-0x537 on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 4 INTD is routed to irq 5
pcib0: slot 4 INTD is routed to irq 5
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 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: <serial bus, USB> at device 4.2 (no driver attached)
pci0: <serial bus, USB> at device 4.3 (no driver attached)
ahc0: <Adaptec 2940 Ultra2 SCSI adapter (OEM)> 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: <Qlogic ISP 1020/1040 PCI SCSI Adapter> 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: <MII bus> on xl0
xlphy0: <3c905C 10/100 internal PHY> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isp1: <Qlogic ISP 1020/1040 PCI SCSI Adapter> port 0xa800-0xa8ff mem 
0xf7000000-0xf7000f
ff irq 19 at device 13.0 on pci0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> 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: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
orm0: <Option ROMs> at iomem 
0xd4000-0xd47ff,0xd0000-0xd07ff,0xc8000-0xcd7ff,0xc0000-0xc
7fff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x0>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 10.000 msec
ipfw2 initialized, divert enabled, rule-based forwarding enabled, default to 
deny, loggi
ng limited to 100 packets/entry by default
IPsec: Initialized Security Association Processing.
ad0: 57259MB <MAXTOR 6L060J3> [116336/16/63] at ata0-master UDMA100
acd0: CDROM <CREATIVE CD5230E> at ata1-master PIO4
Waiting 15 seconds for SCSI devices to settle
SMP: AP CPU #1 Launched!
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)
Mounting root from ufs:/dev/ad0s2a



-- 
Wade Klaver
Wavefire Technologies Corporation
GPG Public Key at http://archeron.wavefire.com

/"\   ASCII Ribbon Campaign  .
\ / - NO HTML/RTF in e-mail  .
 X  - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
Received on Fri Feb 13 2004 - 08:23:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:43 UTC