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


If I run the same program under normal GDB, it works as expected -

$ gdb ./a.out
GNU gdb (Ubuntu 8.1-0ubuntu3.1) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./a.out...done.

On Mon, Oct 28, 2019 at 10:17 PM Nisarg Shah <nisargshah323@gmail.com> wrote:
>
> Hi Carlos,
>
> > Where did the toolchain you are using come from? Is the gcc you are using
> > part of your distribution? What distribution are you using?
>
> I'm using Ubuntu 18.04.3 64-bit.
> Toolchain is the default provided by Ubuntu. gcc is part of the distribution.
> $ gcc --version
> gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
>
> libc-bin package provided by distribution is at 2.27-3ubuntu1
>
> > Can you try this?
> >
> > ./debugglibc.sh ./nptl/tst-align
> >
> > And see if debugging a normal glibc test case works?
>
> I get the same error on trying the above command.
>
> $ ./debugglibc.sh ./nptl/tst-align
> Debugging glibc...
> Build directory  : /mnt/hd/glibc-master-build/
> Source directory : /mnt/hd/glibc
> GLIBC Testcase   : ./nptl/tst-align
> 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 ./nptl/tst-align has been loaded is missing
>
> Thanks
> Nisarg


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