This is the mail archive of the libc-help@sourceware.org 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]
Other format: [Raw text]

Re: Error while debugging a program using debugglibc.sh


Here are the results from "make check", if it helps -

UNSUPPORTED: elf/tst-audit10
UNSUPPORTED: elf/tst-avx512
XPASS: elf/tst-protected1a
XPASS: elf/tst-protected1b
FAIL: io/ftwtest
UNSUPPORTED: math/test-double-libmvec-sincos-avx512
UNSUPPORTED: math/test-float-libmvec-sincosf-avx512
UNSUPPORTED: misc/tst-pkey
FAIL: nptl/tst-umask1
FAIL: posix/globtest
FAIL: posix/tst-chmod
FAIL: posix/tst-execl2
FAIL: posix/tst-execle2
FAIL: posix/tst-execlp2
FAIL: posix/tst-execv2
FAIL: posix/tst-execve2
FAIL: posix/tst-execvp2
FAIL: posix/tst-execvpe2
UNSUPPORTED: resolv/tst-resolv-ai_idn
UNSUPPORTED: resolv/tst-resolv-ai_idn-latin1
Summary of test results:
     11 FAIL
   5164 PASS
      7 UNSUPPORTED
     17 XFAIL
      2 XPASS

On Mon, Oct 28, 2019 at 4:54 PM Nisarg Shah <nisargshah323@gmail.com> wrote:
>
> OS: Ubuntu 18.04 64-bit
> System glibc: 2.27-3ubuntu1
> New glibc: built from master branch
>
> Hi all,
> I'm following steps from
> https://sourceware.org/glibc/wiki/Testing/Builds to install and use a
> new glibc alongside the default system installation. After building it
> and compiling a simple multithreaded program against it, when I try to
> run it under GDB using the debugglibc.sh, I get the following error -
>
> The multithreaded program is copied from
> https://timmurphy.org/2010/05/04/pthreads-in-c-a-minimal-working-example/
>
> Steps to compile the program -
>
> SYSROOT=/home/<user>/glibc-master (this is where I installed glibc
> using DESTDIR env variable)
> gcc \
>   -L${SYSROOT}/usr/lib64 \
>   -I${SYSROOT}/include \
>   --sysroot=${SYSROOT} \
>   -Wl,-rpath=${SYSROOT}/lib64 \
>   -Wl,--dynamic-linker=${SYSROOT}/lib64/ld-2.18.90.so\
>   -pthread /mnt/hd/pthreads_simple.c
>
> Steps followed to run GDB -
>
> $ cd /mnt/hd/glibc-master-build/
> $ ./debugglibc.sh /mnt/hd/a.out
> Debugging glibc...
> Build directory  : /mnt/hd/glibc-master-build/
> Source directory : /mnt/hd/glibc
> GLIBC Testcase   : /mnt/hd/a.out
> GDB Commands     : /mnt/hd/glibc-master-build/debugglibc.gdb
> Env vars         :
> Reading symbols from /mnt/hd/glibc-master-build//elf/ld.so...done.
> /mnt/hd/glibc-master-build/debugglibc.gdb:5: Error in sourced command file:
> ***The address where /mnt/hd/a.out has been loaded is missing***
>
> I'm not sure how to resolve this. This is the first time I'm
> attempting to build/install glib. Any help would be appreciated.
>
> Nisarg


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