Bug#807358: locales: /usr/sbin/locale-gen: line 62: 31200 Killed (64 Mb RAM)
On 2015-12-29 23:49, Aurelien Jarno wrote:
> On 2015-12-08 09:41, Aurelien Jarno wrote:
> > control: tag -1 + moreinfo
> >
> > On 2015-12-07 22:57, Jari Aalto wrote:
> > > Package: locales
> > > Version: 2.19-22
> > > Severity: important
> > >
> > > Unable to install package "locales" or generate locales manually on
> > > x86 with 64 Mb and plenty of free swap. Output of htop(1):
> > >
> > > CPU[||||||| 11.1%] Tasks: 38, 0 thr; 1 running
> > > Mem[|||||||||||||||||||||||||||||||||||||||||||29/56MB] Load average: 0.17 2.59 2.14
> > > Swp[|| 21/760MB] Uptime: 634 days(!), 20:34:35
> > >
> > >
> > > $ locale-gen
> > > Generating locales (this might take a while)...
> > > en_US.UTF-8.../usr/sbin/locale-gen: line 62: 31200 Killed
> > > localedef -i $input -c -f $charset -A /usr/share/locale/locale.alias $locale
> > > done
> > > Generation complete.
> > >
> > > System has only en_US.UTF-8 activated:
> > >
> > > $ grep -v '#' /etc/locale.gen
> > > en_US.UTF-8 UTF-8
> > >
> > > Debug listing:
> > >
> > >
> > > $ sh -x locale-gen
> > > [...]
> > > + '[' -f /usr/local/share/i18n/locales/en_US ']'
> > > + localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
> > > /usr/sbin/locale-gen: line 62: 31157 Killed localedef -i $input -c -f $charset -A /usr/share/locale/locale.alias $locale
> > > + :
> > > + echo ' done'
> > > done
> > > [...]
> > > Killed
> > >
> > > Manual try:
> > >
> > > $ localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
> > > <... time passes>
> > > Killed
> >
> > localedef definitely needs more than 64MB of RAM, that said with
> > 760MB swap it should run fine.
> >
> > If the program gets killed, there is not a lot we can do on the libc
> > side, that's clearly a problem on your system.
> >
> > > I don't have possibilities to install any trace tools in this low
> > > memory system.
> >
> > I guess you can get some information from the kernel (using dmesg) about
> > why localedef gets killed. You should also look how the overcommit is
> > configured on your system:
> >
> > https://www.kernel.org/doc/Documentation/vm/overcommit-accounting
>
> Any news on that? Can you provide the output of dmesg?
>
Any news?
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://www.aurel32.net
Reply to: