From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: bug#10071: 24.0.91; Emacs runtime crashes while exporting an org file Date: Fri, 18 Nov 2011 22:29:16 +0530 Message-ID: <8162ih9xjv.fsf@gmail.com> References: <81vcqhj244.fsf@gmail.com> <8362ihddu1.fsf@gnu.org> <81lirdk5rl.fsf@gmail.com> <87vcqh1t9s.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRRn4-0005k4-9v for emacs-orgmode@gnu.org; Fri, 18 Nov 2011 11:59:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRRmy-0007a1-14 for emacs-orgmode@gnu.org; Fri, 18 Nov 2011 11:59:50 -0500 In-Reply-To: <87vcqh1t9s.fsf@gmail.com> (Nicolas Goaziou's message of "Fri, 18 Nov 2011 13:58:55 +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: Nicolas Goaziou Cc: Eli Zaretskii , emacs-orgmode@gnu.org, 10071@debbugs.gnu.org, Stefan Monnier Eli, Thanks for the clue and Stefan, thanks for the fix meanwhile. The minimal snippet that captures the root cause follows down below. Nicolas Goaziou writes: > Hello, > > Jambunathan K writes: > >> Ccing Nicolas to attract his attention. >> >> Refer http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10071 > > I cannot reproduce it on development version of Org mode (nor in stable > version), GNU Emacs 24.0.91.1 (x86_64-unknown-linux-gnu, GTK+ Version > 3.2.1). > > Jambunathan, can you debug `org-export-normalize-links' before Emacs > crashes? #+begin_src emacs-lisp ;; install blah in the run-time (defun blah () (goto-char (point-min)) (while (re-search-forward "\\[\\[\\([^][]+\\)\\]\\(\\[\\([^][]+\\)\\]\\)?\\]" nil t) (goto-char (1- (match-end 0))) (org-if-unprotected (let* ((xx (match-string 1)) (s (concat "[[" xx "][" xx "]]"))) (replace-match s t t))))) #+end_src ;; eval the 3 forms in sequence. Note that the third form will crash ;; emacs #+begin_src emacs-lisp ;; form 1 ;; here link < buffer ;; link *is* decorated (with-temp-buffer ;; (insert "[[http://www.google.com]]") (insert "[[http://www.google.com]]a") ; Note the extra "a" at the ; end (add-text-properties (point-min) (point-max) '(org-caption nil org-caption-shortn nil org-label nil org-attributes nil)) (blah)) #+end_src #+begin_src emacs-lisp ;; form 2 ;; here link = buffer ;; link is *not* decorated (with-temp-buffer (insert "[[http://www.google.com]]") ;; (insert "[[http://www.google.com]]a") ;; (add-text-properties (point-min) (point-max) ;; '(org-caption nil org-caption-shortn nil ;; org-label nil org-attributes nil)) (blah)) #+end_src #+begin_src emacs-lisp ;; form 3 ;; here link = buffer ;; link *is* decorated (with-temp-buffer (insert "[[http://www.google.com]]") ;; (insert "[[http://www.google.com]]a") (add-text-properties (point-min) (point-max) '(org-caption nil org-caption-shortn nil org-label nil org-attributes nil)) (blah)) #+end_src > Regards,