Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 43000

Summary: Tiobench cannot deal with files over 2 GB
Product: Gentoo Linux Reporter: Tom Dickson <gentoo>
Component: Current packagesAssignee: Mr. Bones. (RETIRED) <mr_bones_>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tom Dickson 2004-02-26 10:13:56 UTC
If I tell tiotest to use a file over 2 GB, it fails when trying to seek. See below.

tiotest -f 3000 -t 1
Error writing to file: Success
Error in seek, offset = -2045177856, seeks = 0:: Invalid argument
Error read from file: Success
Error in seek, offset = -1401204736, seeks = 1:: Invalid argument
Tiotest results for 1 concurrent io threads:


Reproducible: Always
Steps to Reproduce:
1.emerge tiobench
2.tiotest -f 3000 -t 1

Actual Results:  
There was a reported error from seek.

Expected Results:  
It should be able to deal with files that are longer than 2 GB, just like many
other software packages.

Note that many other packages work for me, such as tar, cpio, dd, lmdd, etc.

In BUGS.gz in the doc directory, it says that this is broken on Sun. Maybe it is
broken on Linux, too?

tdickson home # emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.2)
=================================================================
System uname: 2.6.2 i686 Intel(R) Celeron(R) CPU 2.50GHz
Gentoo Base System version 1.4.3.8p1
Autoconf: sys-devel/autoconf-2.58
Automake: sys-devel/automake-1.7.5-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.binarycompass.org ftp://gentoo.ccccom.com
http://128.213.5.34/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb cdr crypt cups encode esd foomaticdb gdbm gif gnome
gpm gtk gtk2 imlib java jpeg ldap libg++ libwww mad mikmod motif mozilla mpeg
mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python
quicktime readline sdl slang spell ssl svga tcltk tcpd tetex truetype unicode
x86 xml2 xmms xv zlib"
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-03-03 16:25:21 UTC
Nah, it doesn't appear to be broken here, it's just that I didn't turn on
support for it in the Makefile.

Fixed in CVS.