From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20376 invoked by alias); 16 Jul 2007 15:53:55 -0000 Received: (qmail 20366 invoked by uid 22791); 16 Jul 2007 15:53:55 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 16 Jul 2007 15:53:51 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 063B4982C3; Mon, 16 Jul 2007 15:53:51 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id D821A9817A; Mon, 16 Jul 2007 15:53:50 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1IAStQ-0001Ot-Uu; Mon, 16 Jul 2007 11:53:48 -0400 Date: Mon, 16 Jul 2007 19:35:00 -0000 From: Daniel Jacobowitz To: Bill Gatliff Cc: gdb@sourceware.org, linuxppc-embedded@ozlabs.org Subject: Re: Gdbserver syscall clobber Message-ID: <20070716155348.GA5281@caradoc.them.org> Mail-Followup-To: Bill Gatliff , gdb@sourceware.org, linuxppc-embedded@ozlabs.org References: <469B922D.3050701@billgatliff.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <469B922D.3050701@billgatliff.com> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-07/txt/msg00131.txt.bz2 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