Bug 154396 - rup exits with error inconsistently
rup exits with error inconsistently
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: rusers (Show other bugs)
3.0
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Knirsch
Ben Levenson
:
Depends On:
Blocks: 156320 156322
  Show dependency treegraph
 
Reported: 2005-04-11 10:11 EDT by Neil Horman
Modified: 2015-03-04 20:14 EST (History)
2 users (show)

See Also:
Fixed In Version: RHBA-2005-422
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-10-05 09:36:35 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
patch to solve stack allocation issue, by moving allocated storage to be static and global (1.65 KB, patch)
2005-04-11 10:11 EDT, Neil Horman
no flags Details | Diff

  None (edit)
Description Neil Horman 2005-04-11 10:11:30 EDT
Description of problem:
This problem was discovered on x86_64, but appears to be present (but not
necesssecarily presenting) on all platforms.  It appears that the rup utility
passes data to clnt_broadcast that was allocated on the stack, but is used by
the rpc callback, potentially after the allocating stack frame has itself been
de-allocated.  This leads to erroneous results.

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


How reproducible:
always

Steps to Reproduce:
1.run rup with no arguments on an x86_64 RHEL3 system
  
Actual results:
rup exits with the following error:
rup: RPC: Can't encode arguments

Expected results:
rup should print a list of responding rpc hosts.


Additional info:
Comment 1 Neil Horman 2005-04-11 10:11:30 EDT
Created attachment 112945 [details]
patch to solve stack allocation issue, by moving allocated storage to be static and global
Comment 2 Phil Knirsch 2005-04-22 08:02:39 EDT
Good catch.

I'll be working on packages and erratas next week for RHEL3 U6 and RHEL4 U2.

Patch looks good.

Thanks,

Read ya, Phil
Comment 3 Neil Horman 2005-04-22 08:24:14 EDT
Thanks Phil!
Comment 4 Phil Knirsch 2005-05-04 06:12:12 EDT
OK, took a week longer, but packages have been built and erratas opened and
assigned to the proper update releases.

Read ya, Phil
Comment 10 Red Hat Bugzilla 2005-09-28 16:25:06 EDT
An advisory 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.

http://rhn.redhat.com/errata/RHBA-2005-423.html
Comment 11 Red Hat Bugzilla 2005-10-05 09:36:35 EDT
An advisory 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.

http://rhn.redhat.com/errata/RHBA-2005-422.html

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