From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15046 invoked by alias); 28 Apr 2006 14:21:22 -0000 Received: (qmail 15036 invoked by uid 22791); 28 Apr 2006 14:21:22 -0000 X-Spam-Check-By: sourceware.org Received: from mail.artimi.com (HELO mail.artimi.com) (217.40.213.68) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 28 Apr 2006 14:21:20 +0000 Received: from mail.artimi.com ([192.168.1.3]) by mail.artimi.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 28 Apr 2006 15:21:18 +0100 Received: from rainbow ([192.168.1.165]) by mail.artimi.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 28 Apr 2006 15:21:17 +0100 From: "Dave Korn" To: "'Daniel Jacobowitz'" Cc: "'Shaun Jackman'" , Subject: RE: x/i 0x204c5ac. seg fault Date: Fri, 28 Apr 2006 14:42:00 -0000 Message-ID: <008d01c66acf$039b4600$a501a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20060428131246.GA26671@nevyn.them.org> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00328.txt.bz2 On 28 April 2006 14:13, Daniel Jacobowitz wrote: > On Fri, Apr 28, 2006 at 11:25:20AM +0100, Dave Korn wrote: >> (gdb) x/i 0x204c5ac >> 0x204c5ac: Cannot access memory at address 0x204c5ac > > You missed the trailing ".". Oooops! Copy'n'paste error -vs- word-selection. Nonetheless: dk@rainbow /usr/build/obj-gdb/gdb> ./gdb GNU gdb 6.4.50.20060329-cvs Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-cygwin". Setting up the environment for debugging gdb. No symbol table is loaded. Use the "file" command. No symbol table is loaded. Use the "file" command. /usr/build/obj-gdb/gdb/.gdbinit:8: Error in sourced command file: No breakpoint number 0. (gdb) x/i 0x204c5ac. Invalid number "0x204c5ac.". (gdb) :-) > The problem arises for two reasons. > > 1. c-exp.y:parse_number fails to handle sscanf errors; it doesn't > issue an error, but leaves the type unset. > > 2. The system sscanf in glibc apparently rejects hex float. That'll be the reason I can't reproduce it. I'm on cygwin, hence newlib rather than glibc. cheers, DaveK -- Can't think of a witty .sigline today....