Bug 138345

Summary: problem with LARGFILE in ia32el
Product: Red Hat Enterprise Linux 4 Reporter: Yoav Zach <yoav.zach>
Component: ia32elAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: grgustaf, jturner
Target Milestone: ---   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-11 18:05:41 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
testcase to demonstrate the problem of mappinga LARGFILE
none
fixes the problem with mmap'ing large files none

Description Yoav Zach 2004-11-08 14:12:52 UTC
Description of problem:
The file-offset field of the mmap() system call is being truncated to 
32-bits, even in programs that are compiled with all the LARGEFILE 
support.


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


How reproducible:
consistently

Steps to Reproduce:
build the attached testcase on IA-32 machine and run it on IPF 
machine with ia32el enabled.  

Actual results:
the actual output is "Start-of-file".

Expected results:
the expected output should be "Four-GBytes!!".

Additional info:

Comment 1 Yoav Zach 2004-11-08 14:13:32 UTC
Created attachment 106278 [details]
testcase to demonstrate the problem of mappinga LARGFILE

Comment 2 Yoav Zach 2004-11-08 14:15:26 UTC
Created attachment 106279 [details]
fixes the problem with mmap'ing large files

Comment 3 Yoav Zach 2004-11-08 14:17:02 UTC
same problem with ia32el that goes with EL3 U4

Comment 4 Jakub Jelinek 2004-11-08 15:36:59 UTC
Should be fixed in ia32el-1.1-9 (RHEL4) and ia32el-1.1-8.EL3 (RHEL3 U4).

Comment 5 Jay Turner 2004-11-09 12:21:14 UTC
Fix confirmed on RHEL4 with ia32el-1.1-9.