You are not logged in.
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
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
try reinstalling glibc.
Offline
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.
Offline
Make sure you update your entire system then with pacman -Syu
Offline
Make sure you update your entire system then with pacman -Syu
I'll do it now, thanks.
Offline
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
What does ldd /usr/bin/localedef show?
Offline
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
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
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?
To get something done, a committee should consist of no more than three persons, two of them absent.
--
My Github
Offline
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
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
I have the exact same problem as of glibc 2.5-2...
Offline
Same problem here.
Offline
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
my problem was fixed after a reboot... weird this :?
Offline
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
What kernel are you using?
Offline
$ 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
$ 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
I also have emission1.
Offline
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
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
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