From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Re: Stackoverflow in regexp matcher Date: Wed, 03 Feb 2016 08:36:50 +0100 Message-ID: <87y4b2qm7h.fsf@hornfels.zedat.fu-berlin.de> References: <87oabzb4h8.fsf@hornfels.zedat.fu-berlin.de> <878u33dsh0.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQrzu-0008DY-3T for emacs-orgmode@gnu.org; Wed, 03 Feb 2016 02:37:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQrzq-0006yp-R1 for emacs-orgmode@gnu.org; Wed, 03 Feb 2016 02:37:06 -0500 Received: from plane.gmane.org ([80.91.229.3]:48592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQrzq-0006ya-GV for emacs-orgmode@gnu.org; Wed, 03 Feb 2016 02:37:02 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aQrzo-0008BS-UN for emacs-orgmode@gnu.org; Wed, 03 Feb 2016 08:37:01 +0100 Received: from hornfels.zedat.fu-berlin.de ([160.45.11.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Feb 2016 08:37:00 +0100 Received: from loris.bennett by hornfels.zedat.fu-berlin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Feb 2016 08:37:00 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Nick, Nick Dokos writes: > "Loris Bennett" writes: > >> Hi, >> >> On refreshing the #+TAGS via 'C-c C-c' I'm am getting the following error >> >> Stackoverflow in regexp matcher >> > > Not "Stack overflow in ..."? I searched for Stackoverflow both in the > org-mode directory and the emacs source directory (but I'm not up to > date with either so I might have missed a recent change): I didn't find > anything. Sorry, "Stack overflow". > I found the similar > > ./src/search.c: error ("Stack overflow in regexp matcher"); > >> I have tried bisecting the file, but the problem does not seem to be >> caused by a specific part. Instead it just seems to occur at a fairly >> random point once the file becomes long enough. >> >> The file is a beamer presentation with 1375 lines. If I add >> >> * 0123456789 >> >> to the end of the file (or insert it at some other point), I can still >> refresh. If I add >> >> * 0123456789 >> 0 >> >> I get "Stackoverflow in regexp matcher". >> >> Does anyone have any ideas how to proceed here? >> > > M-x toggle-debug-on-error RET > > try to reproduce and send the backtrace (if any). I got the following error when I opened the file this morning: File mode specification error: (error "Stack overflow in regexp matcher") I then toggled debugging and did 'C-c C-c' on the #+TAGS line and got the following backtrace: Debugger entered--Lisp error: (error "Stack overflow in regexp matcher") re-search-forward("^[^%]*\\\\usepackage.*{biblatex}" nil t) reftex-using-biblatex-p() reftex-locate-bibliography-files("/home/loris/git/doc.git/") byte-code("\306\307 #\211\204=00\310!\211\203=00\311=0B!\n\204%\312D\f= B\313\314\315\"\210\212\316\317\"\210\320\n\321=3D?\"\211@q\210\311 \322D= \fB\323 A\324\216\325B!\210\315C\212\214~\210\326b\210\327D\315\321#\203\27= 2\326\225\203\260=0EE\203\242\330\331!\331\332O\333\230\204\242\334\335!\20= 3\236\334\336!\203\236\337 F\340\216\335 *E\235\206\232\337 F\341\216\336 *= E\235?\202\237\321\203U\342\330\326!G#\fB\202U\343\225\203\376\331\224G`Sf= \344=3D\203\304\345u\210H!\211I\203U\346I8JKJ^KJKU\203\362\316\347\350JL\"= @\351I8#\210I\fB=0EIM\202U\332\225\203=01\330\332!N\352\315\353\354O\"\"\20= 4U\355N\f #\202U\356\225\2030\357\315\321\"\210\360\321B\fB\202U\361\225\20= 3f=0EP\203U\362!\211Q\203U=0EQA@\211RS\235\203V=0ES\210\202]=0ERSBS)Q\fB\2= 02U\363\225\203\263\212\330\363!T\363\225b\210\337 F\364\216\365\366T!!*U\3= 67TV\"A@\211W\203\231\331\225b\210\202\240\363\225b\210\370 \210\342UG\315= \211%\211X\fB-\202U\371\372!\210\202U\373 !\211Y\203\312\374YB\fB\326b\210\= 327\375\315\321#\203\333\376B\fB\326b\210\327\377\315\321#\203\370\201Z\33= 0\201[!\330\343!E\fB\202\336\201\\D\fB.\201]=0E@!\207" [file master-dir fi= le-found buf docstruct reftex-keep-temporary-buffers reftex-locate-file "te= x" reftex-get-buffer-visiting buffer-file-name file-error throw exit nil me= ssage "Scanning file %s" reftex-get-file-buffer-force t bof syntax-table ((= set-syntax-table saved-syntax)) set-syntax-table 1 re-search-forward reftex= -match-string 0 7 "label{" fboundp TeX-current-macro LaTeX-current-environm= ent match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-= match-data evaporate] 3)) ((byte-code "\301\302\"\207" [save-match-data-in= ternal set-match-data evaporate] 3)) reftex-label-info 3 92 -1 5 "Scanning = %s %s ..." rassoc 6 delq mapcar #[(x) "\302 \"\207" [x include-file string= -match] 3] reftex-parse-from-file 9 reftex-init-section-numbers appendix 10= ...] 7) reftex-parse-from-file("/home/loris/git/doc.git/hpc-workshop.org" nil "/h= ome/loris/git/doc.git/") reftex-do-parse(1 nil) reftex-access-scan-info((16)) reftex-parse-all() (and (buffer-file-name) (file-exists-p (buffer-file-name)) (setq TeX-mast= er t) (reftex-parse-all)) org-mode-reftex-setup() run-hooks(change-major-mode-after-body-hook text-mode-hook outline-mode-h= ook org-mode-hook) apply(run-hooks (change-major-mode-after-body-hook text-mode-hook outline= -mode-hook org-mode-hook)) run-mode-hooks(org-mode-hook) org-mode() org-mode-restart() org-ctrl-c-ctrl-c(nil) call-interactively(org-ctrl-c-ctrl-c nil nil) command-execute(org-ctrl-c-ctrl-c) Cheers, Loris --=20 This signature is currently under construction.