* bug#11109: 24.0.94; vc-git-state: Stack overflow in regexp matcher
@ 2012-03-28 7:41 Sven Joachim
2012-03-28 8:36 ` Andreas Schwab
0 siblings, 1 reply; 4+ messages in thread
From: Sven Joachim @ 2012-03-28 7:41 UTC (permalink / raw)
To: 11109
[-- Attachment #1: Type: text/plain, Size: 5006 bytes --]
I'm getting frequent "Stack overflow in regexp matcher" errors when
visiting files under git version control with uncommitted changes. This
started to happen rather recently.
This is an excerpt from the backtrace with the second line truncated
since it is *very* long. Full backtrace is attached at the end of this
mail.
,----
| Debugger entered--Lisp error: (error "Stack overflow in regexp matcher")
| string-match(":[0-7]\\{6\\} [0-7]\\{6\\} [0-9a-f]\\{40\\} [0-9a-f]\\{40\\} \\([ADMUT]\\).[^.]+.\\(\\(?:.\\|\n\\)*\\)\\'" ":100644 100644 04163e01d122e6a0b2e6172b91c7bdc69e496f25 0000000000000000000000000000000000000000 [...]
| vc-git-state("/usr/local/src/deb-src/ncurses/ncurses/misc/terminfo.src")
| apply(vc-git-state "/usr/local/src/deb-src/ncurses/ncurses/misc/terminfo.src")
| vc-call-backend(Git state "/usr/local/src/deb-src/ncurses/ncurses/misc/terminfo.src")
| vc-default-state-heuristic(Git "/usr/local/src/deb-src/ncurses/ncurses/misc/terminfo.src")
| apply(vc-default-state-heuristic Git "/usr/local/src/deb-src/ncurses/ncurses/misc/terminfo.src")
| vc-call-backend(Git state-heuristic "/usr/local/src/deb-src/ncurses/ncurses/misc/terminfo.src")
| vc-state-refresh("/usr/local/src/deb-src/ncurses/ncurses/misc/terminfo.src" Git)
| vc-state("/usr/local/src/deb-src/ncurses/ncurses/misc/terminfo.src" Git)
| vc-default-mode-line-string(Git "/usr/local/src/deb-src/ncurses/ncurses/misc/terminfo.src")
| vc-git-mode-line-string("/usr/local/src/deb-src/ncurses/ncurses/misc/terminfo.src")
| apply(vc-git-mode-line-string "/usr/local/src/deb-src/ncurses/ncurses/misc/terminfo.src")
| vc-call-backend(Git mode-line-string "/usr/local/src/deb-src/ncurses/ncurses/misc/terminfo.src")
| vc-mode-line("/usr/local/src/deb-src/ncurses/ncurses/misc/terminfo.src" Git)
| vc-find-file-hook()
| run-hooks(find-file-hook)
| after-find-file(nil t)
| find-file-noselect-1(#<buffer terminfo.src> "/usr/local/src/deb-src/ncurses/ncurses/misc/terminfo.src" nil nil "/usr/local/src/deb-src/ncurses/ncurses/misc/terminfo.src" (665028 2055))
| find-file-noselect("/usr/local/src/deb-src/ncurses/ncurses/misc/terminfo.src" nil nil t)
| find-file("/usr/local/src/deb-src/ncurses/ncurses/misc/terminfo.src" t)
| call-interactively(find-file nil nil)
`----
In GNU Emacs 24.0.94.2 (i486-pc-linux-gnu, GTK+ Version 2.24.10)
of 2012-03-28 on turtle
Windowing system distributor `The X.Org Foundation', version 11.0.11200000
Configured using:
`configure '--build=i486-pc-linux-gnu' '--without-gconf'
'build_alias=i486-pc-linux-gnu''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: C
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: de_DE.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
Major mode: Debugger
Minor modes in effect:
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
C-x C-f / u s r <tab> l o c <tab> s r <tab> d e b <tab>
n c <tab> / n c <tab> / m i s <tab> t e r m <tab> <return>
C-x C-b C-x o <down> <down> d x M-x t o g g l e - d
e b <tab> e r r <tab> <return> C-x C-f <up> <return>
<up> C-SPC <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
M-w M-x r e p o r t - e m <tab> <return>
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading vc-git...done
vc-git-state: Stack overflow in regexp matcher
Debug on Error enabled globally
Entering debugger...
Mark set
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils help-mode easymenu view debug cus-start
cus-load vc-git time-date tooltip ediff-hook vc-hooks lisp-float-type
mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)
[-- Attachment #2: Full backtrace --]
[-- Type: application/octet-stream, Size: 17335 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#11109: 24.0.94; vc-git-state: Stack overflow in regexp matcher
2012-03-28 7:41 bug#11109: 24.0.94; vc-git-state: Stack overflow in regexp matcher Sven Joachim
@ 2012-03-28 8:36 ` Andreas Schwab
2012-03-28 8:49 ` Sven Joachim
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Schwab @ 2012-03-28 8:36 UTC (permalink / raw)
To: Sven Joachim; +Cc: 11109
Sven Joachim <svenjoac@gmx.de> writes:
> I'm getting frequent "Stack overflow in regexp matcher" errors when
> visiting files under git version control with uncommitted changes. This
> started to happen rather recently.
Does that help?
Andreas.
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index bf7b7fb..b71dc95 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -220,11 +220,10 @@ matching the resulting Git log output, and KEYWORDS is a list of
(let ((diff (vc-git--run-command-string
file "diff-index" "-p" "--raw" "-z" "HEAD" "--")))
(if (and diff
- (string-match ":[0-7]\\{6\\} [0-7]\\{6\\} [0-9a-f]\\{40\\} [0-9a-f]\\{40\\} \\([ADMUT]\\)\0[^\0]+\0\\(\\(?:.\\|\n\\)*\\)\\'"
+ (string-match ":[0-7]\\{6\\} [0-7]\\{6\\} [0-9a-f]\\{40\\} [0-9a-f]\\{40\\} \\([ADMUT]\\)\0[^\0]+\0\\(.\\)?"
diff))
- (let ((diff-letter (match-string 1 diff))
- (diff-contents (match-string 2 diff)))
- (if (not (string-match "\n." diff-contents))
+ (let ((diff-letter (match-string 1 diff)))
+ (if (not (match-beginning 2))
;; Empty diff: file contents is the same as the HEAD
;; revision, but timestamps are different (eg, file
;; was "touch"ed). Update timestamp in index:
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#11109: 24.0.94; vc-git-state: Stack overflow in regexp matcher
2012-03-28 8:36 ` Andreas Schwab
@ 2012-03-28 8:49 ` Sven Joachim
2012-03-28 10:19 ` Andreas Schwab
0 siblings, 1 reply; 4+ messages in thread
From: Sven Joachim @ 2012-03-28 8:49 UTC (permalink / raw)
To: Andreas Schwab; +Cc: 11109
On 2012-03-28 10:36 +0200, Andreas Schwab wrote:
> Sven Joachim <svenjoac@gmx.de> writes:
>
>> I'm getting frequent "Stack overflow in regexp matcher" errors when
>> visiting files under git version control with uncommitted changes. This
>> started to happen rather recently.
>
> Does that help?
Yes, that seems to work. Thanks.
> diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
> index bf7b7fb..b71dc95 100644
> --- a/lisp/vc/vc-git.el
> +++ b/lisp/vc/vc-git.el
> @@ -220,11 +220,10 @@ matching the resulting Git log output, and KEYWORDS is a list of
> (let ((diff (vc-git--run-command-string
> file "diff-index" "-p" "--raw" "-z" "HEAD" "--")))
> (if (and diff
> - (string-match ":[0-7]\\{6\\} [0-7]\\{6\\} [0-9a-f]\\{40\\} [0-9a-f]\\{40\\} \\([ADMUT]\\)\0[^\0]+\0\\(\\(?:.\\|\n\\)*\\)\\'"
> + (string-match ":[0-7]\\{6\\} [0-7]\\{6\\} [0-9a-f]\\{40\\} [0-9a-f]\\{40\\} \\([ADMUT]\\)\0[^\0]+\0\\(.\\)?"
> diff))
> - (let ((diff-letter (match-string 1 diff))
> - (diff-contents (match-string 2 diff)))
> - (if (not (string-match "\n." diff-contents))
> + (let ((diff-letter (match-string 1 diff)))
> + (if (not (match-beginning 2))
> ;; Empty diff: file contents is the same as the HEAD
> ;; revision, but timestamps are different (eg, file
> ;; was "touch"ed). Update timestamp in index:
Cheers,
Sven
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-03-28 10:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-28 7:41 bug#11109: 24.0.94; vc-git-state: Stack overflow in regexp matcher Sven Joachim
2012-03-28 8:36 ` Andreas Schwab
2012-03-28 8:49 ` Sven Joachim
2012-03-28 10:19 ` Andreas Schwab
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.