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

Bug 103578

Summary: lame oggenc and flac don't work with wav files > 2 GB on xfs and ext3
Product: Gentoo Linux Reporter: Wernfried Haas (RETIRED) <amne>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Severity: normal CC: bugs+gentoo
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: output of strace oggenc bigfile.wav
A compressed 2.5 GB audio file

Description Wernfried Haas (RETIRED) gentoo-dev 2005-08-24 06:15:31 UTC
Encoding a .wav file > 2 GB fails on my (x86) boxes if the FS is xfs. According
to stoile who came up with the problem it also fails on ext3.
It works fine on a reiserfs 3.6 partition.
Comment 1 Wernfried Haas (RETIRED) gentoo-dev 2005-08-24 06:17:18 UTC
Created attachment 66744 [details]
output of strace oggenc bigfile.wav
Comment 2 Wernfried Haas (RETIRED) gentoo-dev 2005-08-24 06:19:45 UTC
Created attachment 66745 [details]
A compressed 2.5 GB audio file

A compressed .wav file for testing. The data is all zeroes, so it can be
compressed to 2k. Uncompressed it is about 2.5 GB and can be used for testing
if the problem appears or not.
Comment 3 Wernfried Haas (RETIRED) gentoo-dev 2005-08-24 06:24:48 UTC
Here's my emerge info from one of the boxes where it doesn't work. The other
boxes are pretty similar (all x86, all using x86 as keyword), no fancy ricer
flags on the other boxes as well, just some with xfs, some with reiser.

Portage (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r1, 2.6.12-gentoo-r9 i686)
System uname: 2.6.12-gentoo-r9 i686 AMD Sempron(tm) 2500+
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
FEATURES="autoconfig candy distlocks sandbox sfperms strict userpriv usersandbox"
USE="x86 3dnow X aalib alsa apm atm avi berkdb bitmap-fonts cdr crypt cups curl
dvd emacs emboss encode esd fam flac foomaticdb fortran gd gdbm ggi gif gphoto2
gpm gstreamer gtk gtk2 guile icq imagemagick imlib ipv6 irda java jpeg kde
libg++ libwww live mad mikmod mmx motif mozilla mp3 mpeg ncurses nls nptl
offensive ogg oggvorbis opengl oss pam pdflib perl phyton png python qt
quicktime qz readline real ruby samba sdl slang snmp spell sse ssl tcltk tcpd
tiff truetype truetype-fonts type1-fonts vorbis wmf xine xinetd xml xml2 xmms xv
xvid zlib userland_GNU kernel_linux elibc_glibc"
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-25 04:14:27 UTC
flac-1.1.2-r3: added support for largefiles. 
Comment 5 Wernfried Haas (RETIRED) gentoo-dev 2005-08-25 04:17:29 UTC
media-sound/sox-12.17.7-r1 is also affected:
on xfs:
# sox -V bigfile2.wav bigfile2.raw
sox: Can't open input file 'bigfile2.wav': File too large

on reiserfs:
# sox -V bigfile2.wav ~amne/scratch/bigfile.raw
sox: Detected file format type: wav

sox: WAV Chunk fmt 
sox: WAV Chunk data
sox: Reading Wave file: Microsoft PCM format, 2 channels, 44100 samp/sec
sox:         176400 byte/sec, 4 block align, 16 bits/samp, 2546357944 data bytes
sox: Input file bigfile2.wav: using sample rate 44100
        size shorts, encoding signed (2's complement), 2 channels
sox: Output file /home/amne/scratch/bigfile.raw: using sample rate 44100
        size shorts, encoding signed (2's complement), 2 channels
sox: Output file: comment "Processed by SoX"

File size limit exceeded
the resulting file has 2.0 gigs instead of 2.4.

a quick search in their mailinglist archive found those 2 mails, not sure how
helpful they are:
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-25 05:05:29 UTC
lame-3.96.1-r1 has largefile support working 
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-25 05:34:06 UTC
FWIW, toolame fixed, too 
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-25 06:08:38 UTC
sox-12.17.7-r2 has support for largefiles. 
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-25 07:05:32 UTC
vorbis-tools-1.0.1-r1 has largefile support enabled. 
Thanks for reporting. 
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2005-08-26 02:41:32 UTC
*** Bug 103810 has been marked as a duplicate of this bug. ***
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2005-08-26 02:42:33 UTC
beep-media-player broken as well, reopening.
Comment 12 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-26 03:06:18 UTC
better have different bugs