GNU bug report logs - #29032
grep 3.x: 2.4MB big file causes 'Value too large for defined data type'

Previous Next

Package: grep;

Reported by: uwe.sauter.de <at> gmail.com

Date: Fri, 27 Oct 2017 21:35:02 UTC

Severity: normal

Tags: notabug

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 29032 in the body.
You can then email your comments to 29032 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-grep <at> gnu.org:
bug#29032; Package grep. (Fri, 27 Oct 2017 21:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to uwe.sauter.de <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Fri, 27 Oct 2017 21:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Uwe Sauter <uwe.sauter.de <at> gmail.com>
To: bug-grep <at> gnu.org
Subject: grep 3.x: 2.4MB big file causes 'Value too large for defined data
 type'
Date: Fri, 27 Oct 2017 23:32:38 +0200
[Message part 1 (text/plain, inline)]
Hi,

I have several small files where grep'ing for a static string results in 'Value too large for defined data type'.

E.g.

$ grep 123456 2fort.bsp
grep: 2fort.bsp: Value too large for defined data type

But grep'ing for a shorter search string succeeds:

$ grep 123 2fort.bsp
grep: 2fort.bsp matches

2fort.bsp has size 2488684 bytes.

This happens on an up-to date Gentoo with kernel 4.12.12 and glibc 2.23. Installed grep is version 3.0.

Linux kiste 4.12.12-gentoo #1 SMP Tue Sep 19 20:07:27 CEST 2017 x86_64 Intel(R) Xeon(R) CPU E3-1245 v3 @ 3.40GHz
GenuineIntel GNU/Linux



For debugging I downloaded both 3.0 and 3.1 and compiled with

$ CFLAGS="${CFLAGS} -ggdb" CPPFLAGS="${CPPFLAGS} -ggdb" ./configure --enable-gcc-warnings
$ make

Both versions show the same failure.

I'd like to help debugging but don't know where I should start looking in the source code. Any hint is appreciated.

I also prepared a strace output for grep 3.1 (attached).


Regards,

	Uwe
[grep_3.1.strace (text/plain, attachment)]

Information forwarded to bug-grep <at> gnu.org:
bug#29032; Package grep. (Sat, 28 Oct 2017 18:43:02 GMT) Full text and rfc822 format available.

Message #8 received at 29032 <at> debbugs.gnu.org (full text, mbox):

From: Uwe Sauter <uwe.sauter.de <at> gmail.com>
To: 29032 <at> debbugs.gnu.org
Subject: Re: grep 3.x: 2.4MB big file causes 'Value too large for defined data
 type'
Date: Sat, 28 Oct 2017 20:42:33 +0200
Hi again,

as I was able to reproduce this with other utilities as well I conclude that this is not a bug in grep but in perhaps in
glibc or more probably in ntfs-3g. The files I was reading are from a disk image created with ddrescue and contain a
NTFS partition.


Sorry for the noise,

    Uwe




Added tag(s) notabug. Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Tue, 31 Dec 2019 19:52:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 29032 <at> debbugs.gnu.org and uwe.sauter.de <at> gmail.com Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Tue, 31 Dec 2019 19:52:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 29 Jan 2020 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 87 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.