From: "Boehm, Hans" <hans_boehm@hp.com>
To: linux-ia64@vger.kernel.org
Subject: RE: [Linux-ia64] mprotect problem
Date: Fri, 07 Dec 2001 20:13:26 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590698805649@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590698805634@msgid-missing>
What's the instruction that's faulting and what are the contents of the
register used for addressing? You should easily be able to get that out of
gdb.
I assume the printf in the handler is using an incorrect (32 bit int) format
to print the address. It should be using something like %p. That's
probably irrelevant to the real problem.
Hans
> -----Original Message-----
> From: Hoeflinger, Jay P [mailto:jay.p.hoeflinger@intel.com]
> Sent: Friday, December 07, 2001 11:47 AM
> To: 'davidm@hpl.hp.com'; Hoeflinger, Jay P
> Cc: 'Boehm, Hans'; 'n0ano@indstorage.com'; 'linux-ia64@linuxia64.org'
> Subject: RE: [Linux-ia64] mprotect problem
>
>
> OK, here's a trace. The program is multi-threaded, so I used
> strace -f. Fortunately the problem happens almost right away.
> At the very end, you can see the infinite loop starting.
> One thing I noticed is that our printf's in the segv handler
> are printing the fault
> address as 20004000 while the mprotect is giving the address
> as 6000000020004000. This last address seems to be correct in
> relation to the original mprotect for the shared heap, which was
>
> mprotect(0x6000000020000000, 268435456, PROT_NONE) = 0
>
> Please let me know if this tells you anything interesting.
>
> Jay
>
> -----Original Message-----
> From: David Mosberger [mailto:davidm@hpl.hp.com]
> Sent: Friday, December 07, 2001 11:35 AM
> To: Hoeflinger, Jay P
> Cc: 'Boehm, Hans'; 'n0ano@indstorage.com'; 'linux-ia64@linuxia64.org'
> Subject: RE: [Linux-ia64] mprotect problem
>
>
> Jay,
>
> If you don't have a minimal test program or can't share the source
> code, it might be useful to collect a syscall trace. That way, we
> could see what addresses and sizes are involved in the mprotect()
> call. Something like:
>
> strace -o /tmp/out PROGNAME
>
> should do (I'm assuming your program is not multithreaded; if it is,
> you'd need to use the -f option and make sure you're running the
> latest version of strace).
>
> If the resulting output is very big, you won't be able to send it to
> the mailing list. You can either trim the output or just make sure
> you mail it to me directly (davidm@hpl.hp.com).
>
> Thanks,
>
> --david
>
>
next prev parent reply other threads:[~2001-12-07 20:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-06 23:56 [Linux-ia64] mprotect problem Hoeflinger, Jay P
2001-12-07 0:11 ` n0ano
2001-12-07 14:53 ` Hoeflinger, Jay P
2001-12-07 15:13 ` n0ano
2001-12-07 15:18 ` Hoeflinger, Jay P
2001-12-07 16:10 ` David Mosberger
2001-12-07 16:23 ` Hoeflinger, Jay P
2001-12-07 17:34 ` David Mosberger
2001-12-07 19:47 ` Hoeflinger, Jay P
2001-12-07 20:13 ` Boehm, Hans [this message]
2001-12-07 20:27 ` David Mosberger
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=marc-linux-ia64-105590698805649@msgid-missing \
--to=hans_boehm@hp.com \
--cc=linux-ia64@vger.kernel.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