From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,898aed2f8680f611 X-Google-Attributes: gidfee84,public From: Robert Moniot Subject: Re: clearing out zombie processes Date: 1997/08/08 Message-ID: X-Deja-AN: 262900661 References: <33E78839.59E2@zk3.dec.com> Organization: Fordham University/FCLC Newsgroups: comp.unix.osf.osf1 Jeff Denham writes: > > Can I see some ps output that shows these zombies with process > 1 (init) as the parent? > > Then do this for me, as root: > > # dbx -k /vmunix > (dbx) p utsname > (dbx) set $pid=PID-OF-ZOMBIE-WITH-INIT-AS-PARENT > (dbx) tstack > (dbx) p ((thread_t)$tid).stack.uthread.utask.uu_comm > Here it is: Script started on Fri Aug 8 13:03:51 1997 # who [other users trimmed for security purposes] reyes tty06 Jul 29 00:56 reyes tty07 Jul 23 23:34 reyes tty0g Jul 29 00:09 moniot ttyp3 Aug 8 12:50 # ps -lu reyes F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 80008401 < 393 567 1 0.0 0 -44 - 0K - ?? 0:00.00 80808441 < 393 7332 567 0.0 0 -44 - 0K - ?? 0:00.00 80008401 < 393 19638 1 0.0 0 -44 - 0K - ?? 0:00.00 80808441 < 393 21079 19638 0.0 0 -44 - 0K - ?? 0:00.00 80008401 < 393 21766 1 0.0 0 -44 - 0K - ?? 0:00.00 80808441 < 393 23116 21766 0.0 0 -44 - 0K - ?? 0:00.00 # dbx -k /vmunix dbx version 3.11.10 Type 'help' for help. stopped at [thread_block:2025 ,0xfffffc00002a8270] Source not available warning: Files compiled -g3: parameter values probably wrong (dbx) p utsname struct { sysname = "OSF1" nodename = "erdos" release = "V4.0" version = "386" machine = "alpha" } (dbx) set $pid=21766 warning: thread 0xfffffc000fa61600 appears to be swapped out (dbx) tstack Thread 0xfffffc000fa61600: warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out > 0 thread_block() ["../../../../src/kernel/kern/sched_prim.c":2022, 0xfffffc00002a826c] warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out 1 mpsleep(0x0, 0xffffffff90eaf540, 0x0, 0x0, 0x0) ["../../../../src/kernel/bsd/kern_synch.c":539, 0xfffffc00002733d4] 2 streams_mpsleep(0xfffffc000228ea00, 0x0, 0x0, 0x0, 0xfffffc000c6850f8) ["../../../../src/kernel/streams/str_env.c":574, 0xfffffc0000441b68] 3 latsclose(0xfffffc000044fe5c, 0x0, 0xfffffc000066b5b0, 0xfffffc000044fe10, 0xffffffff90eaf620) ["../../../../src/kernel/lat/streams/latclose.c":168, 0xffffffff90d4dee0] 4 close_wrapper(0xfffffc000066b5b0, 0xfffffc000044fe10, 0xffffffff90eaf620, 0x0, 0xfffffc0000451444) ["../../../../src/kernel/streams/str_subr.c":317, 0xfffffc000044fe58] 5 csq_protect(q1 = 0xfffffc000398e600, q2 = 0xfffffc000398e6e8, func = 0xfffffc000044fe10, arg = 0xffffffff90eaf620, sq = 0xfffffc000c6850f8, which = 0) ["../../../../src/kernel/streams/str_synch.c":770, 0xfffffc0000451440] 6 osr_pop_subr(0x0, 0xfffffc000c6850f8, 0xfffffc000398e600, 0x400, 0xfffffc000c685000) ["../../../../src/kernel/streams/str_osr.c":1682, 0xfffffc0000446e78] More (n if no)? 7 osr_close_subr(osrq = 0xffffffff90eaf6f8) ["../../../../src/kernel/streams/str_scalls.c":1339, 0xfffffc000044cde4] 8 pse_close(dev = 6180456, flag = 6180456, mode = 6180456, cred = (nil), private = warning: thread 0xfffffc000fa61600 appears to be swapped out (nil)) ["../../../../src/kernel/streams/str_scalls.c":1190, 0xfffffc000044ca0c] 9 speclose(0x2000, 0xfffffc000bf7a900, 0x2, 0x0, 0xffffffffffffffff) ["../../../../src/kernel/vfs/spec_vnops.c":2449, 0xfffffc000048d54c] 10 clearalias(0x0, 0xffffffff80808401, 0xfffffc00001fbfe8, 0xfffffc000c685000, 0xfffffc0000000002) ["../../../../src/kernel/vfs/spec_vnops.c":1157, 0xfffffc000048b2c8] 11 exit(0xfffffc0000659040, 0xfffffc000f6d0000, 0x100, 0xfffffc000fcb2ca0, 0xfffffc0000000001) ["../../../../src/kernel/bsd/kern_exit.c":1008, 0xfffffc000025d1f8] 12 rexit(0x100, 0xfffffc000fcb2ca0, 0xfffffc0000000001, 0xfffffc000fa61600, 0xfffffc00004eeb94) ["../../../../src/kernel/bsd/kern_exit.c":755, 0xfffffc000025cb68] 13 syscall(0x0, 0x11fffccf0, 0x6661133dd78e4, 0x120014800, 0x1) ["../../../../src/kernel/arch/alpha/syscall_trap.c":540, 0xfffffc00004eeb90] 14 _Xsyscall(0x8, 0x3ff800d5f98, 0x3ffc00931b0, 0x1, 0x0) ["../../../../src/kernel/arch/alpha/locore.s":1173, 0xfffffc00004e5dc4] (dbx) p ((thread_t)$tid).stack.uthread.utask.uu_comm warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out warning: thread 0xfffffc000fa61600 appears to be swapped out "tcsh" More (n if no)? (dbx) quit # exit script done on Fri Aug 8 13:04:52 1997 -- Bob Moniot Fordham University email: moniot@dsm.fordham.edu Fordham College at Lincoln Center URL: http://www.dsm.fordham.edu/~moniot/ New York, NY 10023 phone: (212) 636-6311