Bugzilla will be upgraded to version 5.0 on December 2, 2018. The outage period for the upgrade will start at 0:00 UTC and have a duration of 12 hours
Bug 78772 - rpc.rstatd can not handle /proc/stat output
rpc.rstatd can not handle /proc/stat output
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: rusers (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Knirsch
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2002-11-29 10:25 EST by Michael Plagge
Modified: 2015-03-04 20:11 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-02-14 16:05:08 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
diff against rstat_proc.c from rusers-0.0.17 (2.41 KB, patch)
2002-11-29 10:41 EST, Michael Plagge
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2002:278 high SHIPPED_LIVE Updated rusers package available 2003-02-07 10:19:58 EST

  None (edit)
Description Michael Plagge 2002-11-29 10:25:24 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Linux 2.4.7-10 i686; U) Opera 6.1  [en]

Description of problem:

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
starting rpc.rstatd
using rup on a remote host
rstatd daemon crahses with segfault


Actual Results:  core dump

Expected Results:  returning data to rup

Additional info:

diff to follow
Comment 1 Michael Plagge 2002-11-29 10:41:47 EST
Created attachment 86885 [details]
diff against rstat_proc.c from rusers-0.0.17
Comment 2 Michael Plagge 2002-11-29 11:00:22 EST
Output from /proc/stat normal Red Hat 7.3:  
intr 3030199 2250856 18029 ... 
Output from /proc/stat Red Hat Linux Advanced Server release 2.1AS: 
intr 10974542 1009005264 1000000060... 
rstatd compares if first number of intr-line is bigger than second 
number. If this is not the case assert() is called. 
Second problem seems to be, that sscanf() can not handle NULL pointer 
as first argument, therefore i added tests for NULL pointer in front 
of each sscanf line 
Comment 3 Phil Knirsch 2002-12-05 05:52:02 EST
OK, verified that the patch for rstatd.c for later kernels fixes the problem.

Will open a new AS errata today and build updated packages.

Read ya, Phil
Comment 4 John Flanagan 2003-02-14 16:05:08 EST
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.


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