Bug 25519 - rpc.rstatd crashes on linux 2.4.0
Summary: rpc.rstatd crashes on linux 2.4.0
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rusers
Version: 7.1
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: David Lawrence
URL:
Whiteboard: Florence RC-1
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-02-01 21:02 UTC by Urban Widmark
Modified: 2007-04-18 16:31 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-02-02 22:57:21 UTC
Embargoed:


Attachments (Terms of Use)

Description Urban Widmark 2001-02-01 21:03:00 UTC
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
keywords.

If one keyword is missing it will segfault. Linux 2.4 reports disk
information differently from 2.2 and rusers assumes 2.2 format.

Reproducible: Always
Steps to Reproduce:
1. /etc/init.d/portmap start
2. /etc/init.d/rstatd
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.
	http://www.hojdpunkten.ac.se/054/rstatd-linux2.4.patch
This needs to be applied after the "jbj" patch in the rpm.

Comment 1 Glen Foster 2001-02-02 22:57:17 UTC
We (Red Hat) should really fix this before next release

Comment 2 Nalin Dahyabhai 2001-02-06 21:15:51 UTC
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). 
Thanks!


Note You need to log in before you can comment on or make changes to this bug.