[Bug 1768877] Re: localedef assert failure: malloc(): memory corruption

2018-05-04 Thread Pedro Linha
I've reinstalled ubuntu 18.04 on the same machine. Choose "C" as default
locale. The only package that I've choose on installation was OpenSSH
server.

Here are the commands on the first login (using a serial-over-lan
terminal):


root@knlf1:~# locale
LANG=C
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
root@knlf1:~# locale-gen --lang en_US
Generating locales (this might take a while)...
  en_US.UTF-8...corrupted size vs. prev_size
/usr/sbin/locale-gen: line 177:  2922 Aborted localedef 
$no_archive -i $input -c -f $charset $locale_alias $locale
 done
Generation complete.
root@knlf1:~# 
--

Debbuging a little bit I've found the specific line on locale-gen script
that produces the error (localedef -i en_US -c -f UTF-8 -A
/usr/share/locale/locale.alias en_US.UTF-8).

localedef has a "verbose" output. So...

--

root@knlf1:~# localedef -v -i en_US -c -f UTF-8 -A 
/usr/share/locale/locale.alias en_US.UTF-8
/usr/share/i18n/locales/iso14651_t1_common:7120: LC_COLLATE: symbol 
`pure-ta-zh' not known
[warning] LC_NAME: field `name_gen' not defined
[verbose] LC_CTYPE: table for class "upper": 94715077278256 bytes
[verbose] LC_CTYPE: table for class "lower": 94715077281472 bytes
[verbose] LC_CTYPE: table for class "alpha": 94715077284640 bytes
[verbose] LC_CTYPE: table for class "digit": 94715077287856 bytes
[verbose] LC_CTYPE: table for class "xdigit": 94715077291072 bytes
[verbose] LC_CTYPE: table for class "space": 94715077294288 bytes
[verbose] LC_CTYPE: table for class "print": 94715077297504 bytes
[verbose] LC_CTYPE: table for class "graph": 94715077300672 bytes
[verbose] LC_CTYPE: table for class "blank": 94715077303888 bytes
[verbose] LC_CTYPE: table for class "cntrl": 94715077307104 bytes
[verbose] LC_CTYPE: table for class "punct": 94715077310320 bytes
[verbose] LC_CTYPE: table for class "alnum": 94715077313488 bytes
[verbose] LC_CTYPE: table for class "combining": 94715077316704 bytes
[verbose] LC_CTYPE: table for class "combining_level3": 94715077319920 bytes
[verbose] LC_CTYPE: table for map "toupper": 0 bytes
[verbose] LC_CTYPE: table for map "tolower": 140258418968639 bytes
[verbose] LC_CTYPE: table for map "totitle": 50331644 bytes
[verbose] LC_CTYPE: table for width: 0 bytes
root@knlf1:~# 

---

Where those huge numbers came from (around 140 terabytes)???

Round 2...

Installed 17.10. Same procedure, same commands:

---

Ubuntu 17.10 knlf1 ttyS0

root@knlf1:/home/dummy# locale
LANG=C
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
root@knlf1:/home/dummy# locale-gen --lang en_US
Generating locales (this might take a while)...
  en_US.UTF-8...*** Error in `localedef': corrupted size vs. prev_size: 
0x058c2750 ***
/usr/sbin/locale-gen: line 177:  2892 Aborted localedef 
$no_archive -i $input -c -f $charset $locale_alias $locale
 done
Generation complete.
root@knlf1:/home/dummy#



Same error...

Any ideas?

Cheers!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768877

Title:
  localedef assert failure: malloc(): memory corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1768877/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1768877] Re: localedef assert failure: malloc(): memory corruption

2018-05-03 Thread Pedro Linha
No, it does not make any difference.

Just to be sure I've changed the default locale to C (because
en_US.UTF-8 was not compiled neither), reboot and tried locale-gen
again. Same error.

Seth, I've installed a bunch of packages after this error appears. It
was surprising to me too that a deep malloc error doesn't stopped the
machine to install and configure packages.

Anyway I'll do a new fresh ubuntu 18.04 installation ASAP. The problem
is that this machine is a headless computing node, so the installation
procedure is by netboot packages only (PXE, tfpboot etc).

And, if this error continues, I'll do another try with ubuntu 17.10.

Thanks in advance!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768877

Title:
  localedef assert failure: malloc(): memory corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1768877/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1768877] Re: localedef assert failure: malloc(): memory corruption

2018-05-03 Thread Gunnar Hjalmarsson
It looks like you set pt_BR.UTF-8 in /etc/default/locale before that
locale had been generated. Does it make a difference if you set a locale
which exists (such as en_US.UTF-8), reboot, and then run locale-gen?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768877

Title:
  localedef assert failure: malloc(): memory corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1768877/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1768877] Re: localedef assert failure: malloc(): memory corruption

2018-05-03 Thread Seth Arnold
I'm able to add and remove this langpack from my (much more pedestrian)
i7 laptop; do you notice other problems on this system? e.g. can you do
a kernel build on it without trouble? (I'm surprised something that
feels as basic as locales generation fails, when it manages to get to a
prompt..)

Thanks

** Information type changed from Public Security to Public

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768877

Title:
  localedef assert failure: malloc(): memory corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1768877/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1768877] Re: localedef assert failure: malloc(): memory corruption

2018-05-03 Thread Pedro Linha
** Information type changed from Private Security to Public Security

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768877

Title:
  localedef assert failure: malloc(): memory corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1768877/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs