From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2635 invoked by alias); 1 Mar 2006 01:36:01 -0000 Received: (qmail 2625 invoked by uid 22791); 1 Mar 2006 01:36:01 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 01 Mar 2006 01:35:59 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FEGFl-0003BB-N6 for gdb@sources.redhat.com; Wed, 01 Mar 2006 02:35:48 +0100 Received: from ip127.bb146.pacific.net.hk ([202.64.146.127]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Mar 2006 02:35:45 +0100 Received: from tausq by ip127.bb146.pacific.net.hk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Mar 2006 02:35:45 +0100 To: gdb@sources.redhat.com From: Randolph Chung Subject: Re: info symbol can crash GDB Date: Wed, 01 Mar 2006 01:36:00 -0000 Message-ID: References: <17412.57628.765837.278704@kahikatea.snap.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 1.5 (Windows/20051201) In-Reply-To: <17412.57628.765837.278704@kahikatea.snap.net.nz> X-IsSubscribed: yes 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-03/txt/msg00000.txt.bz2 Nick Roberts wrote: > In some cases if the argument to info symbol isn't a number, it causes a > segmentation fault: > > (gdb) inf sym 0x8049bb8. > Segmentation fault (core dumped) Which version of gdb is this? With gdb-6.3 from Debian: (gdb) inf sym 0x8049bb8. Invalid number "0x8049bb8.". (gdb) inf sym 0x8049bb8 No symbol matches 0x8049bb8. With GNU gdb 6.4.50.20060224-cvs: (gdb) inf sym 0x8049bb8. Unexpected type encountered for floating constant. (gdb) info sym 0x8049bb8 No symbol matches 0x8049bb8. Can you provide a backtrace on the corefile generated? randolph