This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/16289] New: floating point exception with corrupted locale-archive
- From: "aurelien at aurel32 dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 03 Dec 2013 13:41:26 +0000
- Subject: [Bug libc/16289] New: floating point exception with corrupted locale-archive
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16289
Bug ID: 16289
Summary: floating point exception with corrupted locale-archive
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: aurelien at aurel32 dot net
Reporter: aurelien at aurel32 dot net
CC: drepper.fsp at gmail dot com
In case locale-archive is corrupted (for example by a power failure or crash
and a filesystem check), /usr/lib/locale/locale-archive may end-up containing
only zeros. In that case all calls to setlocale() generate a SIGFPE. This
renders a system with a default non-C locale unbootable:
[ 18.911748] traps: expr[1181] trap divide error ip:7f75ace8dffb
sp:7fffb0b01c10 error:0 in libc-2.17.so[7f75ace61000+1a3000]
[ 18.916272] traps: expr[1183] trap divide error ip:7f526b64dffb
sp:7fff8e3174e0 error:0 in libc-2.17.so[7f526b621000+1a3000]
[ 18.921920] traps: mount[1185] trap divide error ip:7fddcb8e4ffb
sp:7fffdbd10e10 error:0 in libc-2.17.so[7fddcb8b8000+1a3000]
[ 18.926129] traps: grep[1190] trap divide error ip:7f602d9b6ffb
sp:7fffa4f20660 error:0 in libc-2.17.so[7f602d98a000+1a3000]
[ 18.927332] traps: ls[1189] trap divide error ip:7f2084ff6ffb
sp:7fffebb75960 error:0 in libc-2.17.so[7f2084fca000+1a3000]
[ 18.930583] traps: sed[1191] trap divide error ip:7fdd287beffb
sp:7fff0ea72e90 error:0 in libc-2.17.so[7fdd28792000+1a3000]
[ 18.933161] traps: grep[1196] trap divide error ip:7f286e8b5ffb
sp:7fff6e2dadc0 error:0 in libc-2.17.so[7f286e889000+1a3000]
[ 18.934322] traps: ls[1195] trap divide error ip:7fdb27401ffb
sp:7fffdfd48700 error:0 in libc-2.17.so[7fdb273d5000+1a3000]
(The above dmesg is from glibc 2.17, but the issue can be reproduced with HEAD)
Note: This is Debian bug#730336, a broken locale-archive file can be found on:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=730336
--
You are receiving this mail because:
You are on the CC list for the bug.