[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Stack overflow in regexp matcher when opening file
From: |
Kim F. Storm |
Subject: |
Stack overflow in regexp matcher when opening file |
Date: |
Thu, 2 Feb 2006 12:34:00 +0100 (CET) |
Create two (huge) files like this:
emacs -q
C-x C-f file1.txt RET RET C-p ESC 3 4 0 0 0 0 x C-x C-s
C-x C-f file2.txt RET RET C-p ESC 3 4 0 0 0 0 C-q 2 1 2 RET C-x C-s
C-x C-c to exit
Restart emacs:
emacs -q
C-x C-f file1.txt RET
C-x C-f file2.txt RET
Debugger entered--Lisp error: (error "Stack overflow in regexp matcher")
looking-at("\\(?:<\\?xml\\s +[^>]*>\\)?\\s
*<\\(?:!--\\(?:[^-]\\|-[^-]\\)*-->\\s *<\\)*\\(?:!DOCTYPE\\s +[^>]*>\\s *<\\s
*\\(?:!--\\(?:[^-]\\|-[^-]\\)*-->\\s *<\\)*\\)?[Hh][Tt][Mm][Ll]")
#[(re dummy) "Ã!" [re looking-at] 2]("\\(?:<\\?xml\\s +[^>]*>\\)?\\s
*<\\(?:!--\\(?:[^-]\\|-[^-]\\)*-->\\s *<\\)*\\(?:!DOCTYPE\\s +[^>]*>\\s *<\\s
*\\(?:!--\\(?:[^-]\\|-[^-]\\)*-->\\s *<\\)*\\)?[Hh][Tt][Mm][Ll]" nil)
assoc-default(nil (("\\(?:<\\?xml\\s +[^>]*>\\)?\\s
*<\\(?:!--\\(?:[^-]\\|-[^-]\\)*-->\\s *<\\)*\\(?:!DOCTYPE\\s +[^>]*>\\s *<\\s
*\\(?:!--\\(?:[^-]\\|-[^-]\\)*-->\\s *<\\)*\\)?[Hh][Tt][Mm][Ll]" . html-mode)
("<\\?xml " . xml-mode) ("\\s *<\\(?:!--\\(?:[^-]\\|-[^-]\\)*-->\\s
*<\\)*!DOCTYPE " . sgml-mode) ("%![^V]" . ps-mode) ("# xmcd " .
conf-unix-mode)) #[(re dummy) "Ã!" [re looking-at] 2])
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
find-file-noselect-1(#<buffer file2.txt> "~/fsf/latest/file2.txt" nil nil
"~/fsf/latest/file2.txt" (2320055 774))
find-file-noselect("~/fsf/latest/file2.txt" nil nil t)
find-file("~/fsf/latest/file2.txt" t)
call-interactively(find-file)
Very oddly, it doesn't happen if I load file2.txt before file1.txt,
so is there some form of leak in the "regexp matcher stack" ???
In GNU Emacs 22.0.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2006-02-02 on kfs-l.imdomain.dk
X server distributor `The XFree86 Project, Inc', version 11.0.40300000
configured using `configure 'CFLAGS=-g -O0''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8
default-enable-multibyte-characters: t
Major mode: Group
Minor modes in effect:
gnus-topic-mode: t
gnus-undo-mode: t
cua-mode: t
display-time-mode: t
tooltip-mode: t
auto-compression-mode: t
tool-bar-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
<S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up>
<S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up>
<S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up>
<S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up>
<S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up>
<S-up> <S-up> <S-up> C-x <timeout> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<menu-bar> <help-menu> <report-emacs-bug> m <backspace>
r e g e x p SPC m a t c h e r SPC s t a c k SPC o v
e r f l o w <return> y C-g C-x k <return> y <help-echo>
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu>
<report-emacs-bug>
Recent messages:
Loading subst-jis...done
Auto-saving...done
Mark set [2 times]
Loading emacsbug...done
Buffer has unsaved changes; reinitialize it and discard them? (y or n)
sendmail-user-agent-compose: Message aborted
Buffer has unsaved changes; reinitialize it and discard them? (y or n)
Disconnect buffer from visited file? (y or n)
Quit
Buffer *mail* modified; kill anyway? (y or n)
--
Kim F. Storm <address@hidden> http://www.cua.dk
- Stack overflow in regexp matcher when opening file,
Kim F. Storm <=