Re: LTP 20080131 causes defunct processes w/2.6.30-rc1 (possible ptrace issue?)

From: Kumar Gala
Date: Fri Apr 10 2009 - 01:27:36 EST



On Apr 9, 2009, at 8:03 PM, Sukadev Bhattiprolu wrote:


-bash-3.2# ps
PID TTY TIME CMD
2289 ttyS0 00:00:00 bash
2310 ttyS0 00:00:00 runltp
2412 ttyS0 00:00:00 pan
2448 ttyS0 00:00:00 recv01 <defunct>
2450 ttyS0 00:00:00 recvfrom01 <defunct>
2452 ttyS0 00:00:00 recvmsg01 <defunct>
2473 ttyS0 00:00:00 rename14
2474 ttyS0 00:00:01 rename14
2477 ttyS0 00:00:00 rename14
2481 ttyS0 00:00:00 ps
-bash-3.2# cat /proc/1/status
Name: init
State: T (stopped)

init is in the stopped state. Can you run "kill -CONT 1" ?

yes

Tgid: 1
Pid: 1
PPid: 0
TracerPid: 0
Uid: 0 0 0 0
Gid: 0 0 0 0
FDSize: 32
Groups:
VmPeak: 1948 kB
VmSize: 1944 kB
VmLck: 0 kB
VmHWM: 648 kB
VmRSS: 648 kB
VmData: 164 kB
VmStk: 84 kB
VmExe: 288 kB
VmLib: 1124 kB
VmPTE: 20 kB
Threads: 1
SigQ: 8/16384
SigPnd: 0000000000000000
ShdPnd: 0000000000010000

Init does have the pending SIGCHLD, so the zombies should go away
when init gets the SIGCONT.

That seems to clear it up.. But why has the behavior changed? I didn't have to do the "kill -CONT 1" on 2.6.29.

- k
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/