linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@cs.anu.edu.au>
To: drow@false.org
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: Vger broken w.r.t. gdb
Date: Fri, 30 Jul 1999 15:24:26 +1000	[thread overview]
Message-ID: <199907300524.PAA03967@tango.anu.edu.au> (raw)
In-Reply-To: <19990730011819.A364@them.org> (message from Daniel Jacobowitz on Fri, 30 Jul 1999 01:18:20 -0400)


Daniel Jacobowitz <drow@false.org> wrote:

> Now I'm really confused.
> 
> >From my readings it appears that we should only reach this point if a
> trap instruction was encountered.  But from what I can see no trap
> instruction exists at that address.  At

A common thing that gdb does is to put trap instructions into the
memory image of a process being debugged.  It sounds to me as though,
with all the page cache and memory management changes that have gone
on in 2.3, we now have the undesirable situation that a trap
instruction put in by gdb hasn't stayed confined to the process being
debugged but has leaked into the copy of the page that is being used
by other processes.

> Perhaps something having to do with instruction caching by the
> processor?  This is a completely wild guess, but if a trap instruction
> was encountered, and then gdb cleared it, and the instruction cache was
> not flushed...

Well, whatever the problem is, it's something new in 2.3, it's not a
long-standing omission of some cache flushing stuff.  It's far more
likely to be something in the ptrace syscall code which hasn't been
correctly updated to cope with the recent page cache and VM changes.

Paul.

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

  reply	other threads:[~1999-07-30  5:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-29  2:26 Vger broken w.r.t. gdb Daniel Jacobowitz
1999-07-29  4:00 ` Paul Mackerras
1999-07-29  5:38   ` Daniel Jacobowitz
1999-07-29  5:48     ` Paul Mackerras
1999-07-30  5:18       ` Daniel Jacobowitz
1999-07-30  5:24         ` Paul Mackerras [this message]
1999-07-30  6:03           ` Daniel Jacobowitz
1999-07-30  7:07           ` nasty powerpc mmap problems (was: Re: Vger broken w.r.t. gdb) Daniel Jacobowitz
1999-08-02  2:45             ` 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=199907300524.PAA03967@tango.anu.edu.au \
    --to=paulus@cs.anu.edu.au \
    --cc=Paul.Mackerras@cs.anu.edu.au \
    --cc=drow@false.org \
    --cc=linuxppc-dev@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).