Subject: bug#1337: crash on going into non-existing dir with find-file

From: xah lee <[email-masked]>
Date: Fri, 14 Nov 2008 18:22:31 -0800

Thanks for the reply.

after some debugging, it turns out that problem is tabbar mode.

Here's the steps:

• start emacs by
/Applications/Emacs.app/Contents/MacOS/Emacs -Q

• evaluate the following
(autoload 'tabbar-mode "tabbar" "Show tab bars." t)
(tabbar-mode 1)
presuming the file is in your load path.

• now, dired into root dir. C-x C-f / RET

• emacs crashes.

The version of tabbar i'm using is:

;; Author: David Ponce <[email-masked]>
;; Maintainer: David Ponce <[email-masked]>
;; 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  
interested, email me and i can provide more debugging info.

Thanks.

   Xah
∑ http://xahlee.org/

☄

On Nov 14, 2008, at 5:21 PM, YAMAMOTO Mitsuharu wrote:

>>>>> On Fri, 14 Nov 2008 12:48:23 -0500, Chong Yidong  
>>>>> <[email-masked]> said:

>> 1. eval (find-file "file:///Users/xah/web/emacs/ 
>> apple_pc_kb_diff.html")
>> then you'll go into a empty buffer.
>>
>> 2. now M-x find-file, hit Enter. Now i expect to go to the dir this
>> file is located. (note that the file doesn't exist yet)
>>
>> 3. emacs crashed.
>>
>> am pretty sure this is 100% reproducible. It crashed 3 times on me.
>>
>> In GNU Emacs 22.2.1 (powerpc-apple-darwin8.11.0, Carbon Version  
>> 1.6.0)
>> of 2008-04-05 on g5.tokyo.stp.isas.jaxa.jp

> I can't reproduce this on GNU Emacs 23.0.60.19 (i686-pc-linux-gnu,  
> GTK+
> Version 2.14.4) of 2008-11-13.  This is probably either an Emacs 22  
> only
> bug or a Emacs Carbon bug.

I can't reproduce it with Emacs 22.3 Carbon on Mac OS X 10.5.5, either.

For further debugging, the following information would be helpful.

1. A crash log in ~/Library/CrashReporter/ if available.
2. A concrete procedure to reproduce the crash starting with
    ".../Emacs.app/Contents/MacOS/Emacs -Q" from the command line.
3. Whether it is reproducible with Emacs 22.3 Carbon, preferably with
    no modifications unlike Carbon Emacs Package or Aquamacs Emacs.

				     YAMAMOTO Mitsuharu
				[email-masked]

☄