This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
`make check' failure in 2.1.93
- To: libc-alpha at sourceware dot cygnus dot com
- Subject: `make check' failure in 2.1.93
- From: SL Baur <steve at turbolinux dot co dot jp>
- Date: 01 Sep 2000 16:46:45 +0900
- References: <200008132357.e7DNvXY20167@localhost.localdomain> <00081700512600.24956@enzo.bigblue.local> <200008162125.OAA10152@localhost.cygnus.com> <00081722172200.01158@enzo.bigblue.local> <m3sns3634y.fsf@otr.mynet.cygnus.com> <39AF1CF9.BD4A7FA@fuse.net> <m2snrkisls.fsf@dejima.jp.tlan> <m31yz4ocqt.fsf@otr.mynet.cygnus.com> <m2og28iofq.fsf@dejima.jp.tlan> <m3snrklh2f.fsf@otr.mynet.cygnus.com>
Ulrich Drepper <drepper@redhat.com> writes in libc-alpha@sourceware.cygnus.com:
> SL Baur <steve@turbolinux.co.jp> writes:
>> #0 __gconv (cd=0x0, inbuf=0x11fffea60, inbufend=0x12000148c "",
>> outbuf=0x11fffea70, outbufend=0x11fffea60 "n", irreversible=0x11fffc300)
>> at gconv.c:34
>> 34 size_t last_step = cd->__nsteps - 1;
>> [...]
>> It looks like iconv_open/__gconv_open can return NULL without
>> returning an error code.
> iconv_open never should return NULL. In the error case the return
> value is (iconv_t) -1.
I saw that. I also saw that the pointer that is eventally returned
from __gconv_open is initialized to NULL. I tried changing its
initialization to 0xDEADBEEF, but I am still getting NULL coming
back.
> Please check by stepping through the iconv_open call how this can
> happen.
O.K. Hmm. How do I get a debugger? The command line that is failing is:
GCONV_PATH=/home/work/turbo/BUILD/libc/build-alpha-linux/iconvdata LC_ALL=C MALLOC_TRACE=/home/work/turbo/BUILD/libc/build-alpha-linux/iconvdata/tst-loading.mtrace /home/work/turbo/BUILD/libc/build-alpha-linux/elf/ld-linux.so.2 --library-path /home/work/turbo/BUILD/libc/build-alpha-linux:/home/work/turbo/BUILD/libc/build-alpha-linux/math:/home/work/turbo/BUILD/libc/build-alpha-linux/elf:/home/work/turbo/BUILD/libc/build-alpha-linux/dlfcn:/home/work/turbo/BUILD/libc/build-alpha-linux/nss:/home/work/turbo/BUILD/libc/build-alpha-linux/nis:/home/work/turbo/BUILD/libc/build-alpha-linux/rt:/home/work/turbo/BUILD/libc/build-alpha-linux/resolv:/home/work/turbo/BUILD/libc/build-alpha-linux/crypt:/home/work/turbo/BUILD/libc/build-alpha-linux/linuxthreads /home/work/turbo/BUILD/libc/build-alpha-linux/iconvdata/tst-loading
and the straightforward:
GCONV_PATH=/home/work/turbo/BUILD/libc/build-alpha-linux/iconvdata LC_ALL=C MALLOC_TRACE=/home/work/turbo/BUILD/libc/build-alpha-linux/iconvdata/tst-loading.mtrace gdb /home/work/turbo/BUILD/libc/build-alpha-linux/iconvdata/tst-loading
runs to a normal completion.
I can't run ld-linux.so.2 under the debugger.
warning: Cannot insert breakpoint -3:
Cannot access memory at address 0x5860
I have already installed the binaries, btw.