From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sebastien Vauban" Newsgroups: gmane.emacs.bugs Subject: bug#16751: 24.3.50; Export during Org export to HTML Date: Mon, 24 Feb 2014 12:30:00 +0100 Organization: Sebastien Vauban Message-ID: <86wqgk7npj.fsf@somewhere.org> References: <86fvnmoxyp.fsf@somewhere.org> <86txbwlkeh.fsf@somewhere.org> <83ha7w75sc.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1393241474 11633 80.91.229.3 (24 Feb 2014 11:31:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Feb 2014 11:31:14 +0000 (UTC) Cc: 16751-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Mon Feb 24 12:31:22 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WHtkn-0006sN-Og for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Feb 2014 12:31:21 +0100 Original-Received: from localhost ([::1]:56810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHtkl-0007Eb-7H for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Feb 2014 06:31:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHtkd-00074C-EM for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Mon, 24 Feb 2014 06:31:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHtkU-0008HW-O2 for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Mon, 24 Feb 2014 06:31:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHtkU-0008HS-Km for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Mon, 24 Feb 2014 06:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WHtkT-0003nM-Rq for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Mon, 24 Feb 2014 06:31:02 -0500 X-Loop: help-debbugs-mXXj517/zsQ@public.gmane.org Resent-From: "Sebastien Vauban" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org Resent-Date: Mon, 24 Feb 2014 11:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs-mXXj517/zsQ@public.gmane.org X-GNU-PR-Message: followup 16751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16751-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org id=B16751.139324143214544 (code B ref 16751); Mon, 24 Feb 2014 11:31:01 +0000 Original-Received: (at 16751) by debbugs.gnu.org; 24 Feb 2014 11:30:32 +0000 Original-Received: from localhost ([127.0.0.1]:37417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHtk0-0003mV-0P for submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Mon, 24 Feb 2014 06:30:32 -0500 Original-Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:28221 helo=mail.missioncriticalit.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHtjx-0003mD-4E for 16751-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Mon, 24 Feb 2014 06:30:29 -0500 Original-Received: from MUNDANEUM.i-did-not-set--mail-host-address--so-tickle-me (unknown [10.10.10.51]) by mail.missioncriticalit.com (Postfix) with ESMTPS id 1A13F500B2D; Mon, 24 Feb 2014 12:30:23 +0100 (CET) X-Url: Under construction... X-Archive: encrypt In-Reply-To: <83ha7w75sc.fsf-mXXj517/zsQ@public.gmane.org> (Eli Zaretskii's message of "Tue, 18 Feb 2014 18:18:59 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) X-BeenThere: debbugs-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.bugs:86119 Archived-At: Eli Zaretskii wrote: > You are not in the correct stack frame. You need to be in Thread 1 in > frame #2: > > Thread 1 (Thread 9012.0x1b80): > #0 0x77149bfd in KERNELBASE!DebugBreak () from /cygdrive/c/Windows/SYSTEM32/KERNELBASE.dll > #1 0x011ec39c in emacs_abort () at c:/msys/home/dani/emacs/repo/src/w32fns.c:7984 > #2 0x01122321 in Fexpand_file_name (name=157735393, > default_directory=157801377) at c:/msys/home/dani/emacs/repo/src/fileio.c:1450 > > So: > > (gdb) thread 1 > (gdb) frame 2 > (gdb) p name > (gdb) xstring > (gdb) p default_directory > (gdb) xtype Thanks for these step-by-step commands... Applied with the following Org file which allows me to reproduce the crash: --8<---------------cut here---------------start------------->8--- * Config Put this in your config file: URI=file:///opt/tomcat/4/apache-tomcat-4.1.40/webapps/../user_projects/GHIJSP2/deploy/WEB-INF/sharedfiles/resources/FR/domVal.xml Line=35: Attribute "fDel" must be declared for element type "pair". --8<---------------cut here---------------end--------------->8--- And the info you want: --8<---------------cut here---------------start------------->8--- (gdb) thread 1 [Switching to thread 1 (Thread 3868.0x1098)] #0 0x77149bfd in KERNELBASE!DebugBreak () from /cygdrive/c/Windows/SYSTEM32/KERNELBASE.dll (gdb) frame 2 #2 0x01131397 in Fexpand_file_name (name=107130897, default_directory=99518353) at c:/msys/home/dani/emacs/trunk/src/fileio.c:1484 1484 c:/msys/home/dani/emacs/trunk/src/fileio.c: No such file or directory. (gdb) p name $1 = 107130897 (gdb) xstring (gdb) source ~/.gdbinit Warning: /cygdrive/c/Program Files (x86)/emacs-trunk/bin/../lwlib: No such file or directory. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] Environment variable "DISPLAY" not defined. TERM = xterm-256color Breakpoint 1 at 0x10f0372: file c:/msys/home/dani/emacs/trunk/src/emacs.c, line 351. Temporary breakpoint 2 at 0x1113e88: file c:/msys/home/dani/emacs/trunk/src/sysdep.c, line 854. (gdb) xstring $2 = (struct Lisp_String *) 0x662b010 "///opt/tomcat/4/apache-tomcat-4.1.40/webapps/../user_projects/GHIJSP2/deploy/WEB-INF/sharedfiles/resources/FR/domVal.xml" (gdb) p default_directory $3 = 99518353 (gdb) xtype Lisp_String (gdb) --8<---------------cut here---------------end--------------->8--- >>> Alternatively, if you can find where in Lisp is this expand-file-name >>> call, add 'message' there, or step through that code with Edebug, to >>> show the arguments passed to expand-file-name. >> >> It seems to be in `org-html-link', and there's only one call to >> `expand-file-name', when the path begins by "file:". >> >> I've looked at all my "file:" links in the buggy Org document. One such >> line came out as very different from the others: >> >> --8<---------------cut here---------------start------------->8--- >> URI=file:///opt/tomcat/4/apache-tomcat-4.1.40/webapps/../user_projects/GHIJSP2/deploy/WEB-INF/sharedfiles/resources/FR/domVal.xml >> --8<---------------cut here---------------end--------------->8--- >> >> If I remove that line from my Org document, Emacs doesn't crash >> anymore... > > How come you have such a file URI on a Windows machine? Where does > this point to? It does not point to anything sensible, at least not from my machine. It's a line of code which I have to copy in some Apache configuration file (on a testing server) and which I inserted verbatim in my Org file. Admittedly, I should put such line in a #+begin/end_example block -- and, FYI, that doesn't crash Emacs. But I didn't in my real file, and had the crash when exporting, hence this bug report. > Also, what does org-element-property return for this file name (that's > the argument passed to expand-file-name, I think)? I tried to eval (org-element-property) on the file name, in the above Org file: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (wrong-number-of-arguments (lambda (property element) "Extract the value from the PROPERTY of an ELEMENT." (if (stringp element) (get-text-property 0 property element) (plist-get (nth 1 element) property))) 0) org-element-property() eval((org-element-property) nil) eval-expression((org-element-property) nil) call-interactively(eval-expression nil nil) command-execute(eval-expression) --8<---------------cut here---------------end--------------->8--- Not what you wanted, for sure. Best regards, Seb