This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/6050] New: iconv(1) buffers all of stdin in memory
- From: "skunk at iskunk dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 8 Apr 2008 18:47:12 -0000
- Subject: [Bug libc/6050] New: iconv(1) buffers all of stdin in memory
- Reply-to: sourceware-bugzilla at sourceware dot org
When reading from stdin, glibc's iconv(1) frontend buffers the entire input in
memory, which makes the program unsuitable for very large inputs.
(This problem does not arise when reading a file directly, presumably because
the input is mmap()ed in that case.)
$ iconv -f utf8 -t ucs2 <lots-o-gigabytes-utf8.txt >/dev/null
Killed
Confirmed with 2.6.1.
--
Summary: iconv(1) buffers all of stdin in memory
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: skunk at iskunk dot org
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=6050
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.