memory exhausted when comparing large identical inputs

Bug #1032117 reported by Kasper Dupont
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diffutils (Ubuntu)
New
Undecided
Unassigned

Bug Description

When comparing two inputs that are identical or almost identical, the memory usage of diff should be small. However comparing two completely identical inputs can trigger a memory exhausted error.

Actual result:
$ diff -u <(seq 1234567890) <(seq 1234567890) ; echo $?
diff: memory exhausted
2
$

Expected result:
$ diff -u <(seq 1234567890) <(seq 1234567890) ; echo $?
0
$

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: diffutils 1:3.2-1ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16
Uname: Linux 3.2.0-24-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu8
Architecture: i386
Date: Thu Aug 2 11:30:37 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
ProcEnviron:
 LANGUAGE=en_US:en
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: diffutils
UpgradeStatus: Upgraded to precise on 2012-05-08 (85 days ago)

Revision history for this message
Kasper Dupont (ubuntu-launchpad-feb) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.