Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
After upgrade to sys-libs/glibc 2.24-r1 localedef segfaults
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Apr 14, 2017 8:42 pm    Post subject: After upgrade to sys-libs/glibc 2.24-r1 localedef segfaults Reply with quote

Hi guys,


I'm not exactly "installing" Gentoo, but rather updating

anyway:

upgrading from glibc 2.23-r3 to 2.24-r1

leads locale-gen , localedef, etc. to fail

example:

Code:
localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
Segmentation fault


Code:
localedef -i en_US -v -c -f UTF-8 en_US.UTF-8
Segmentation fault


even the verbose function doesn't provide any more functionality (as if that would work in a segfault case ... )


Code:
[  835.111644] localedef[29252]: segfault at 7f726bb24e50 ip 00007f726b643804 sp 00007f726bb24e50 error 6 in libc-2.25.so[7f726b564000+197000]
[  858.782871] localedef[30336]: segfault at 7f9b7aa87e50 ip 00007f9b7a5a6804 sp 00007f9b7aa87e50 error 6 in libc-2.25.so[7f9b7a4c7000+197000]



System is ~amd64


Meanwhile I upgraded to 2.25 since I read that 2.24 is having issues with locale-gen (on arch, etc.), switched the kernel from rt-kernel to 4.10.0 with BFS

but still no success


Code:
>>> Installing (1 of 1) sys-libs/glibc-2.25::gentoo
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/sys-libs/glibc-2.25/temp/environment: line 127: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
[sys-libs/glibc-2.25] bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/sys-libs/glibc-2.25/temp/environment: line 127: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
 * Defaulting /etc/host.conf:multi to on
/var/tmp/portage/sys-libs/glibc-2.25/temp/environment: line 2071: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/sys-libs/glibc-2.25/temp/environment: line 2067: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/sys-libs/glibc-2.25/temp/environment: line 2071: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/sys-libs/glibc-2.25/temp/environment: line 2067: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/sys-libs/glibc-2.25/temp/environment: line 2071: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/sys-libs/glibc-2.25/temp/environment: line 2067: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/sys-libs/glibc-2.25/temp/environment: line 2071: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/sys-libs/glibc-2.25/temp/environment: line 2067: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/sys-libs/glibc-2.25/temp/environment: line 2071: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/sys-libs/glibc-2.25/temp/environment: line 2067: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/sys-libs/glibc-2.25/temp/environment: line 2071: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/sys-libs/glibc-2.25/temp/environment: line 2067: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/sys-libs/glibc-2.25/temp/environment: line 2071: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/sys-libs/glibc-2.25/temp/environment: line 2067: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/sys-libs/glibc-2.25/temp/environment: line 127: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
[sys-libs/glibc-2.24-r1] bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/._unmerge_/sys-libs/glibc-2.24-r1/temp/environment: line 127: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
[sys-libs/glibc-2.24-r1] bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/._unmerge_/sys-libs/glibc-2.24-r1/temp/environment: line 127: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
[sys-libs/glibc-2.24-r1] bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
[sys-libs/glibc-2.25] bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/var/tmp/portage/sys-libs/glibc-2.25/temp/environment: line 127: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
 * Generating locale-archive: forcing # of jobs to 1
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
 * Generating locale-archive: forcing # of jobs to 1
 * Generating 5 locales (this might take a while) with 1 jobs
 *  (1/5) Generating de_DE.ISO-8859-1 ...                                 [ !! ]
 *  (2/5) Generating de_DE.UTF-8 ...                                      [ !! ]
 *  (3/5) Generating de_DE.ISO-8859-15@euro ...                           [ !! ]
 *  (4/5) Generating en_US.ISO-8859-1 ...                                 [ !! ]
 *  (5/5) Generating en_US.UTF-8 ...                                      [ !! ]
 * Generation complete
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)



is "error 6" related to path issues ?

Code:
ls -l /usr/lib64/ | grep -i locale
-rw-r--r-- 1 root root     1662 Apr 14 22:38 libBrokenLocale.a
lrwxrwxrwx 1 root root       32 Apr 14 22:37 libBrokenLocale.so -> ../../lib64/libBrokenLocale.so.1
lrwxrwxrwx 1 root root       18 Dec  5 00:47 libboost_locale-mt.so -> libboost_locale.so
lrwxrwxrwx 1 root root       25 Dec  5 00:47 libboost_locale.so -> libboost_locale.so.1.58.0
-rwxr-xr-x 1 root root   653536 Dec  5 00:47 libboost_locale.so.1.58.0
drwxr-x--- 1 root root       48 Apr 14 22:38 locale


I deleted and re-create /usr/lib/locale

and /usr/lib32/locale is a symbolic link to /usr/lib64/locale


Any ideas ?


This is really preventing any further steps to be taken since e.g. kernel modules such as spl, zfs cannot be even compiled - it segfaults at the configuration/initial stage :cry:

[Moderator edit: changed [quote] tags to [code] tags to preserve output layout and suppress bogus smilies. -Hu]
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Apr 14, 2017 9:00 pm    Post subject: Reply with quote

/etc/locale.gen:

Code:
en_US.UTF-8 UTF-8
de_DE.UTF-8 UTF-8

en_US ISO-8859-1

de_DE ISO-8859-1
de_DE@euro ISO-8859-15



Code:
locale-gen
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
 * Generating locale-archive: forcing # of jobs to 1
 * Generating 5 locales (this might take a while) with 1 jobs
 *  (1/5) Generating de_DE.ISO-8859-1 ...                                 [ !! ]
 *  (2/5) Generating de_DE.UTF-8 ...                                      [ !! ]
 *  (3/5) Generating de_DE.ISO-8859-15@euro ...                           [ !! ]
 *  (4/5) Generating en_US.ISO-8859-1 ...                                 [ !! ]
 *  (5/5) Generating en_US.UTF-8 ...                                      [ !! ]
 * Generation complete


Code:
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


Code:
strace localedef -i en_US -c -f UTF-8 en_US.UTF-8
execve("/usr/bin/localedef", ["localedef", "-i", "en_US", "-c", "-f", "UTF-8", "en_US.UTF-8"], [/* 73 vars */]) = 0
brk(NULL)                               = 0x1cc8000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0b83eeb000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=411020, ...}) = 0
mmap(NULL, 411020, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0b83e86000
close(3)                                = 0
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\5\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1697224, ...}) = 0
mmap(NULL, 3804616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0b83929000
mprotect(0x7f0b83ac0000, 2097152, PROT_NONE) = 0
mmap(0x7f0b83cc0000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x197000) = 0x7f0b83cc0000
mmap(0x7f0b83cc6000, 15816, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0b83cc6000
close(3)                                = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0b83e83000
arch_prctl(ARCH_SET_FS, 0x7f0b83e83700) = 0
mprotect(0x7f0b83cc0000, 16384, PROT_READ) = 0
mprotect(0x648000, 4096, PROT_READ)     = 0
mprotect(0x7f0b83eed000, 4096, PROT_READ) = 0
munmap(0x7f0b83e86000, 411020)          = 0
brk(NULL)                               = 0x1cc8000
brk(0x1ce9000)                          = 0x1ce9000
open("/usr/lib64/locale/locale-archive", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2997, ...}) = 0
read(3, "# Locale name alias data base.\n#"..., 4096) = 2997
read(3, "", 4096)                       = 0
close(3)                                = 0
open("/usr/lib64/locale/en_US.utf-8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en_US.utf8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en_US/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en.utf-8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en.utf8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en_US.utf-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en_US.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en_US/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en.utf-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("UTF-8", O_RDONLY)                 = -1 ENOENT (No such file or directory)
open("/usr/share/i18n/charmaps/UTF-8", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/i18n/charmaps/UTF-8.gz", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=393144, ...}) = 0
pipe([4, 5])                            = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=4*1024}) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=4*1024}) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=4*1024}) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=4*1024}) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=4*1024}) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=4*1024}) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=4*1024}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f0b83eea000
rt_sigprocmask(SIG_BLOCK, ~[], [], 8)   = 0
clone( <unfinished ...>
+++ killed by SIGSEGV +++
Segmentation fault


Code:
strace -eopen locale
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib64/locale/locale-archive", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib64/locale/en_US.utf-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en_US.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en_US/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en.utf-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
locale: Cannot set LC_CTYPE to default locale: No such file or directory
open("/usr/lib64/locale/en_US.utf-8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en_US.utf8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en_US/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en.utf-8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en.utf8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
open("/usr/lib64/locale/en_US.utf-8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en_US.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en_US/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en.utf-8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/en/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.utf-8
LC_CTYPE="en_US.utf-8"
LC_NUMERIC="en_US.utf-8"
LC_TIME="en_US.utf-8"
LC_COLLATE="en_US.utf-8"
LC_MONETARY="en_US.utf-8"
LC_MESSAGES="en_US.utf-8"
LC_PAPER="en_US.utf-8"
LC_NAME="en_US.utf-8"
LC_ADDRESS="en_US.utf-8"
LC_TELEPHONE="en_US.utf-8"
LC_MEASUREMENT="en_US.utf-8"
LC_IDENTIFICATION="en_US.utf-8"
LC_ALL=en_US.utf-8
+++ exited with 0 +++



https://patchwork.ozlabs.org/patch/530466/

Code:
+  if (n < 0)
+    WITH_CUR_LOCALE (error (6, errno, _("cannot allocate path")));
+  return result;

_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum