Your message dated Tue, 24 Apr 2007 12:16:44 +0200 with message-id <20070424101644.GA23581@artemis> and subject line Bug#281313: closed by Pierre HABOUZIT <madcoder@debian.org> (Re: Bug#281313: coreutils: Output of sort fails sort -c check if LANG is set and memory is low) has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: coreutils: Output of sort fails sort -c check if LANG is set and memory is low
- From: James Youngman <jay@gnu.org>
- Date: Mon, 15 Nov 2004 02:34:27 +0000
- Message-id: <20041115023427.B10D314194@orbital.spiral-arm.org>
Package: coreutils Version: 5.2.1-2 Severity: normal If $LANG is set and VM is low (in this case artificially), "sort" produces output that will fail the check made by "sort -c". If available VM is increased or LANG is unset, the problem does not occur. Looking at the strace output for successful invocations (where VM was plentiful) and the failure case, I notice that the issue relates to a failing mmap() call:- open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=1814064, ...}) = 0 mmap2(NULL, 1814064, PROT_READ, MAP_PRIVATE, 3, 0) = -1 ENOMEM (Cannot allocate memory) Locale information is as per below. I have also reported this at https://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=11004, but since this might actually be a glibc issue, I have reported it here also. -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.8-1-k7-smp Locale: LANG=en_GB.ISO-8859-15, LC_CTYPE=en_GB.ISO-8859-15 (charmap=ISO-8859-15) Versions of packages coreutils depends on: ii libacl1 2.2.26-1 Access control list shared library ii libc6 2.3.2.ds1-18 GNU C Library: Shared libraries an -- no debconf information
--- End Message ---
--- Begin Message ---
- To: James Youngman <jay@gnu.org>, 281313-done@bugs.debian.org
- Subject: Re: Bug#281313: closed by Pierre HABOUZIT <madcoder@debian.org> (Re: Bug#281313: coreutils: Output of sort fails sort -c check if LANG is set and memory is low)
- From: Pierre HABOUZIT <madcoder@debian.org>
- Date: Tue, 24 Apr 2007 12:16:44 +0200
- Message-id: <20070424101644.GA23581@artemis>
- In-reply-to: <[🔎] c5df85930704170211q94abbc2o32c5cff733b64588@mail.gmail.com>
- References: <20070416230818.GA27302@artemis> <20041115023427.B10D314194@orbital.spiral-arm.org> <handler.281313.D281313.117676489919241.notifdone@bugs.debian.org> <[🔎] c5df85930704170029p22884fa7ua6d8c60f5fcc6742@mail.gmail.com> <[🔎] 20070417090002.GB29165@artemis> <[🔎] c5df85930704170211q94abbc2o32c5cff733b64588@mail.gmail.com>
Version: 2.5 On Tue, Apr 17, 2007 at 10:11:54AM +0100, James Youngman wrote: > On 4/17/07, Pierre Habouzit <madcoder@debian.org> wrote: > > ooh, that wasn't obvious at all in your report. Agreed, reopened, and > >bug retitled to be more obvious. I'll try to work on a fix. > > Apologies for my earlier poor communication. Thanks for taking the > time to look at the problem. FYI though, I haven't retested this in > ages. Allright, I tested it on a 2.5, removing /usr/lib/locale/locale-archive (which has roughly the same effect than a failed mmap) and now setlocale returns NULL properly (hence failing loudly like it should always have). Closing the bug. -- ·O· Pierre Habouzit ··O madcoder@debian.org OOO http://www.madism.orgAttachment: pgpjZONxKb9AS.pgp
Description: PGP signature
--- End Message ---