Bug 246677

Summary: svc_run.c: 100% cpu usage
Product: [Fedora] Fedora Reporter: Adam Goode <adam>
Component: libtirpcAssignee: Steve Dickson <steved>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 7   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.1.7-7.fc7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-07-10 06:42:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to fix 100% cpu none

Description Adam Goode 2007-07-03 20:44:19 UTC
Description of problem:
Calling svc_run appears to eat up 100% of the cpu after 30 seconds of
runtime; this is because the "struct timeval timeout" only sets its value
outside of the execution loop, despite that select() returns the structure
with undefined value.


Version-Release number of selected component (if applicable):
0.1.7-5.fc7

How reproducible:
Every time.

Steps to Reproduce:
Call svc_run() and wait.

  
Actual results:
100% CPU after 30 seconds.

Expected results:
No spike in CPU usage.


Additional info:
http://sourceforge.net/tracker/index.php?func=detail&aid=1740531&group_id=183075&atid=903784

Comment 1 Adam Goode 2007-07-03 20:44:19 UTC
Created attachment 158474 [details]
Patch to fix 100% cpu

Comment 2 Fedora Update System 2007-07-10 06:42:53 UTC
libtirpc-0.1.7-7.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.