From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14148 invoked by alias); 3 Nov 2003 21:00:14 -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 14136 invoked from network); 3 Nov 2003 21:00:13 -0000 Received: from unknown (HELO zenia.home) (12.223.225.216) by sources.redhat.com with SMTP; 3 Nov 2003 21:00:13 -0000 Received: by zenia.home (Postfix, from userid 5433) id E145F207B3; Mon, 3 Nov 2003 15:59:41 -0500 (EST) To: Daniel Jacobowitz Cc: gdb@sources.redhat.com Subject: Re: Macro code crasher on re-run References: <20031103040751.GA30979@nevyn.them.org> <20031103045601.GA32557@nevyn.them.org> From: Jim Blandy Date: Mon, 03 Nov 2003 21:00:00 -0000 In-Reply-To: <20031103045601.GA32557@nevyn.them.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-11/txt/msg00014.txt.bz2 Daniel Jacobowitz writes: > > I don't follow. All default_macro_scope's callers check for null > > return; it's documented to return zero at times. So you must be > > talking about that code in sal_macro_scope itself. Line 39 refers to > > sal.symtab, initialized by line 115, so you must be talking about line > > 40. But sal.symtab must be non-zero, or else we wouldn't reach the > > right operand of the ||. > > > > Or should I sleep and try again? > > > > Right. sal.symtab is nonzero. sal.symtab->macro_table, however, is > uninitialized. The short-circuit if on line 40 does not trigger, but > the remainder of sal_macro_scope assumes that sal.symtab->macro_table > is valid. > > In my case it happens to be 0xB. Every symtab's macro_table field should be initialized, at least to zero. Which symtab is it? Who creates it?