From: vijay nag <vijunag@gmail.com>
To: gdb@sourceware.org
Subject: RE: cannot find bounds of function error
Date: Wed, 24 Jul 2013 09:44:00 -0000 [thread overview]
Message-ID: <CAKhyrx8aDzz78UgWjUN78q7pWZ0=-Y3KH8oOkFb3P2RCK+F52Q@mail.gmail.com> (raw)
Hello gdb-veterans,
My latest gdb-7.5 barfs out "cannot find bounds of current function"
error when it encounters GNU_IFUNC while executing one line of code at
a time
using "next" command
(gdb) n
224 if (1==fscanf(rva, "%d", &val)) {
(gdb) n
225 if (val) {
(gdb) n
237 fclose(rva);
(gdb) n
242 } else if (val) {
(gdb) n
252 if (getenv("ARGV0")) {
(gdb) n
256 init(argc, argv,
(gdb) n
268 priv_init();
(gdb) n
273 config.argv0short = strrchr(argv[0], '/');
(gdb) p &strrchr
$1 = (<text gnu-indirect-function variable, no debug info> *)
0x13b1b600 <strrchr>
(gdb) n
0x08048430 in ?? ()
(gdb) n
Cannot find bounds of current function
(gdb) n
Cannot find bounds of current function
(gdb) n
Cannot find bounds of current function
(gdb) n
Cannot find bounds of current function
(gdb) n
Cannot find bounds of current function
(gdb)
The corresponding assembly before strrchr func here is as below
0x122b6ca7 <main+498> mov 0xc(%ebp),%ebx
│
│0x122b6caa <main+501> movl $0x2f,0x4(%esp)
│
│0x122b6cb2 <main+509> mov (%ebx),%eax
│
│0x122b6cb4 <main+511> mov %eax,(%esp)
│
│0x122b6cb7 <main+514> call 0x8048430
Here 0x8048430 appears to be a call to PLT and entry for strrchr seems
to be resolved already
(gdb) p /x *0x178ff5d8
$3 = 0x13b3b0d0
(gdb) info line *0x13b3b0d0
Line 42 of "../sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S" starts
at address 0x13b3b0d0 <__strrchr_sse2_bsf> and ends at 0x13b3b0d4
<__strrchr_sse2_bsf+4>.
(gdb)
next reply other threads:[~2013-07-24 9:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-24 9:44 vijay nag [this message]
2013-07-24 12:39 ` Jan Kratochvil
[not found] ` <CAKhyrx_LP-rqJMN_CoJ_Hy9X8+1or9CTQab=ioHBfnFBVjQ-nQ@mail.gmail.com>
2013-07-24 13:28 ` vijay nag
2013-08-13 8:59 ` vijay nag
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKhyrx8aDzz78UgWjUN78q7pWZ0=-Y3KH8oOkFb3P2RCK+F52Q@mail.gmail.com' \
--to=vijunag@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox