From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: Re: emacs-22.1 coredumps on HPUX 11i Date: Wed, 15 Aug 2007 20:43:04 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187224776 30779 80.91.229.12 (16 Aug 2007 00:39:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Aug 2007 00:39:36 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: "Dimitry Kloper" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 16 02:39:32 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ILTOe-0002wK-K0 for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Aug 2007 02:39:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILTOe-0001oB-7s for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Aug 2007 20:39:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ILTOb-0001nw-CS for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2007 20:39:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ILTOZ-0001nF-Ow for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2007 20:39:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILTOZ-0001nC-Jl for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2007 20:39:27 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ILTOZ-0007I1-A3 for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2007 20:39:27 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1ILTS4-0001Sp-HR; Wed, 15 Aug 2007 20:43:04 -0400 X-Spook: warfare supercomputer Kh-11 counter intelligence Honduras X-Ran: t.|ObG((nNGy5F?X"q>"_RIFZac9!) (Dimitry Kloper's message of "Wed, 15 Aug 2007 17:51:49 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16366 Archived-At: "Dimitry Kloper" wrote: > I apologise in case this bug was already reported. Actually it was, but this is a very timely re-posting, so never mind! :) > The problem appears to be in the uninitialized static pointers > default_orig_pair, default_set_foreground, default_set_background at > the very beginning of function tty_default_color_capabilities() in > term.c. > > Indeed, simply initializing those to NULL values solves the core dump. Can you test a different fix please: rather than initializing to NULL, move the declarations of the six static variables above the function, ie so it looks like: static int default_max_colors; static int default_max_pairs; static int default_no_color_video; static char *default_orig_pair; static char *default_set_foreground; static char *default_set_background; static void tty_default_color_capabilities (save) int save;