Subject: Large file support
From: Michael Brunnbauer <[email-masked]>
To: [email-masked]
Date: Wed, 4 Nov 2015 14:07:44 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

hi all,

I am quite surprised that my grep (suddenly?) has problems with large files:

 fiano:~$ ls -l todelete.txt 
 -rw-r--r-- 1 brunni users 2981338204 Nov  4 13:40 todelete.txt
 fiano:~$ grep test todelete.txt
 grep: todelete.txt: Value too large for defined data type

I work with files > 2GB regularly and used to have these problems years ago.
Upgrading from grep-2.14 to grep-2.22 did not help. The configure output
containing "large" is:

 checking for special C compiler options needed for large files... no
 checking for _FILE_OFFSET_BITS value needed for large files... 64

I tried compiling without PCRE but this did not help either. My basic setup
is glibc-2.22, gcc 4.7.4 and Linux 3.4.109.

Any ideas what could be going wrong?

Regards,

Michael Brunnbauer

-- 
++  Michael Brunnbauer
++  netEstate GmbH
++  Geisenhausener Straße 11a
++  81379 München
++  Tel +49 89 32 19 77 80
++  Fax +49 89 32 19 77 89 
++  E-Mail [email-masked]
++  http://www.netestate.de/
++
++  Sitz: München, HRB Nr.142452 (Handelsregister B München)
++  USt-IdNr. DE221033342
++  Geschäftsführer: Michael Brunnbauer, Franz Brunnbauer
++  Prokurist: Dipl. Kfm. (Univ.) Markus Hendel