GNU bug report logs - #1337
crash on going into non-existing dir with find-file

Previous Next

Package: emacs;

Reported by: xah lee <xah <at> xahlee.org>

Date: Thu, 13 Nov 2008 14:10:03 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: xah lee <xah <at> xahlee.org>
To: bug-gnu-emacs <at> gnu.org
Subject: crash on going into non-existing dir with find-file
Date: Thu, 13 Nov 2008 06:04:08 -0800
 using a
This causes a hard crash.

Steps:

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.

The problem occured because i was trying to open a local file, where  
the file path happend to be a url scheme path. Apparently, find-file  
does not recognize url scheme local files, but find-file-at-point  
auto launch browser when the file is url scheme. In any case, i got  
confused a bit because i know the file exist but i got a empty  
buffer. So i tried to go into th dir to see where exactly emacs think  
is the path, then crash.

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
Windowing system distributor `Apple Inc.', version 10.4.11
configured using `configure  '--prefix=/Applications/Emacs.app/ 
Contents/Resources' '--with-carbon' '--without-x' '--libexecdir=/ 
Volumes/Emacs/Emacs.app/Contents/MacOS/libexec' 'CFLAGS=-Os -arch  
i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -DUSE_ATSUI - 
DUSE_MAC_TSM''

  Xah
∑ http://xahlee.org/

This bug report was last modified 16 years and 186 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.