Red Hat Bugzilla – Bug 25519
rpc.rstatd crashes on linux 2.4.0
Last modified: 2007-04-18 12:31:03 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.1-pre11 i686)
rpc.rstatd parses /proc/stat to find various system info. When doing so it
assumes that the data read will be in a certain format, and matches on
If one keyword is missing it will segfault. Linux 2.4 reports disk
information differently from 2.2 and rusers assumes 2.2 format.
Steps to Reproduce:
1. /etc/init.d/portmap start
3. xmeter -load localhost -update 1
(or some other tool for displaying rstatd stats)
I have a patch that modifies it to read 2.4 format too. Untested on 2.2.
Also, note that this patch has the same problem as the old code if the
format changes again.
This needs to be applied after the "jbj" patch in the rpm.
We (Red Hat) should really fix this before next release
This will be fixed in rusers-0.17-9 (with a more minimalistic patch -- if it
changes again, I'll probably switch it to using regex as your patch does).