[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#307322: marked as done (locales: locale-gen segfaults on upgrade)



Your message dated Mon, 2 May 2005 21:32:06 -0700
with message-id <20050503043201.GF10227@mauritius.dodds.net>
and subject line Bug#307322: locales: locale-gen segfaults on upgrade
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)

--------------------------------------
Received: (at submit) by bugs.debian.org; 2 May 2005 13:50:11 +0000
>From joe@nahmias.net Mon May 02 06:50:10 2005
Return-path: <joe@nahmias.net>
Received: from 40.168.71.64.in-arpa.com (dot.nahmias.net) [64.71.168.40] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DSbJK-00034U-00; Mon, 02 May 2005 06:50:10 -0700
Received: by dot.nahmias.net (Postfix, from userid 1000)
	id 295391FD75; Mon,  2 May 2005 13:50:08 +0000 (UTC)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Joseph Nahmias <joe@nahmias.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: locales: locale-gen segfaults on upgrade
X-Mailer: reportbug 3.8
Date: Mon, 02 May 2005 13:50:08 +0000
Message-Id: <[🔎] 20050502135008.295391FD75@dot.nahmias.net>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: locales
Version: 2.3.2.ds1-21
Severity: serious

When upgrading my testing installation, locale-gen segfaulted which
breaks the locale configuration of the system.  Here is the output I have:

Setting up locales (2.3.2.ds1-21) ...
Generating locales...
  en_US.UTF-8.../usr/sbin/locale-gen: line 41: 17480 Segmentation fault      localedef -i $input -c -f $charset -A /etc/locale.alias $locale
dpkg: error processing locales (--configure):
 subprocess post-installation script returned error exit status 139

Errors were encountered while processing:
 locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_COLLATE = "C",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_COLLATE = "C",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_COLLATE = "C",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_COLLATE = "C",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
E: Sub-process /usr/bin/dpkg returned an error code (1)


I tried to rerun the process, but it didn't work:

joe@dot:~$ sudo dpkg --configure locales
Setting up locales (2.3.2.ds1-21) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_COLLATE = "C",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or
directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales...
  en_US.UTF-8.../usr/sbin/locale-gen: line 41: 17665 Segmentation fault      localedef -i $input -c -f $charset -A /etc/locale.alias $locale
dpkg: error processing locales (--configure):
 subprocess post-installation script returned error exit status 139
Errors were encountered while processing:
 locales



-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2um
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ANSI_X3.4-1968)

Versions of packages locales depends on:
ii  debconf                     1.4.30.13    Debian configuration management sy
ii  libc6 [glibc-2.3.2.ds1-21]  2.3.2.ds1-21 GNU C Library: Shared libraries an

-- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
* locales/default_environment_locale: en_US.UTF-8
* locales/locales_to_be_generated: en_US.UTF-8 UTF-8, he_IL.UTF-8 UTF-8

---------------------------------------
Received: (at 307322-done) by bugs.debian.org; 3 May 2005 04:32:07 +0000
>From vorlon@debian.org Mon May 02 21:32:07 2005
Return-path: <vorlon@debian.org>
Received: from dsl093-039-086.pdx1.dsl.speakeasy.net (localhost.localdomain) [66.93.39.86] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DSp4p-00031G-00; Mon, 02 May 2005 21:32:07 -0700
Received: by localhost.localdomain (Postfix, from userid 1000)
	id DAA19172843; Mon,  2 May 2005 21:32:06 -0700 (PDT)
Date: Mon, 2 May 2005 21:32:06 -0700
From: Steve Langasek <vorlon@debian.org>
To: Joseph Nahmias <joe@nahmias.net>
Cc: 307322-done@bugs.debian.org
Subject: Re: Bug#307322: locales: locale-gen segfaults on upgrade
Message-ID: <20050503043201.GF10227@mauritius.dodds.net>
References: <[🔎] 20050502135008.295391FD75@dot.nahmias.net> <[🔎] 20050503034505.GE10227@mauritius.dodds.net> <[🔎] 20050503041440.GA25372@nahmias.net>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="lIrNkN/7tmsD/ALM"
Content-Disposition: inline
In-Reply-To: <[🔎] 20050503041440.GA25372@nahmias.net>
User-Agent: Mutt/1.5.6+20040907i
Delivered-To: 307322-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 


--lIrNkN/7tmsD/ALM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, May 03, 2005 at 04:14:40AM +0000, Joseph Nahmias wrote:
> On Mon, May 02, 2005 at 08:45:11PM -0700, Steve Langasek wrote:
> > Hi Joe,
> >=20
> > On Mon, May 02, 2005 at 01:50:08PM +0000, Joseph Nahmias wrote:
> > > When upgrading my testing installation, locale-gen segfaulted which
> > > breaks the locale configuration of the system.  Here is the output I =
have:
> >=20
> > > Setting up locales (2.3.2.ds1-21) ...
> > > Generating locales...
> > >   en_US.UTF-8.../usr/sbin/locale-gen: line 41: 17480 Segmentation fau=
lt      localedef -i $input -c -f $charset -A /etc/locale.alias $locale
> > > dpkg: error processing locales (--configure):
> > >  subprocess post-installation script returned error exit status 139
> >=20
> > This error doesn't seem to be widely reproducible.  Can you provide a
> > backtrace from the command=20
> >=20
> >   localedef -i en_US -c -f UTF-8 -A /etc/locale.alias en_US.UTF-8
> >=20
> > on this system?

> Certainly, here you go:

> root@dot:~# gdb --args localedef -i en_US -c -f UTF-8 -A /etc/locale.alia=
s en_US.UTF-8
> GNU gdb 6.3-debian
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you =
are
> welcome to change it and/or distribute copies of it under certain conditi=
ons.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for detail=
s.
> This GDB was configured as "i386-linux"...(no debugging symbols found)
> Using host libthread_db library "/lib/libthread_db.so.1".

> (gdb) run
> Starting program: /usr/bin/localedef -i en_US -c -f UTF-8 -A /etc/locale.=
alias en_US.UTF-8
> (no debugging symbols found)
> (no debugging symbols found)

> Program received signal SIGSEGV, Segmentation fault.
> 0x4009356b in memset () from /lib/libc.so.6
> (gdb) bt
> #0  0x4009356b in memset () from /lib/libc.so.6
> #1  0x4008f790 in mcheck_check_all () from /lib/libc.so.6
> #2  0x4008d75c in calloc () from /lib/libc.so.6
> #3  0x08087b8b in ?? ()
> #4  0x00083afe in ?? ()
> #5  0x00000014 in ?? ()
> #6  0x40815020 in ?? ()
> #7  0xbffff804 in ?? ()
> #8  0x08087766 in ?? ()
> #9  0x00083afe in ?? ()
> #10 0x00000014 in ?? ()
> #11 0xffffff93 in ?? ()
> #12 0x40049571 in __strtoul_internal () from /lib/libc.so.6
> Previous frame inner to this frame (corrupt stack?)
> (gdb)=20

> Hmm, seems to be a memory issue.  This is just a hosted LVS with a
> paltry amount of memory (64 MB), let's try adding some more swap...

> root@dot:/usr/local# dd if=3D/dev/zero of=3Dswapfile bs=3D1024 count=3D64k
> 65536+0 records in
> 65536+0 records out
> 67108864 bytes transferred in 13.894189 seconds (4829995 bytes/sec)
> root@dot:/usr/local# mkswap swapfile
> Setting up swapspace version 1, size =3D 67104 kB
> root@dot:/usr/local# swapon swapfile
> root@dot:/usr/local# free
>              total       used       free     shared    buffers     cached
> Mem:         60500      56040       4460          0       2712      15844
> -/+ buffers/cache:      37484      23016
> Swap:       131056      53692      77364

> Survey says...

> root@dot:~# dpkg --configure -a
> Setting up locales (2.3.2.ds1-21) ...
> Generating locales...
>   en_US.UTF-8... done
>   he_IL.UTF-8... done
> Generation complete.

> That did the trick!  Thanks for the pointer and my apologies for the
> nuisance, I should've figured this out on my own...

Ok, so not really a locales bug at all.  Closing.

Thanks,
--=20
Steve Langasek
postmodern programmer

--lIrNkN/7tmsD/ALM
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCdv7BKN6ufymYLloRAh6fAJwIRwQzDzAF8MePKVouk3fa6xBonwCfbGt/
4K/D/F69bwnuCwNrcxLZGI8=
=o/KX
-----END PGP SIGNATURE-----

--lIrNkN/7tmsD/ALM--



Reply to: