From: Yao Qi <qiyaoltc@gmail.com>
To: gdb-patches@sourceware.org
Subject: warning: Could not load shared library symbols for linux-vdso.so.1.
Date: Thu, 11 Aug 2016 11:46:00 -0000 [thread overview]
Message-ID: <86twercyuv.fsf@gmail.com> (raw)
Hi,
When I test gdb master/7.12 with glibc mainline on aarch64, I got the
following fail,
(gdb) core-file build-gdb/gdb/testsuite/outputs/gdb.base/corefile/corefile.core^M
[New LWP 2362]^M
warning: Could not load shared library symbols for linux-vdso.so.1.^M
Do you need "set solib-search-path" or "set sysroot"?^M
Core was generated by `build-gdb/gdb/testsuite/outputs/gdb.base/corefile/'.^M
Program terminated with signal SIGABRT, Aborted.^M
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:58^M
58 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.^M
(gdb) FAIL: gdb.base/corefile.exp: core-file warning-free
Looks the warning "Could not load shared library symbols for
linux-vdso.so.1." makes the trouble. It was discussed and fixed in this
thread https://sourceware.org/ml/gdb-patches/2014-09/msg00361.html In
the fix, we filter out the vDSO module if l_ld is in the range of vDSO
module. However, it only works for native live debugging. We can
know the starting address of vDSO by AT_SYSINFO_EHDR, but we don't know
size of vDSO when target is corefile. In my observation, vDSO is _not_
dumped in corefile at all.
One version of Pedro's patch uses "(so->lm_info->l_addr_inferior
== vsyscall_addr)" to check whether "so" is vDSO (it works for me in my
fail here), but we changed it to range checking in order to handle
"prelinked" vDSO. I go through the mail thread above, but I don't know
how vDSO is "prelinked".
Alternatively, we can filter vDSO by name matching, like "",
"linux-vdso.so.1" and "linux-gate.so.1", which was proposed by Doug
too. Is it a good approach to fix this problem?
--
Yao (齐尧)
next reply other threads:[~2016-08-11 11:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-11 11:46 Yao Qi [this message]
2016-08-11 15:57 ` Pedro Alves
2016-08-12 10:28 ` Yao Qi
2016-08-19 1:05 ` Pedro Alves
2016-08-19 9:59 ` Yao Qi
2016-08-19 10:32 ` Pedro Alves
2016-08-19 11:41 ` Yao Qi
2016-08-19 14:02 ` Pedro Alves
2016-08-22 9:36 ` Yao Qi
2016-08-22 19:47 ` Pedro Alves
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=86twercyuv.fsf@gmail.com \
--to=qiyaoltc@gmail.com \
--cc=gdb-patches@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