Bug 673191

Summary: io_getevents does not work properly when called from within a shared library
Product: [Fedora] Fedora Reporter: Jeffrey M. Birnbaum <jmbnyc>
Component: libaioAssignee: Jeff Moyer <jmoyer>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: jmoyer
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-31 20:12:18 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:

Description Jeffrey M. Birnbaum 2011-01-27 17:13:09 UTC
Description of problem:
When io_getevents is called from a shared library it returns immediately regardless of whether a timeout is specified. The same exact code when compiled into a regular program works as expected.

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

libaio-0.3.109-2.fc13.x86_64
libaio-devel-0.3.109-2.fc13.x86_64

How reproducible:
100%

Steps to Reproduce:
1. see README file inside attachment for instructions to reproduce
2.
3.
  
Actual results:
program is intended to wait 10 seconds inside io_getevents before returning, but instead returns immediately.

Expected results:
program should wait 10 seconds inside io_getevents call

Additional info:
See attached tar ball with code and instructions to demonstrate the bug