This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

`make check' failure in 2.1.93


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]