From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#14272: 24.3.50; crash on loading theme Date: Fri, 26 Apr 2013 10:51:39 +0300 Message-ID: <83vc79u3uc.fsf@gnu.org> References: <87ehdy0yki.fsf@yagnesh.org> <83y5c5u8ux.fsf@gnu.org> <87y5c5zrne.fsf@yagnesh.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1366962789 20402 80.91.229.3 (26 Apr 2013 07:53:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Apr 2013 07:53:09 +0000 (UTC) Cc: 14272@debbugs.gnu.org To: Yagnesh Raghava Yakkala Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 26 09:53:13 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UVdSy-00022O-Bs for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Apr 2013 09:53:12 +0200 Original-Received: from localhost ([::1]:43544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVdSy-0007UY-1t for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Apr 2013 03:53:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVdSt-0007UI-HX for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2013 03:53:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVdSp-0007Qk-KU for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2013 03:53:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVdSp-0007QY-Gp for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2013 03:53:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UVdSn-0002aQ-WC for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2013 03:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Apr 2013 07:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14272 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14272-submit@debbugs.gnu.org id=B14272.13669627609868 (code B ref 14272); Fri, 26 Apr 2013 07:53:01 +0000 Original-Received: (at 14272) by debbugs.gnu.org; 26 Apr 2013 07:52:40 +0000 Original-Received: from localhost ([127.0.0.1]:44146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UVdSR-0002Z5-Gb for submit@debbugs.gnu.org; Fri, 26 Apr 2013 03:52:39 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:62747) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UVdSM-0002YY-RI for 14272@debbugs.gnu.org; Fri, 26 Apr 2013 03:52:36 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MLU00500R4WW800@a-mtaout22.012.net.il> for 14272@debbugs.gnu.org; Fri, 26 Apr 2013 10:51:52 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MLU004LZR6GWR90@a-mtaout22.012.net.il>; Fri, 26 Apr 2013 10:51:52 +0300 (IDT) In-reply-to: <87y5c5zrne.fsf@yagnesh.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:73713 Archived-At: > From: Yagnesh Raghava Yakkala > Cc: 14272@debbugs.gnu.org > Date: Fri, 26 Apr 2013 16:18:29 +0900 > > Backtrace is attached. > > backtrace: > #0 0x000000000067c13d in compute_fringe_widths (f=0x11c1418, redraw=1) at fringe.c:1368 > left_wid = 8 > right_wid = 8 > font_wid = 0 > conf_wid = 16 > cols = 0 > real_wid = 12846194 > o_left = 11 > o_right = 11 > o_cols = 2 > left_fringe = 12846194 > right_fringe = 12846194 > left_fringe_width = 8 > right_fringe_width = 8 > #1 0x0000000000506e83 in x_new_font (f=0x11c1418, font_object=19256893, fontset=23) at xterm.c:7913 > font = 0x125d638 The crash is caused by division by zero, here: int font_wid = FRAME_COLUMN_WIDTH (f); int cols = (left_wid + right_wid + font_wid-1) / font_wid; <<<<<<<< most probably because font->average_width is zero, because FRAME_COLUMN_WIDTH gets its value for font's average_width. Please do this, after Emacs crashes under GD: (gdb) frame 1 (gdb) p *font (gdb) pp font_object If the "pp" command doesn't work, type (gdb) source /path/to/emacs/src/.gdbinit and then try the "pp" command again. Also, if it is possible to reconfigure Emacs with --enable-checking and rebuild, please try this recipe in that build. I get assertion violation here: static int set_lface_from_font (struct frame *f, Lisp_Object lface, Lisp_Object font_object, int force_p) { Lisp_Object val; struct font *font = XFONT_OBJECT (font_object); /* Set attributes only if unspecified, otherwise face defaults for new frames would never take effect. If the font doesn't have a specific property, set a normal value for that. */ if (force_p || UNSPECIFIEDP (LFACE_FAMILY (lface))) { Lisp_Object family = AREF (font_object, FONT_FAMILY_INDEX); ASET (lface, LFACE_FAMILY_INDEX, SYMBOL_NAME (family)); } if (force_p || UNSPECIFIEDP (LFACE_FOUNDRY (lface))) { Lisp_Object foundry = AREF (font_object, FONT_FOUNDRY_INDEX); ASET (lface, LFACE_FOUNDRY_INDEX, SYMBOL_NAME (foundry)); } if (force_p || UNSPECIFIEDP (LFACE_HEIGHT (lface))) { int pt = PIXEL_TO_POINT (font->pixel_size * 10, FRAME_RES_Y (f)); eassert (pt > 0); <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ASET (lface, LFACE_HEIGHT_INDEX, make_number (pt)); } because font->pixel_size is zero, something that Emacs cannot possibly tolerate. For the record, the value of lface I get is this: [face "Arial" "outline" normal 1 normal normal nil nil "#e8e8d3" "#151515" nil nil nil nil # nil "-outline-Arial-normal-normal-normal-sans-13-*-*-*-p-*-fontset-auto1"] However, I'm not sure my font setup is similar enough to yours, so it would be important to know if you get the same assertion violation. In any case, the problem seems to be with font specification, so I hope someone who knows more than I do about that will chime in.