Red Hat Bugzilla – Bug 78772
rpc.rstatd can not handle /proc/stat output
Last modified: 2015-03-04 20:11:47 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):
Steps to Reproduce:
using rup on a remote host
rstatd daemon crahses with segfault
Actual Results: core dump
Expected Results: returning data to rup
diff to follow
Created attachment 86885 [details]
diff against rstat_proc.c from rusers-0.0.17
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
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
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.