From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24957 invoked by alias); 26 Aug 2002 20:54:09 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 24852 invoked from network); 26 Aug 2002 20:54:09 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 26 Aug 2002 20:54:09 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17jRoS-0001Kj-00; Mon, 26 Aug 2002 16:54:20 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17jQtB-0003fL-00; Mon, 26 Aug 2002 16:55:09 -0400 Date: Mon, 26 Aug 2002 13:54:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis Cc: gdb@sources.redhat.com Subject: Re: Bizarre internal errors in regcache Message-ID: <20020826205509.GB12224@nevyn.them.org> Mail-Followup-To: Mark Kettenis , gdb@sources.redhat.com References: <20020826185639.GA19722@nevyn.them.org> <20020826195247.GA22760@nevyn.them.org> <200208262028.g7QKS88T001023@elgar.kettenis.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200208262028.g7QKS88T001023@elgar.kettenis.dyndns.org> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-08/txt/msg00336.txt.bz2 On Mon, Aug 26, 2002 at 10:28:08PM +0200, Mark Kettenis wrote: > Date: Mon, 26 Aug 2002 15:52:47 -0400 > From: Daniel Jacobowitz > > On Mon, Aug 26, 2002 at 02:56:39PM -0400, Daniel Jacobowitz wrote: > > I see this error on my laptop but not on my desktop; both current trees, > > both rebuilt from scratch, both i386-linux. Any ideas? > > [ snip ] > > My desktop has SSE, my laptop doesn't, it seems. We can't call > supply_register on an MMX register if we don't have any. > dummy_sse_registers seems to be the culprit. > > Hmm, and my desktop sort of pretends it has the SSE registers. > > Anyway, I'm pretty certain that the problem is caused by the fact that > the binary produced by the gdb.asm test isn't branded. Therefore GDB > doesn't select the Linux OS/ABI but the generic OS/ABI which doesn't > include the SSE regs. Since you're running on Linux, the native code > tries to supply these registers anyway. i387_supply_fxsave() does > deal with this gracefully, but dummy_sse_regs() doesn't. > > Can you try the attached patch? That patch does it for me. This also shows up on core dumps, if you don't include a binary, which is where I first noticed it. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer