From: Daniel Jacobowitz <drow@false.org>
To: Neo <cjia@cse.unl.edu>
Cc: gdb <gdb@sourceware.org>
Subject: Re: Failed to read a valid object file image from memory (gdb_6_6-branch, kernel 2.6.20-rc6)
Date: Sun, 28 Jan 2007 14:02:00 -0000 [thread overview]
Message-ID: <20070128140243.GB7486@nevyn.them.org> (raw)
In-Reply-To: <45BBFAC5.80009@cse.unl.edu>
On Sat, Jan 27, 2007 at 07:22:13PM -0600, Neo wrote:
> On my machine the configure script assumes that I was equipped with
> pread64. But I got an EIO from that system call. Then, I disable the
> "HAS_PREAD64" macro, I got an invalid argument error from the read
> system call. (in file linux-nat.c)
>
> Now, I am curious about the potential fix for this problem.
>
> 1) Regardless the HAS_PREAD64 macro, it seems that it will definitely
> fail on 32bit machine without large offset support due to that large
> offset as 0xFFFE0000.
> 2) For those machines probably configured with pread64, it seems that
> the function does not working well. At least the checking in the
> ./gdb/configure is not that strict.
No - these shouldn't matter. Glibc is supposed to support pread64 even
if the syscall is missing. We're just making sure the system library
has compile time support for pread64; runtime support is its
responsibility. See __emulate_pread64 in glibc.
> 3) Can we just drop the AT_SYSINFO_EHDR that we found in function
> add_vsyscall_page?
I suspect it's actually a kernel bug that you can't read the vsyscall
page. You should be able to; for instance, I can using 32-bit
emulation on a 64-bit system. Unfortunately, I don't have a 32-bit
kernel running anywhere I can test.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-01-28 14:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-28 1:22 Neo
2007-01-28 14:02 ` Daniel Jacobowitz [this message]
2007-01-28 18:11 ` Neo
2007-01-28 18:18 ` Daniel Jacobowitz
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=20070128140243.GB7486@nevyn.them.org \
--to=drow@false.org \
--cc=cjia@cse.unl.edu \
--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