From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs Subject: Re: 23.0.60; Seg fault in xfaces.c at line 6703 (Emacs.app on GNUstep) Date: Mon, 04 Feb 2008 08:47:12 +0000 Message-ID: <47A6D110.2010206@gnu.org> References: <5c3f50e8df2b05f7f2e7b1843d425e14@lagorda> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1202114948 14032 80.91.229.12 (4 Feb 2008 08:49:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Feb 2008 08:49:08 +0000 (UTC) Cc: Emacs bugs , Dan Nicolaescu To: Chris Hall Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 04 09:49:29 2008 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 1JLx12-0007zq-TW for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Feb 2008 09:49:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLx0a-0008Mn-VM for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Feb 2008 03:48:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JLwz2-00073U-On for bug-gnu-emacs@gnu.org; Mon, 04 Feb 2008 03:47:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JLwz0-00071K-78 for bug-gnu-emacs@gnu.org; Mon, 04 Feb 2008 03:47:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLwyz-000711-Qd for bug-gnu-emacs@gnu.org; Mon, 04 Feb 2008 03:47:17 -0500 Original-Received: from mk-outboundfilter-4.mail.uk.tiscali.com ([212.74.114.32]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JLwz0-0000zg-BM for bug-gnu-emacs@gnu.org; Mon, 04 Feb 2008 03:47:18 -0500 Original-X-Trace: 9397/mk-outboundfilter-2.mail.uk.tiscali.com/F2S/$ACCEPTED/freedom2Surf-customers/83.67.23.108 X-SBRS: None X-RemoteIP: 83.67.23.108 X-IP-MAIL-FROM: jasonr@gnu.org X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAJlfpkdTQxds/2dsb2JhbAAIqlc Original-Received: from i-83-67-23-108.freedom2surf.net (HELO [127.0.0.1]) ([83.67.23.108]) by smtp.f2s.tiscali.co.uk with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Feb 2008 08:47:16 +0000 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: <5c3f50e8df2b05f7f2e7b1843d425e14@lagorda> X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:17469 Archived-At: Chris Hall wrote: > On 2008-02-03 10:52:46 -1000 Jason Rumney wrote: > >> If it is a bug to have 0 in that field, why would you hide the bug by >> avoiding a crash when it is 0? > > So it could terminate gracefully while reporting that it had a 0 in > that field, along with any other available information that might > prove useful in helping to solve the problem? Maybe offer to run in > text mode with that information made available in a buffer with a bug > report? > > I didn't mention anything about 'hiding' it, did I? > > With the patch I supplied, at least the user knows there is an issue > with realizing the default face, rather than SIGSEGV (11). Since this is a programming error in an internal structure, in a development version of the code, it is letting the developer know there is an error. Developers have debuggers, they don't need code to catch bugs and exit gracefully. To write code to catch every potential NULL pointer exception in the internal structures would make Emacs bloated and slow.