From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22995 invoked by alias); 21 Feb 2012 14:51:31 -0000 Received: (qmail 19804 invoked by uid 22791); 21 Feb 2012 14:44:39 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_GF,TW_JF X-Spam-Check-By: sourceware.org From: "junkmailnotread at yahoo dot com" To: libc-locales@sources.redhat.com Subject: [Bug localedata/5033] locarchive does not provide fallback for mmap() Date: Tue, 21 Feb 2012 14:51:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: localedata X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: junkmailnotread at yahoo dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: libc-locales at sources dot redhat.com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact libc-locales-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-locales-owner@sourceware.org X-SW-Source: 2012-q1/txt/msg00024.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=5033 junkmailnotread at yahoo dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |junkmailnotread at yahoo | |dot com --- Comment #1 from junkmailnotread at yahoo dot com 2012-02-21 14:42:33 UTC --- This is a serious bug and still present in glibc-2.13. Why no progress? To clarify, localedef *fails* if /usr/lib/locale/locale-archive is located on a file system - such as JFFS2 - which does not support the mmap(2) MAP_SHARED flag. As far as I can tell, any Linux kernel file system whose mmap handler is: generic_file_readonly_mmap() does not support MAP_SHARED. Currently, as of linux-3.3, these include: 9p afs jffs2 logfs The bug is easy to demonstrate. Here, the root file system is a JFFS2 file system, and /var/tmp is a tmpfs file system: # ls -l /usr/lib/locale total 0 # df /usr/lib/locale Filesystem 1K-blocks Used Available Use% Mounted on /dev/root 78592 27816 50776 36% / # localedef -f ISO-8859-1 -i en_GB en_GB.ISO-8859-1 cannot map archive header: Invalid argument # rmdir /usr/lib/locale # ln -s /var/tmp /usr/lib/locale # df /usr/lib/locale Filesystem 1K-blocks Used Available Use% Mounted on none 30664 24 30640 1% /var # localedef -f ISO-8859-1 -i en_GB en_GB.ISO-8859-1 # localedef --list en_GB.iso88591 # I've just spent a day tracking this bug down, only to discover it was reported over 4 years ago. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.