You are not logged in.

#1 2006-07-27 16:27:18

bigbob73
Member
From: Fort Worth, Texas
Registered: 2006-07-19
Posts: 89

locale-gen error (solved) sort of

I am getting the following error using locale-gen...

[root@mauller obmenu-1.0]# locale-gen
Generating locales...
  en_US.UTF-8.../usr/sbin/locale-gen: line 41:  2780 Segmentation fault      localedef -i $input -c -f $charset -A /usr/share/locale/locale.alias $locale

the only ones i un-commented in /etc/locale.gen are the en-us ones.  any thoughts on this one?

Offline

#2 2006-07-28 15:21:52

bigbob73
Member
From: Fort Worth, Texas
Registered: 2006-07-19
Posts: 89

Re: locale-gen error (solved) sort of

just some more info here, locale -a gives me

[root@mauller bob]# locale -a
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_COLLATE to default locale: No such file or directory
C
POSIX

Offline

#3 2006-07-28 20:53:45

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: locale-gen error (solved) sort of

try reinstalling glibc.

Offline

#4 2006-07-28 23:10:51

bigbob73
Member
From: Fort Worth, Texas
Registered: 2006-07-19
Posts: 89

Re: locale-gen error (solved) sort of

Penguin wrote:

try reinstalling glibc.

Thanks! it was a new install from another distro, so i did it this time from the cd.  this time everything worked, so i'm rockin again.  wink

Offline

#5 2006-07-28 23:15:34

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: locale-gen error (solved) sort of

Make sure you update your entire system then with pacman -Syu

Offline

#6 2006-07-28 23:37:05

bigbob73
Member
From: Fort Worth, Texas
Registered: 2006-07-19
Posts: 89

Re: locale-gen error (solved) sort of

Penguin wrote:

Make sure you update your entire system then with pacman -Syu

I'll do it now, thanks.  wink

Offline

#7 2006-08-02 10:16:49

funkyou
Member
From: Berlin, DE
Registered: 2006-03-19
Posts: 848
Website

Re: locale-gen error (solved) sort of

Hey, i have the same problem.
When i enter "locale-gen" i get the following error message:

sudo locale-gen
Generating locales...
  de_DE.UTF-8.../usr/sbin/locale-gen: line 41: 16536 Segmentation fault      localedef -i $input -c -f $charset -A /usr/share/locale/locale.alias $locale

reinstalling glibc and/or updating with "pacman -Suy" did not solve
my problem...

So, what can i do now?


want a modular and tweaked KDE for arch? try kdemod

Offline

#8 2006-08-02 11:17:41

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: locale-gen error (solved) sort of

What does ldd /usr/bin/localedef show?

Offline

#9 2006-08-02 11:55:32

funkyou
Member
From: Berlin, DE
Registered: 2006-03-19
Posts: 848
Website

Re: locale-gen error (solved) sort of

Thx for your answer. It works now, although i do not know why...
I just did a reboot...

Anyway, here is the output:

ldd /usr/bin/localedef
linux-gate.so.1 =>  (0xffffe000)
libc.so.6 => /lib/libc.so.6 (0xb7df9000)
/lib/ld-linux.so.2 (0xb7f32000)

want a modular and tweaked KDE for arch? try kdemod

Offline

#10 2006-08-02 14:00:00

bigbob73
Member
From: Fort Worth, Texas
Registered: 2006-07-19
Posts: 89

Re: locale-gen error (solved) sort of

funkyou wrote:

Hey, i have the same problem.
When i enter "locale-gen" i get the following error message:

sudo locale-gen
Generating locales...
  de_DE.UTF-8.../usr/sbin/locale-gen: line 41: 16536 Segmentation fault      localedef -i $input -c -f $charset -A /usr/share/locale/locale.alias $locale

reinstalling glibc and/or updating with "pacman -Suy" did not solve
my problem...

So, what can i do now?

what kernel are you using?

Offline

#11 2006-11-20 10:28:43

onearm
Member
From: Anywhere but here
Registered: 2006-07-06
Posts: 359
Website

Re: locale-gen error (solved) sort of

Sorry for responding to an old thread, but I have exactly the same problem of funkyou after having updated glibc to 2.5.2

locale-gen
Generating locales...
  it_IT.UTF-8.../usr/sbin/locale-gen: line 41:  7650 Segmentation fault      localedef -i $input -c -f $charset -A /usr/share/locale/locale.alias $locale
ldd /usr/bin/localedef
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/libc.so.6 (0x0064e000)
        /lib/ld-linux.so.2 (0x002d9000)
localedef -i it_IT -c -f UTF-8 -A /usr/share/locale/locale.alias it_IT.UTF-8
Segmentation fault

Not sure if the above command is correct.

locale -a
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_COLLATE to default locale: No such file or directory
C
POSIX

I've this in locale.gen (but even commenting or uncommenting other locales, it segfaults anyway)

cat /etc/locale.gen | grep '^[^#]'
it_IT.UTF-8     UTF-8
it_IT   ISO-8859-1
it_IT@euro      ISO-8859-15

I've already tried reinstalling glibc and rebooted a couple of times without any luck. Any idea? sad


To get something done, a committee should consist of no more than three persons, two of them absent.
--
My Github

Offline

#12 2006-11-20 10:46:15

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: locale-gen error (solved) sort of

I have already had the same problem in the past.
The solution for me was:
- boot on a livecd
- mount archlinux partition
- chroot  /mnt/archpartition
- pacman -Rd glibc
- pacman.static -S glibc

Offline

#13 2006-11-20 14:22:18

onearm
Member
From: Anywhere but here
Registered: 2006-07-06
Posts: 359
Website

Re: locale-gen error (solved) sort of

It didn't work. locale-gen still segfaults.
Any other suggestions (apart reverting to an older glibc)?


To get something done, a committee should consist of no more than three persons, two of them absent.
--
My Github

Offline

#14 2006-11-20 16:13:26

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: locale-gen error (solved) sort of

I have the exact same problem as of glibc 2.5-2...

Offline

#15 2006-11-21 14:35:59

shamrok
Member
From: Poland, Kraków
Registered: 2006-02-20
Posts: 61

Re: locale-gen error (solved) sort of

Same problem here.

Offline

#16 2006-11-21 19:30:02

funkyou
Member
From: Berlin, DE
Registered: 2006-03-19
Posts: 848
Website

Re: locale-gen error (solved) sort of

Same problem again...

I'll try the fixes mentioned here...

-edit- tried all mentioned fixes but the problem persists...

$ locale-gen
Generating locales...
  de_DE.UTF-8.../usr/sbin/locale-gen: line 41:  5726 Segmentation fault      localedef -i $input -c -f $charset -A /usr/share/locale/locale.alias $locale
$ ldd /usr/bin/localedef
        linux-gate.so.1 =>  (0xb7fef000)
        libc.so.6 => /lib/libc.so.6 (0x00acc000)
        /lib/ld-linux.so.2 (0x00f6d000)
/etc/locale.gen:
de_DE.UTF-8     UTF-8

want a modular and tweaked KDE for arch? try kdemod

Offline

#17 2006-11-21 21:38:53

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: locale-gen error (solved) sort of

my problem was fixed after a reboot... weird this  :?

Offline

#18 2006-11-21 21:58:07

funkyou
Member
From: Berlin, DE
Registered: 2006-03-19
Posts: 848
Website

Re: locale-gen error (solved) sort of

i have now tried *everything* mentioned here and on various other sources and i also installed the older glibc-2.4 package, but i am getting only segfaults...

now i have found a very weird "solution" for this... i backed up my /usr/bin/localedef and got the "localedef" binary from an ubuntu system, and with this binary in /usr/bin my locales finally work...

well, should i file a bug report about this??? my system is pretty standard with no modifications except the emission kernel and a modified kde/qt installation...


want a modular and tweaked KDE for arch? try kdemod

Offline

#19 2006-11-22 00:11:23

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: locale-gen error (solved) sort of

What kernel are you using?

Offline

#20 2006-11-22 00:21:58

funkyou
Member
From: Berlin, DE
Registered: 2006-03-19
Posts: 848
Website

Re: locale-gen error (solved) sort of

$ uname -a
Linux agentj 2.6.18-emission #1 PREEMPT Tue Nov 21 22:11:23 CET 2006 i686 AMD Athlon(tm) XP AuthenticAMD GNU/Linux

i even rebuilt the kernel to check out if thats causing anything, but no luck...


want a modular and tweaked KDE for arch? try kdemod

Offline

#21 2006-11-22 08:30:50

onearm
Member
From: Anywhere but here
Registered: 2006-07-06
Posts: 359
Website

Re: locale-gen error (solved) sort of

funkyou wrote:
$ uname -a
Linux agentj 2.6.18-emission #1 PREEMPT Tue Nov 21 22:11:23 CET 2006 i686 AMD Athlon(tm) XP AuthenticAMD GNU/Linux

I have the same kernel and can confirm that even with the vanilla one locale-gen segfaults


To get something done, a committee should consist of no more than three persons, two of them absent.
--
My Github

Offline

#22 2006-11-22 08:36:08

shamrok
Member
From: Poland, Kraków
Registered: 2006-02-20
Posts: 61

Re: locale-gen error (solved) sort of

I also have emission1.

Offline

#23 2006-11-22 13:48:52

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: locale-gen error (solved) sort of

interesting. I had emission a while ago (during and immediately after the upgrade of glibc), but switched to a modified ck-kernel shortly after upgrading. Perhaps that's what fixed the problem for me :?

Offline

#24 2006-11-24 09:00:48

onearm
Member
From: Anywhere but here
Registered: 2006-07-06
Posts: 359
Website

Re: locale-gen error (solved) sort of

How strange, I got it working by running locale-gen with a recompiled 2.6.17-beyond. Could it be that there is a bug in latest glibc with 2.6.18* kernels?


To get something done, a committee should consist of no more than three persons, two of them absent.
--
My Github

Offline

#25 2006-11-24 16:55:56

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: locale-gen error (solved) sort of

I googled around for a while and all I could find where bugreports about grsecurity/PaX-related things. When working with nonexecutable pages in the grsecurity case, GCC trampoline emulation has to be enabled because otherwise localedef will segfault.

I think it's just a combination of things: we optimize our glibc using -march=i686 -O2 -pipe, my guess is that we should just keep the -march=i686 and leave the -O parameter out. This might be a problem with over-optimization, which can happen with a complex thing like glibc.

Offline

Board footer

Powered by FluxBB