From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30550 invoked by alias); 11 Jul 2006 22:01:28 -0000 Received: (qmail 30541 invoked by uid 22791); 11 Jul 2006 22:01:27 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 11 Jul 2006 22:01:25 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.4/8.13.4) with ESMTP id k6BM0otk007795; Wed, 12 Jul 2006 00:00:50 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.6/8.13.6) with ESMTP id k6BM0nlI002797; Wed, 12 Jul 2006 00:00:49 +0200 (CEST) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.6/8.13.6/Submit) id k6BM0nQT004757; Wed, 12 Jul 2006 00:00:49 +0200 (CEST) Date: Tue, 11 Jul 2006 22:01:00 -0000 Message-Id: <200607112200.k6BM0nQT004757@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: drow@false.org CC: gdb-patches@sourceware.org In-reply-to: <20060709203557.GA21606@nevyn.them.org> (message from Daniel Jacobowitz on Sun, 9 Jul 2006 16:35:57 -0400) Subject: Re: [rft/symtab] Check the sizes of minimal symbols References: <20060707035420.GA8071@nevyn.them.org> <200607092026.k69KQKQg027664@elgar.sibelius.xs4all.nl> <20060709203557.GA21606@nevyn.them.org> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00097.txt.bz2 > Date: Sun, 9 Jul 2006 16:35:57 -0400 > From: Daniel Jacobowitz > > > Program received signal SIGSEGV, Segmentation fault. > > 0x1c0066a8 in lookup_minimal_symbol_by_pc_section (pc=469800299, > > section=0x800e95fc) at ../../../src/gdb/gdb/minsyms.c:535 > > 535 if (MSYMBOL_SIZE (&msymbol[hi]) != 0 > > I'm just guessing here but... is hi == -1 when that happens? Does > adding "hi >= 0 &&" to the front of that if statement help? Yes it does. No regressions on OpenBSD/i386. I'll try some of the other architectures as well later this week. Any in particular that you'd like to see tested? Mark