Report forwarded to debian-bugs-dist@lists.debian.org, Helmut Geyer <Helmut.Geyer@iwr.uni-heidelberg.de>:
Bug#11108; Package locales.
debian-bugs-dist@lists.debian.orgHelmut Geyer <Helmut.Geyer@iwr.uni-heidelberg.de>
Sorry, this message was lost when this bug report was restored from a backup.
Acknowledgement sent to Joerg-Martin Schwarz <jms@jms.prima.ruhr.de>:
New bug report received and forwarded. Copy sent to Helmut Geyer <Helmut.Geyer@iwr.uni-heidelberg.de>.
Joerg-Martin Schwarz <jms@jms.prima.ruhr.de>
Sorry, this message was lost when this bug report was restored from a backup.
Received: (at submit) by bugs.debian.org; 8 Jul 1997 18:23:44 +0000
Received: (qmail 10266 invoked from network); 8 Jul 1997 18:23:43 -0000
Received: from steve.prima.ruhr.de (root@141.39.232.6)
by master.debian.org with SMTP; 8 Jul 1997 18:23:42 -0000
Received: from jms.UUCP (news@localhost) by steve.prima.ruhr.de (8.8.5/8.8.2) with UUCP id UAA10653 for bugs.debian.org!submit; Tue, 8 Jul 1997 20:30:17 +0200
Received: by jms
id m0wledI-0003gVC
(Debian Smail-3.2 1996-Jul-4 #2); Tue, 8 Jul 1997 20:05:00 +0200 (CEST)
Message-Id:
Date: Tue, 8 Jul 1997 20:05:00 +0200 (CEST)
From: Joerg-Martin Schwarz
To: submit@bugs.debian.org
Subject: FPE exception
Package: locales
Version: 2.0.3-4
I've been trying to compile the debian packages from sources
glibc_2.0.3.orig.tar.gz, glibc_2.0.3-4.diff.gz
and encountered several errors while building binary-locales:
>>
>> bash debian/do_locales
>> Computing table size for collation information might take a while... done
>> Computing table size for collation information might take a while... done
>> debian/do_locales: line 1: 5462 Floating point exception(core dumped) debian/hold/lib/ld-linux.so.2 debian/hold/usr/bin/localedef -c -i debian/hold/usr/share/i18n/locales/$1 -f debian/hold/usr/share/i18n/charmaps/$2 debian/tmp/usr/share/locale/$1
>>
I was able to debug the process (but only after building a statically linked executable with `ld builddir/csu/{crt1,crti}.o builddir/locale/{localedef,charmap,xmalloc,charset,simple-hash,linereader,stringtrans,xstrdup,locfile,ld-ctype,ld-collate,ld-monetary,ld-numeric,ld-time,ld-messages}.o builddir/libc.a /usr/lib/gcc-lib/i486-linux/2.7.2.2/libgcc.a builddir/csu/crtn.o'):
running ./a.out with
args -c -i debian/hold/usr/share/i18n/locales/de_AT -f debian/hold/usr/share/i18n/charmaps/ISO-8859-1 /tmp/de_AT
gives :
>>
>> Program received signal SIGFPE, Arithmetic exception.
>> 0x804bcd7 in lookup (htab=0x400030a4, key=0xbffffaac, keylen=4, hval=267624432)
>> at programs/simple-hash.c:267
>>
The source code line is:
>> /* First hash function: simply take the modul but prevent zero. */
>> hash = 1 + hval % htab->size;
>>
where htab->size has a value of 0.
I haven't been able to figure out the reason for this, but I suspect it is
related to the fact that the program searches for some
files in the wrong directory
(see my e-mail Message-Id: , Bug report #11086)
--
Jörg-Martin Schwarz
Querstraße 25
D44139 Dortmund
Tel/Fax +49/231/102625