Subject: bug#21827: Large file support

From: Michael Brunnbauer <[email-masked]>
Date: Fri, 6 Nov 2015 08:34:36 +0100

Hello Paul,

On Thu, Nov 05, 2015 at 11:14:16PM -0800, Paul Eggert wrote:
> Michael Brunnbauer wrote:
> >I upgraded to glibc-2.22 on Oct 6 and had no problems with other tools and
> >big files so far (at least tar, gzip and cp do not seem to be affected).
> 
> That's odd, since I know recent versions of tar use openat and so should
> have problems with files greater than 2 GiB.  cp also uses openat for
> directories, though most likely none of your directories are that large.
> Perhaps you can investigate why tar works for you despite the glibc bug, if
> you're at all curious about this sort of thing.  Maybe your tar is compiled
> with -m64?  That would explain things.

My tar is quite old:

fiano:~$ tar --version
tar (GNU tar) 1.23

> At any rate, though, the problem is clearly in glibc, not in grep.

After installing this patch

 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=561a9f11a974a447acb3dd03550a05df701a900e

only libc-2.22.so and libc.a were changed. Replacing them at runtime was no
problem :-)

grep works now. Thanks for the help!

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