From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#6621: Emacs crash when trying to report emacs crash Date: Fri, 23 Jul 2010 21:38:30 +0900 Message-ID: References: <83d3urshi9.fsf@gnu.org> <834og3s1r0.fsf@gnu.org> <83pqyqqx9y.fsf@gnu.org> <83k4oxhk1c.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1279891250 30416 80.91.229.12 (23 Jul 2010 13:20:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Jul 2010 13:20:50 +0000 (UTC) Cc: 6621@debbugs.gnu.org To: Yair F Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 23 15:20:48 2010 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.69) (envelope-from ) id 1OcIB8-00085r-CZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jul 2010 15:20:42 +0200 Original-Received: from localhost ([127.0.0.1]:33679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcHyr-00058s-QB for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jul 2010 09:08:01 -0400 Original-Received: from [140.186.70.92] (port=38821 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcHyK-0004xa-2N for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2010 09:07:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OcHyI-0008St-A4 for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2010 09:07:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55573) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcHyI-0008So-6u for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2010 09:07:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OcHWo-0003Nj-1k; Fri, 23 Jul 2010 08:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kenichi Handa Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Jul 2010 12:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6621 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6621-submit@debbugs.gnu.org id=B6621.127988871912990 (code B ref 6621); Fri, 23 Jul 2010 12:39:02 +0000 Original-Received: (at 6621) by debbugs.gnu.org; 23 Jul 2010 12:38:39 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcHWQ-0003NT-Nk for submit@debbugs.gnu.org; Fri, 23 Jul 2010 08:38:38 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcHWO-0003NM-32 for 6621@debbugs.gnu.org; Fri, 23 Jul 2010 08:38:37 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id o6NCcVPa011127; Fri, 23 Jul 2010 21:38:31 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id o6NCcVFj017806; Fri, 23 Jul 2010 21:38:31 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id o6NCcUG4014560; Fri, 23 Jul 2010 21:38:30 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1OcHWI-0002J0-BN; Fri, 23 Jul 2010 21:38:30 +0900 In-Reply-To: (message from Yair F on Thu, 22 Jul 2010 22:55:24 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 23 Jul 2010 08:39:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:38819 Archived-At: In article , Yair F writes: > Since Handa-san is appearnly unavailable I tried to investigate the > crash myself. > The problem that I know nothing about emacs' structure. > All I can do is send the debug session. If you think that you can > instruct me more on how to debug it let me know. > I'll try to get something more meaningful. Thank you, and sorry for the late response. I've been busy for preparing for the next Monday's presentation. I found a suspicious code in Ffont_shape_gstring, and the attached patch will fix the bug. Could you please try it? I have not yet committed it because I have not yet fully traced the impact of the change to the other places.. === modified file 'src/font.c' --- src/font.c 2010-07-14 03:40:47 +0000 +++ src/font.c 2010-07-23 12:31:43 +0000 @@ -4492,6 +4492,8 @@ } if (i == 3 || XINT (n) == 0) return Qnil; + if (XINT (n) < LGSTRING_GLYPH_LEN (gstring)) + LGSTRING_SET_GLYPH (gstring, XINT (n), Qnil); glyph = LGSTRING_GLYPH (gstring, 0); from = LGLYPH_FROM (glyph); --- Kenichi Handa handa@m17n.org