kern/71226: processes list is broken

Seva Gluschenko gvs at rinet.ru
Wed Sep 1 08:06:07 PDT 2004


Sergey Akifyev wrote:

> BTW, killing init would be helpful. If processes will not die this way,
> you will see error message on console during shutdown.

I LOVE this messages "some process couldn't die, ps axl advised" just 
before reboot, ahem... when the box hangs somewhere in disk operations 
and only Ctrl-Alt-Del helps (with some delays).

> But, I think you understand my initial question: I suspected bad-coded
> parent process. Now I see this is ps or kernel failing.

ps just reports what kernel presents. Top displays them, too:

   PID USERNAME PRI NICE   SIZE    RES STATE    TIME   WCPU    CPU COMMAND
[]
25220 gvs       76   19 23020K  7500K RUN      0:00  0.00%  0.00% 
kblankscrn.kss
25193 gvs       76   19 23020K  7500K RUN      0:00  0.00%  0.00% 
kblankscrn.kss

 >ps jax | grep kblan
USER    PID  PPID  PGID   SID JOBC STAT  TT       TIME COMMAND
gvs   25193     1   590   590    0 RN    ??    0:00,10 
/usr/local/bin/kblankscrn.kss -root
gvs   25220     1   590   590    0 RN    ??    0:00,11 
/usr/local/bin/kblankscrn.kss -root
gvs   28996     1   590   590    0 RN    ??    0:00,01 
/usr/local/bin/kblankscrn.kss -root

> So, a couple of diagnostic tests:
> 
> 1) check if zombie-structures was allocated in kernel
> # vmstat -m|fgrep zombie

        zombie     0     0K      1K    36254  128

> 2) what is your threading library in /etc/libmap.conf ? Whatewer it is,
> try to change it and look what happens. (I suspect KSE-related problems)

libc_r.so.5             libpthread.so.1
libc_r.so               libpthread.so

AFAIR, UPDATING recommended exactly this way. Is it obsoleted?

> 3) what does sockstat think about theese processes?

Nothing. Just nothing. They're absent.

-gvs


More information about the freebsd-bugs mailing list