Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382075 (PR52408) - sys-devel/gcc: 64-bit linux-3 - on an fs using ext4 driver - writing to a file returns EFBIG ("File too large")
Summary: sys-devel/gcc: 64-bit linux-3 - on an fs using ext4 driver - writing to a fil...
Status: RESOLVED FIXED
Alias: PR52408
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: HPPA Linux
: Normal critical (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-06 19:05 UTC by Jeroen Roovers (RETIRED)
Modified: 2012-05-10 04:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2011-09-06 19:05:03 UTC
It seems like open(.., O_RDWR|O_WRONLY) returns EOVERFLOW for a not yet known minimum file size in 64-bit kernels >3.0.

I haven't figured out what file minimum size this starts happening at yet, but a few kilobytes works fine and a few megabytes is "too much".
Comment 1 Guy Martin (RETIRED) gentoo-dev 2011-09-07 08:25:27 UTC
Where have you seen such code ?

From fcntl.h, it seems O_RDWR|O_WRONLY equals to O_ACCMODE which is a mask to find the access mode. This flag set doesn´t seem valid and open should probably return -EINVAL instead.

For reference, O_RDWR = 2 and O_WRONLY = 1.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-09-07 15:37:21 UTC
Apparently those bits were confusing.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-05 13:03:34 UTC
GCC has been patched upstream.
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2012-03-06 03:41:57 UTC
What versions are affected?
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-06 17:30:24 UTC
The bug has been fixed in 4.4 and up. 4.5 is HPPA stable.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-09 14:15:14 UTC
So can we get that patch into 4.5 and 4.6, please?
Comment 7 SpanKY gentoo-dev 2012-05-10 03:17:57 UTC
looks like it's been released in gcc-4.4.7 already

i've added this to 4.5.3 and 4.6.3 though (no revbump)
Comment 9 SpanKY gentoo-dev 2012-05-10 03:24:03 UTC
should be all set now in the tree; thanks for the report!

Commit message: Push out hppa 64bit fix
http://sources.gentoo.org/sys-devel/gcc/gcc-4.5.3-r2.ebuild?r1=1.12&r2=1.13
http://sources.gentoo.org/sys-devel/gcc/gcc-4.6.3.ebuild?r1=1.1&r2=1.2
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-10 04:18:31 UTC
(In reply to comment #9)
> should be all set now in the tree; thanks for the report!

Well, apart from sys-devel/kgcc64, where it matters, but I've taken care of that now.

# ChangeLog for sys-devel/kgcc64
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/sys-devel/kgcc64/ChangeLog,v 1.41 2012/05/10 04:17:44 jer Exp $

  10 May 2012; Jeroen Roovers <jer@gentoo.org> kgcc64-4.5.3.ebuild:
  Bump patchset for bug #382075.