Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Bill Gatliff <bgat@billgatliff.com>
Cc: gdb@sourceware.org, linuxppc-embedded@ozlabs.org
Subject: Re: Gdbserver syscall clobber
Date: Mon, 16 Jul 2007 19:35:00 -0000	[thread overview]
Message-ID: <20070716155348.GA5281@caradoc.them.org> (raw)
In-Reply-To: <469B922D.3050701@billgatliff.com>

On Mon, Jul 16, 2007 at 10:43:41AM -0500, Bill Gatliff wrote:
> recv(4, 0x7ffffd60, 1, 0)               = ? ERESTARTSYS (To be restarted)
> --- SIGIO (I/O possible) @ 0 (0) ---
> syscall_4294966784(0xa, 0x7ffffd34, 0x1, 0, 0x1008a3c7, 0x1008b5a3, 0x1008b5a4, 

That's -512, a.k.a. the errno value used by syscall restarting.  I'd
say your glibc does not obey the restartable syscall convention used
by your kernel, and when it tries to restart the syscall the errno
value is not being replaced by the syscall number.  Check the assembly
for recv.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2007-07-16 15:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-16 15:53 Bill Gatliff
2007-07-16 19:35 ` Daniel Jacobowitz [this message]
2007-07-18 18:31   ` Bill Gatliff
2007-07-18 18:33     ` Daniel Jacobowitz
2007-07-23 16:15       ` Bill Gatliff
2007-07-23 16:19         ` Daniel Jacobowitz
2007-07-26 20:01           ` Bill Gatliff
2007-07-23 16:59         ` Andreas Schwab

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=20070716155348.GA5281@caradoc.them.org \
    --to=drow@false.org \
    --cc=bgat@billgatliff.com \
    --cc=gdb@sourceware.org \
    --cc=linuxppc-embedded@ozlabs.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