Bug 26447 - rpc.rstatd doesnt not stay up
rpc.rstatd doesnt not stay up
Product: Red Hat Linux
Classification: Retired
Component: rusers (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
David Lawrence
Florence Gold
Depends On:
  Show dependency treegraph
Reported: 2001-02-07 04:14 EST by Henri Schlereth
Modified: 2007-04-18 12:31 EDT (History)
1 user (show)

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

Attachments (Terms of Use)
makes rstat_proc.c live happily with 2.4 /proc/stat (2.07 KB, patch)
2001-02-13 18:08 EST, Bob Matthews
no flags Details | Diff

  None (edit)
Description Henri Schlereth 2001-02-07 04:14:00 EST
As part of security testing and to keep track of internal machine I times I
run rup. All 4 of my RH70 boxes respond. I have started rstatd on the
beta3 boxes and
it starts just fine but immediately stops w/o an error logged.
Comment 1 Glen Foster 2001-02-08 11:03:43 EST
This defect is considered MUST-FIX for Florence Gold release
Comment 2 Bob Matthews 2001-02-09 13:29:39 EST
Can you start the rstatd using strace(1) and attach the output to the bug
Comment 3 Bob Matthews 2001-02-09 16:32:52 EST
This is a SEGV during a call to daemon(3).
Comment 4 Jakub Jelinek 2001-02-13 08:16:17 EST
Bob, can you please be more verbose about why you think it segfaults in daemon?
Have you received any strace and/or debugged this a little bit?
I don't see how a program could crash in daemon (unless it is linked
against -lpthread and for some reason thread local register is broken
but rpc.rstatd is not linked against -lpthread).
Comment 5 Bob Matthews 2001-02-13 12:40:08 EST
Jakub, this was my mistake.  I saw the segv after the daemonize call and assumed
that it was happening there.  But, a little more investigation shows that the
child process is segfaulting long after the return from fork.

I will try and fix this quickly, and if I can't will reclassify as rusers bug.
Comment 6 Bob Matthews 2001-02-13 18:07:14 EST
/proc/stat layout has changed in 2.4 kernels.  Patch attached.
Comment 7 Bob Matthews 2001-02-13 18:08:23 EST
Created attachment 9961 [details]
makes rstat_proc.c live happily with 2.4 /proc/stat
Comment 8 Nalin Dahyabhai 2001-02-14 21:50:19 EST
Bob, patch will be pulled into the next rusers build.  Thanks!

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