gen_wctype segfaults

Lior Balkohen balkohen at gmail.com
Thu Dec 1 14:00:24 UTC 2005


uClibc-0.9.28, after "make headers" in the topleveldir, creating
codesets.txt and locales.txt in extra/locale, running make here:

~/uclibc/cdk/uClibc-0.9.28/extra/locale$ LC_ALL="C" make
gcc -O2 -Wall  -DCTYPE_PACKED=1 -DDO_WIDE_CHAR=1 -D__UCLIBC_GEN_LOCALE
gen_wc8bit.c -o gen_wc8bit
gen_wc8bit.c: In function 'main':
gen_wc8bit.c:462: warning: pointer targets in assignment differ in signedness
gen_wc8bit.c:613: warning: pointer targets in assignment differ in signedness
./gen_wc8bit `cat codesets.txt`
processing ./charmaps/ISO-8859-1.pairs... 256 lines  done
tt_num = 9   ti_num = 2
max_wchar = 0xff
size is 9 * 16  +  2 * 16  + 38 * 1  =  214
ctype - CTYPE_IDX_SHIFT = 3 -- 1 * 16 + 9 * 4 = 52
uplow - UPLOW_IDX_SHIFT = 3 -- 1 * 16 + 3 * 8 = 40
c2wc - C2WC_IDX_SHIFT = 3 -- 1 * 16 + 2 * 16 * 8 = 272
total size = 578
gcc -O2 -Wall  -D__UCLIBC_GEN_LOCALE gen_wctype.c -o gen_wctype
gen_wctype.c:752:2: warning: #warning fix the upper bound on the
upper/lower tables... save 200 bytes or so
gen_wctype.c: In function 'main':
gen_wctype.c:236: warning: unused variable 'last_comb'
gen_wctype.c:235: warning: unused variable 'widthtable'
gen_wctype.c:648: warning: 'i1' may be used uninitialized in this function
gen_wctype.c:648: warning: 'i0' may be used uninitialized in this function
gen_wctype.c:647: warning: 'n' may be used uninitialized in this function
gen_wctype.c:647: warning: 'sc' may be used uninitialized in this function
./gen_wctype en_US
setlocale(LC_CTYPE,en_US) failed!
make: *** [wctables.h] Segmentation fault
make: *** Deleting file `wctables.h'

~/uclibc/cdk/uClibc-0.9.28/extra/locale$ uname -a
Linux Shop 2.6.12-10-386 #1 Fri Nov 18 11:51:02 UTC 2005 i686 GNU/Linux

~/uclibc/cdk/uClibc-0.9.28/extra/locale$ LC_ALL="C" gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
--with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-shared
--with-system-zlib --libexecdir=/usr/lib --enable-nls
--without-included-gettext --enable-threads=posix
--program-suffix=-4.0 --enable-__cxa_atexit
--enable-libstdcxx-allocator=mt --enable-clocale=gnu
--enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk
--enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre
--enable-mpfr --disable-werror --enable-checking=release
i486-linux-gnu
Thread model: posix
gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)

should I bother my linux distributor, gcc guys or you? ;-)



More information about the uClibc mailing list