localedef assert failure: malloc(): memory corruption
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
When running locale-gen after a vanilla Ubuntu 18.04 installation this error appears. Any locale can not be created or generated.
This was the first occurrence of this bug:
root@knlf1:~# apt install language-pack-br
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
language-
The following NEW packages will be installed:
language-pack-br language-
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 81.8 kB of archives.
After this operation, 321 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://
Get:2 http://
Fetched 81.8 kB in 0s (928 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = "pt_BR.UTF-8",
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
Selecting previously unselected package language-
(Reading database ... 58623 files and directories currently installed.)
Preparing to unpack .../language-
Unpacking language-
Selecting previously unselected package language-pack-br.
Preparing to unpack .../language-
Unpacking language-pack-br (1:18.04+20180423) ...
Setting up language-pack-br (1:18.04+20180423) ...
Setting up language-
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (pt_BR.UTF-8)
Generating locales (this might take a while)...
br_FR.
/usr/sbin/
done
Generation complete.
-------------------
This is another one:
root@knlf1:~# apt install language-pack-pt
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
language-
The following NEW packages will be installed:
language-pack-pt language-
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 2570 kB of archives.
After this operation, 12.5 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://
Get:2 http://
Fetched 2570 kB in 0s (9185 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = "pt_BR.UTF-8",
LANG = "pt_BR.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
Selecting previously unselected package language-
(Reading database ... 62304 files and directories currently installed.)
Preparing to unpack .../language-
Unpacking language-
Selecting previously unselected package language-pack-pt.
Preparing to unpack .../language-
Unpacking language-pack-pt (1:18.04+20180423) ...
Setting up language-pack-pt (1:18.04+20180423) ...
Setting up language-
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (pt_BR.UTF-8)
Generating locales (this might take a while)...
pt_BR.
/usr/sbin/
done
pt_PT.
/usr/sbin/
done
Generation complete.
-------
The first CPU on /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 87
model name : Intel(R) Xeon Phi(TM) CPU 7250F @ 1.40GHz
stepping : 1
microcode : 0xffff0190
cpu MHz : 999.724
cache size : 1024 KB
physical id : 0
siblings : 272
core id : 0
cpu cores : 68
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch ring3mwait cpuid_fault epb pti tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms avx512f rdseed adx avx512pf avx512er avx512cd xsaveopt dtherm ida arat pln pts
bugs : cpu_meltdown spectre_v1 spectre_v2
bogomips : 2793.34
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
(the processor count goes down to 271).
root@knlf1:~# free
total used free shared buff/cache available
Mem: 115357040 994456 113797016 2644 565568 113522356
Swap: 97654780 0 97654780
root@knlf1:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 57651028 0 57651028 0% /dev
tmpfs 11535704 2644 11533060 1% /run
/dev/sda1 95789468 1629624 89250944 2% /
tmpfs 57678520 0 57678520 0% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 57678520 0 57678520 0% /sys/fs/cgroup
/dev/sda6 575657040 73756 546271748 1% /scr-knlf1
tmpfs 11535704 0 11535704 0% /run/user/1000
root@knlf1:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04
Codename: bionic
root@knlf1:~#
Thanks in advance!
ProblemType: Crash
DistroRelease: Ubuntu 18.04
Package: libc-bin 2.27-3ubuntu1
ProcVersionSign
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
AssertionMessage: malloc(): memory corruption
Date: Thu May 3 12:19:41 2018
Dependencies:
gcc-8-base 8-20180414-1ubuntu2
libc6 2.27-3ubuntu1
libgcc1 1:8-20180414-
ExecutablePath: /usr/bin/localedef
ExecutableTimes
ProcCmdline: localedef -i br_FR -c -f UTF-8 -A /usr/share/
ProcCwd: /root
ProcEnviron:
LANG=pt_BR.UTF-8
TERM=xterm-
SHELL=/bin/bash
PATH=(custom, no user)
Signal: 6
SourcePackage: glibc
StacktraceTop:
__libc_message (action=
malloc_printerr (str=str@
_int_malloc (av=av@
__GI___libc_malloc (bytes=4064) at malloc.c:3057
?? ()
Title: localedef assert failure: malloc(): memory corruption
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
information type: | Private → Private Security |
information type: | Private Security → Public Security |
StacktraceTop: action@ entry=do_ abort, fmt=fmt@ entry=0x7f24667 4cb9a "%s\n") at ../sysdeps/ posix/libc_ fatal.c: 181 entry=0x7f24667 4ae0e "malloc(): memory corruption") at malloc.c:5350 entry=0x7f24669 81c40 <main_arena>, bytes=bytes@ entry=4064) at malloc.c:3738
__libc_message (action=
malloc_printerr (str=str@
_int_malloc (av=av@
__GI___libc_malloc (bytes=4064) at malloc.c:3057
?? ()