From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#1337: crash on going into non-existing dir with find-file Date: Sat, 15 Nov 2008 12:05:16 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <87fxlujj14.fsf@stupidchicken.com> Reply-To: YAMAMOTO Mitsuharu , 1337@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1226719827 2188 80.91.229.12 (15 Nov 2008 03:30:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Nov 2008 03:30:27 +0000 (UTC) Cc: 1337@emacsbugs.donarmstrong.com, Chong Yidong To: xah lee Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 15 04:31:28 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 1L1Bsc-0002v4-V5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Nov 2008 04:31:27 +0100 Original-Received: from localhost ([127.0.0.1]:52246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1BrU-0000K4-Nv for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Nov 2008 22:30:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L1BrR-0000Jo-89 for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2008 22:30:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L1BrP-0000JZ-M9 for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2008 22:30:12 -0500 Original-Received: from [199.232.76.173] (port=48385 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1BrP-0000JW-Fx for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2008 22:30:11 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:46546) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L1BrP-00023A-5P for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2008 22:30:11 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAF3U8fK011041; Fri, 14 Nov 2008 19:30:08 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mAF3F22F006993; Fri, 14 Nov 2008 19:15:02 -0800 X-Loop: don@donarmstrong.com Resent-From: YAMAMOTO Mitsuharu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 15 Nov 2008 03:15:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1337 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1337-submit@emacsbugs.donarmstrong.com id=B1337.12267183205740 (code B ref 1337); Sat, 15 Nov 2008 03:15:02 +0000 Original-Received: (at 1337) by emacsbugs.donarmstrong.com; 15 Nov 2008 03:05:20 +0000 Original-Received: from mathmail.math.s.chiba-u.ac.jp (mathmail.math.s.chiba-u.ac.jp [133.82.132.2]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAF35GUZ005648 for <1337@emacsbugs.donarmstrong.com>; Fri, 14 Nov 2008 19:05:18 -0800 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 5BD032C44; Sat, 15 Nov 2008 12:05:16 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 =?UTF-8?Q?(Shij=C5=8D)?= APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 14 Nov 2008 22:30:12 -0500 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:22354 Archived-At: >>>>> On Fri, 14 Nov 2008 18:22:31 -0800, xah lee said: > Thanks for the reply. > after some debugging, it turns out that problem is tabbar mode. > Here's the steps: > =E2=80=A2 start emacs by > /Applications/Emacs.app/Contents/MacOS/Emacs -Q > =E2=80=A2 evaluate the following > (autoload 'tabbar-mode "tabbar" "Show tab bars." t) > (tabbar-mode 1) > presuming the file is in your load path. > =E2=80=A2 now, dired into root dir. C-x C-f / RET > =E2=80=A2 emacs crashes. > The version of tabbar i'm using is: > ;; Author: David Ponce > ;; Maintainer: David Ponce > ;; Created: 25 February 2003 > ;; Keywords: convenience > ;; Revision: $Id: tabbar.el,v 1.4 2008/06/11 22:28:24 davidswelt Exp $ > (defconst tabbar-version "2.0") > it's not part GNU emacs so prob not relevant here... but if any is =20 > interested, email me and i can provide more debugging info. Thanks. I could reproduce it with a slightly different version of tabbar.el. I think the patch below will fix it. The other terms (X11, W32) need a similar change. It may not happen on X11 using the above procedure, but it has something to do with drawing with overhangs, and whether the crash occurs or not depends on the metric of the used font. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp Index: src/macterm.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/emacs/emacs/src/Attic/macterm.c,v retrieving revision 1.214.2.31 diff -c -p -r1.214.2.31 macterm.c *** src/macterm.c 2 Sep 2008 08:19:06 -0000 1.214.2.31 --- src/macterm.c 15 Nov 2008 02:57:28 -0000 *************** x_draw_glyph_string (s) *** 3777,3783 **** xassert (s->next->img =3D=3D NULL); x_set_glyph_string_gc (s->next); x_set_glyph_string_clipping (s->next); ! x_draw_glyph_string_background (s->next, 1); } =20 /* Set up S->gc, set clipping and draw S. */ --- 3777,3786 ---- xassert (s->next->img =3D=3D NULL); x_set_glyph_string_gc (s->next); x_set_glyph_string_clipping (s->next); ! if (s->next->first_glyph->type =3D=3D STRETCH_GLYPH) ! x_draw_stretch_glyph_string (s->next); ! else ! x_draw_glyph_string_background (s->next, 1); } =20 /* Set up S->gc, set clipping and draw S. */