proc doesnt like zombies

Chris Atenasio (root@lilo.dyn.ml.org)
Tue, 7 Apr 1998 17:46:54 -0400 (EDT)


Seems the kernel doesnt like it when you look at the proc entry of a
zombie. More specifically:

lilo:~# ps aux | grep keep-ppp-on
root 148 0.0 0.0 0 0 ? Z 16:45 0:00 (keep-ppp-on<zombie>)
lilo:~# ls /proc/148
!BOOM!

Oops: 0000
CPU: 0
EIP: 0010;[<c015a301>]
EFLAGS: 00010286
EAX:00000000 EBX:0000007a ECX:00000000 EDX:c4646000 ESI:c5f289a0
EDI:00000001 EBP:00000401 ESP:c51d3f4c
Stack:
0000a1c0 c55055e8 c0132d57 c55055e8 00000001 c55055e18 00000000 c55055e8
c55038ee015bc90 00000001 c55055e8 c55038e0 c55038e0 000000000 c0131375
c55038e0 0000040c02aabfc
Call Trace: [<c0132d57>][<c015bc90>][<c015be5c>][<c0131375>][<c010b718>]
Code: 8b 48 08 f0 ff 0d 1c f9 23 c6 85 s2 74 3285 c9 75 09 eb 1b

note: this isnt the original output; this hosed the kernel so much that i
ended up writing it down and typing it back in(hmm some kind of
capture-screen-and-dump-it-somewhere-sysrq would be nice...) Now in
analysis(done by hand... c++ is broken on my system right now so no
ksymoops for me. would be nice if someone could compile me a static :)
the EIP seems to be

proc_permission+129

call trace:
permission+35
proc_follow_link+28
proc_readlink+80
sys_readlink+257
show_registers+556

code: (this i could get ksymoops to do)

Code: 00000000 <_EIP>:
Code: 0 <_EIP+0>: 8b 48 08 movl 0x8(%eax),%ecx
Code: 3 <_EIP+3>: f0 ff 0d 1c f9 lock decl 0xc623f91c
Code: 8 <_EIP+8>: 23 c6
Code: 10 <_EIP+10>: 85 d2 testl %edx,%edx
Code: 12 <_EIP+12>: 74 85 je ffffff93 <_EIP+ffffff93>
Code: 14 <_EIP+14>: c9 leave
Code: 15 <_EIP+15>: 75 09 jne 1a <_EIP+1a>
Code: 17 <_EIP+17>: eb 1b jmp 2e <_EIP+2e>
Code: 19 <_EIP+19>: 1b 00 sbbl (%eax),%eax
Code: 21 <_EIP+21>: 90 nop
Code: 22 <_EIP+22>: 90 nop
Code: 23 <_EIP+23>: 90 nop

FYI: keep-ppp-on is a little respawn script run from inittab that exec's
pppd -detach

Any other info that would be helpful?

- Chris
--------------------------------------------------------------------------------
Chris Atenasio (chrisa@ultranet.com root@lilo.dyn.ml.org chrisa@casc.com)
Send me mail with subject "send pgp key" or "word of the day" for autoresponse.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu