From unknown Mon Aug 18 17:54:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37719: 11.91; preview-latex not working (again?) Resent-From: Dylan Thurston Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sat, 12 Oct 2019 19:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37719 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 37719@debbugs.gnu.org X-Debbugs-Original-To: bug-auctex@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15709096248785 (code B ref -1); Sat, 12 Oct 2019 19:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Oct 2019 19:47:04 +0000 Received: from localhost ([127.0.0.1]:34250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJNLz-0002H6-Qo for submit@debbugs.gnu.org; Sat, 12 Oct 2019 15:47:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:48422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJJz8-0007lX-01 for submit@debbugs.gnu.org; Sat, 12 Oct 2019 12:11:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56995) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJJz6-0001Uk-9U for bug-auctex@gnu.org; Sat, 12 Oct 2019 12:11:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJJz4-0002LZ-DO for bug-auctex@gnu.org; Sat, 12 Oct 2019 12:11:12 -0400 Received: from whitehail.bostoncoop.net ([74.50.63.164]:49514 helo=bostoncoop.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iJJz4-0002Kd-7N for bug-auctex@gnu.org; Sat, 12 Oct 2019 12:11:10 -0400 Received: from bostoncoop.net (localhost [127.0.0.1]) by bostoncoop.net (Postfix) with ESMTP id E76121C1569; Sat, 12 Oct 2019 12:11:06 -0400 (EDT) Received: by bostoncoop.net (Postfix, from userid 1030) id DC71B1C15BA; Sat, 12 Oct 2019 12:11:06 -0400 (EDT) Date: Sat, 12 Oct 2019 12:11:06 -0400 From: Dylan Thurston Message-ID: <20191012161106.GA1224@whitehail.bostoncoop.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Virus-Scanned: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.50.63.164 X-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Sat, 12 Oct 2019 15:47:02 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) To: bug-auctex@gnu.org Subject: 11.91; preview-latex not working again From: Dylan Thurston --text follows this line-- Preview-latex has stopped working, with errors about /invalidfileaccess. (I sometimes also get errors about /typecheck; I have not isolated exactly when that happens.) On this minimal TeX file: ``` \documentclass{article} \begin{document} Testing. $1+1=2$ \end{document} ``` I get the following error message: ``` /usr/bin/gs -dOutputFile\=\(_region_.prv/tmpLERquC/pr1-1.png\) -q -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r96.1119x96.0946 GS>{<> setuserparams .locksafe} stopped pop {DELAYSAFER{.setsafe}if}stopped pop/.preview-BP currentpagedevice/BeginPage get dup null eq{pop{pop}bind}if def<>setpagedevice/preview-do{/.preview-ST[count 4 roll save]def dup length 0 eq{pop}{setpagedevice}{ifelse exec}stopped{handleerror quit}if .preview-ST aload pop restore}bind def (_region_.prv/tmpLERquC/preview.dsc)(r)file /.preview-ST 1 index def dup 0 setfileposition 412()/SubFileDecode filter cvx exec .preview-ST dup dup 412 setfileposition 51()/SubFileDecode filter cvx<<>>preview-do Error: /invalidfileaccess in --file-- Operand stack: (_region_.prv/tmpLERquC/preview.dsc) (r) Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- %loop_continue --nostringval-- --nostringval-- false 1 %stopped_push .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- Dictionary stack: --dict:746/1123(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)-- Current allocation mode is local Last OS error: Permission denied Current file position is 567 GS<2> ``` Since permissions might be an issue, here are the relevant files left around: ``` dpt@tulip:/tmp$ ls -lRa _region_.prv/ _region_.prv/: total 72 drwxr-xr-x 3 dpt dpt 4096 Oct 12 11:52 . drwxrwxrwt 20 root root 61440 Oct 12 11:52 .. drwx------ 2 dpt dpt 4096 Oct 12 11:52 tmpLERquC _region_.prv/tmpLERquC: total 12 drwx------ 2 dpt dpt 4096 Oct 12 11:52 . drwxr-xr-x 3 dpt dpt 4096 Oct 12 11:52 .. -rw-r--r-- 1 dpt dpt 489 Oct 12 11:52 preview.dsc dpt@tulip:/tmp$ ls -lRa _region_.* -rw-r--r-- 1 dpt dpt 3516 Oct 12 11:52 _region_.log -rw-r--r-- 1 dpt dpt 9149 Oct 12 11:52 _region_.pdf -rw-r--r-- 1 dpt dpt 240 Oct 12 11:51 _region_.tex _region_.prv: total 72 drwxr-xr-x 3 dpt dpt 4096 Oct 12 11:52 . drwxrwxrwt 20 root root 61440 Oct 12 11:52 .. drwx------ 2 dpt dpt 4096 Oct 12 11:52 tmpLERquC _region_.prv/tmpLERquC: total 12 drwx------ 2 dpt dpt 4096 Oct 12 11:52 . drwxr-xr-x 3 dpt dpt 4096 Oct 12 11:52 .. -rw-r--r-- 1 dpt dpt 489 Oct 12 11:52 preview.dsc ``` I don't see any reason why Emacs wouldn't be able to read that preview.dsc. This looks similar to earlier permission issues with Ghostscript, but I thought those were fixed in this latest version of auctex. Emacs : GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.11) of 2019-09-22, modified by Debian Package: 11.91 current state: ============== (setq AUCTeX-date "2017-07-24" window-system 'x LaTeX-version "2e" TeX-style-path '("/var/lib/auctex/emacs/" "/usr/share/emacs/site-lisp/auctex/style" "/home/dpt/.emacs.d/auctex/auto" "/home/dpt/.emacs.d/auctex/style" "auto" "style") TeX-auto-save t TeX-parse-self t TeX-master "Smoothings" TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %`%(extraopts) %S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX") ("LaTeX" "%`%l%(mode)%' %T" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX") ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "amstex %(PDFout) %`%(extraopts) %S%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX") ("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion") ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX") ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber") ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file") ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command) ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t t :help "Generate PostScript file") ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t :help "Convert DVI file to PostScript") ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t :help "Convert DVI file to PDF with dvipdfmx") ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help "Convert PostScript file to PDF") ("Glossaries" "makeglossaries %s" TeX-run-command nil t :help "Run makeglossaries to create glossary file") ("Index" "makeindex %s" TeX-run-index nil t :help "Run makeindex to create index file") ("upMendex" "upmendex %s" TeX-run-index t t :help "Run upmendex to create index file") ("Xindy" "texindy %s" TeX-run-command nil t :help "Run xindy to create index file") ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness") ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for common mistakes") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document") ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files") ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files") ("Other" "" TeX-run-command t t :help "Run an arbitrary command") ) ) From unknown Mon Aug 18 17:54:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37719: 11.91; preview-latex not working (again?) Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sun, 13 Oct 2019 12:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37719 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Dylan Thurston Cc: 37719@debbugs.gnu.org Received: via spool by 37719-submit@debbugs.gnu.org id=B37719.157097135125569 (code B ref 37719); Sun, 13 Oct 2019 12:56:01 +0000 Received: (at 37719) by debbugs.gnu.org; 13 Oct 2019 12:55:51 +0000 Received: from localhost ([127.0.0.1]:35346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJdPb-0006eL-8g for submit@debbugs.gnu.org; Sun, 13 Oct 2019 08:55:51 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:47302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJdPY-0006eB-OB for 37719@debbugs.gnu.org; Sun, 13 Oct 2019 08:55:49 -0400 Received: from localhost (210-20-192-190.rev.home.ne.jp [210.20.192.190]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id 0832061; Sun, 13 Oct 2019 21:55:45 +0900 (JST) From: Ikumi Keita In-reply-to: <20191012161106.GA1224@whitehail.bostoncoop.net> References: <20191012161106.GA1224@whitehail.bostoncoop.net> Comments: In-reply-to Dylan Thurston message dated "Sat, 12 Oct 2019 12:11:06 -0400." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <50455.1570971345.1@localhost> Date: Sun, 13 Oct 2019 21:55:45 +0900 Message-ID: <50458.1570971345@localhost> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Dylan, >>>>> Dylan Thurston writes: > Preview-latex has stopped working, with errors about /invalidfileaccess. > (I sometimes also get errors about /typecheck; I have not isolated > exactly when that happens.) [...] > This looks similar to earlier permission issues with Ghostscript, but > I thought those were fixed in this latest version of auctex. I think that you are accidentally using old AUCTeX, inferring from the following diagnosis and the "Subject" header of your report. Current AUCTeX version is 12.1. Please confirm whether your AUCTeX is new enough or not. Regards, Ikumi Keita > Emacs : GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.11) > of 2019-09-22, modified by Debian > Package: 11.91 <-- This is the version of AUCTeX > current state: > ============== > (setq > AUCTeX-date "2017-07-24" <-- This is the date of AUCTeX From unknown Mon Aug 18 17:54:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37719: 11.91; preview-latex not working (again?) Resent-From: Dylan Thurston Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sun, 13 Oct 2019 16:09:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37719 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: 37719@debbugs.gnu.org Received: via spool by 37719-submit@debbugs.gnu.org id=B37719.157098294212209 (code B ref 37719); Sun, 13 Oct 2019 16:09:03 +0000 Received: (at 37719) by debbugs.gnu.org; 13 Oct 2019 16:09:02 +0000 Received: from localhost ([127.0.0.1]:36758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJgQW-0003Ag-5B for submit@debbugs.gnu.org; Sun, 13 Oct 2019 12:09:01 -0400 Received: from whitehail.bostoncoop.net ([74.50.63.164]:41086 helo=bostoncoop.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJfqd-0002Ec-74 for 37719@debbugs.gnu.org; Sun, 13 Oct 2019 11:31:56 -0400 Received: from bostoncoop.net (localhost [127.0.0.1]) by bostoncoop.net (Postfix) with ESMTP id 5E4C01C15C3; Sun, 13 Oct 2019 11:31:49 -0400 (EDT) Received: by bostoncoop.net (Postfix, from userid 1030) id 4F4341C1812; Sun, 13 Oct 2019 11:31:49 -0400 (EDT) Date: Sun, 13 Oct 2019 11:31:49 -0400 From: Dylan Thurston Message-ID: <20191013153149.GA17825@whitehail.bostoncoop.net> References: <20191012161106.GA1224@whitehail.bostoncoop.net> <50458.1570971345@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50458.1570971345@localhost> User-Agent: Mutt/1.5.23 (2014-03-12) X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Sun, 13 Oct 2019 12:08:57 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sun, Oct 13, 2019 at 09:55:45PM +0900, Ikumi Keita wrote: > Hi Dylan, > > >>>>> Dylan Thurston writes: > > Preview-latex has stopped working, with errors about /invalidfileaccess. > > (I sometimes also get errors about /typecheck; I have not isolated > > exactly when that happens.) > > [...] > > > This looks similar to earlier permission issues with Ghostscript, but > > I thought those were fixed in this latest version of auctex. > > I think that you are accidentally using old AUCTeX, inferring from the > following diagnosis and the "Subject" header of your report. > > Current AUCTeX version is 12.1. Please confirm whether your AUCTeX is > new enough or not. Thank you, you were correct: for some reason I have not yet tracked down, emacs was using the system-installed version of AUCTeX (11.91) rather than the version I installed via ELPA, which is 12.1.2. I removed the system-installed version, and now the bug reporting headers read as expected: ``` Emacs : GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.11) of 2019-09-22, modified by Debian Package: 12.1.2 current state: ============== (setq AUCTeX-date "2019-02-08" window-system 'x LaTeX-version "2e" TeX-style-path '("~/.emacs.d/auctex" "/home/dpt/.emacs.d/elpa/auctex-12.1.2/style" "/home/dpt/.emacs.d/auctex/auto" "/home/dpt/.emacs.d/auctex/style" "auto" "style") ``` (full output at the end). Preview-latex is still not working; the error message (on the same minimal file) is now as follows: ``` /usr/bin/gs -dOutputFile\=\(_region_.prv/tmpWdemBH/pr1-1.png\) -q -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r96.1119x96.0946 GS>{<> setuserparams .locksafe} stopped pop {DELAYSAFER{.setsafe}if}stopped pop/.preview-BP currentpagedevice/BeginPage get dup null eq{pop{pop}bind}if def<>setpagedevice/preview-do{/.preview-ST[count 4 roll save]def dup length 0 eq{pop}{setpagedevice}{ifelse exec}stopped{handleerror quit}if .preview-ST aload pop restore}bind def (_region_.prv/tmpWdemBH/preview.dsc)(r)file /.preview-ST 1 index def dup 0 setfileposition 412()/SubFileDecode filter cvx exec .preview-ST dup dup 412 setfileposition 51()/SubFileDecode filter cvx<<>>preview-do Error: /invalidfileaccess in --file-- Operand stack: (_region_.prv/tmpWdemBH/preview.dsc) (r) Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- %loop_continue --nostringval-- --nostringval-- false 1 %stopped_push .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- Dictionary stack: --dict:746/1123(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)-- Current allocation mode is local Last OS error: Permission denied Current file position is 567 GS<2> ``` (It's maybe worth noting this was working perfectly until recently.) Emacs : GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.11) of 2019-09-22, modified by Debian Package: 12.1.2 current state: ============== (setq AUCTeX-date "2019-02-08" window-system 'x LaTeX-version "2e" TeX-style-path '("~/.emacs.d/auctex" "/home/dpt/.emacs.d/elpa/auctex-12.1.2/style" "/home/dpt/.emacs.d/auctex/auto" "/home/dpt/.emacs.d/auctex/style" "auto" "style") TeX-auto-save t TeX-parse-self t TeX-master t TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %`%(extraopts) %S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX") ("LaTeX" "%`%l%(mode)%' %T" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX") ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "amstex %(PDFout) %`%(extraopts) %S%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX") ("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion") ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX") ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber") ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file") ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command) ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t t :help "Generate PostScript file") ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t :help "Convert DVI file to PostScript") ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t :help "Convert DVI file to PDF with dvipdfmx") ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help "Convert PostScript file to PDF") ("Glossaries" "makeglossaries %s" TeX-run-command nil t :help "Run makeglossaries to create glossary file") ("Index" "makeindex %s" TeX-run-index nil t :help "Run makeindex to create index file") ("upMendex" "upmendex %s" TeX-run-index t t :help "Run upmendex to create index file") ("Xindy" "texindy %s" TeX-run-command nil t :help "Run xindy to create index file") ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness") ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for common mistakes") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document") ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files") ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files") ("Other" "" TeX-run-command t t :help "Run an arbitrary command") ) ) From unknown Mon Aug 18 17:54:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37719: 11.91; preview-latex not working (again?) Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sun, 13 Oct 2019 17:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37719 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Dylan Thurston Cc: 37719@debbugs.gnu.org Received: via spool by 37719-submit@debbugs.gnu.org id=B37719.157098804928891 (code B ref 37719); Sun, 13 Oct 2019 17:35:02 +0000 Received: (at 37719) by debbugs.gnu.org; 13 Oct 2019 17:34:09 +0000 Received: from localhost ([127.0.0.1]:36833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJhkv-0007Vu-DO for submit@debbugs.gnu.org; Sun, 13 Oct 2019 13:34:09 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:47740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJhkt-0007Vl-L0 for 37719@debbugs.gnu.org; Sun, 13 Oct 2019 13:34:08 -0400 Received: from localhost (210-20-192-190.rev.home.ne.jp [210.20.192.190]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id A383C61; Mon, 14 Oct 2019 02:34:04 +0900 (JST) From: Ikumi Keita In-reply-to: <20191013153149.GA17825@whitehail.bostoncoop.net> References: <20191012161106.GA1224@whitehail.bostoncoop.net> <50458.1570971345@localhost> <20191013153149.GA17825@whitehail.bostoncoop.net> Comments: In-reply-to Dylan Thurston message dated "Sun, 13 Oct 2019 11:31:49 -0400." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <84555.1570988043.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Mon, 14 Oct 2019 02:34:03 +0900 Message-ID: <84556.1570988043@localhost> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Dylan, >>>>> Dylan Thurston writes: > Preview-latex is still not working; the error message (on the same > minimal file) is now as follows: Thank you for a valuable report. It seems that the Ghostscript developers injected some change incompatible with preview-latex into gs source, and that change was incorporated into the ghostscript binary distribution of your package manager (Debian?). I tried both gs 9.28 RC4 and the latest git repository, and ended up with the same result of yours: ,---- | /home/keita/gs/bin/gs -dOutputFile\=3D\(bbb.prv/tmp0UabeI/pr1-1.png\) -q= -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=3D4 -dGra= phicsAlphaBits\=3D4 -sDEVICE\=3Dpng16m -r108.606x108.587 -dDELAYBIND | GS>{<> set= userparams .locksafe} stopped pop {DELAYSAFER{.setsafe}if}stopped pop/.pre= view-BP currentpagedevice/BeginPage get dup null eq{pop{pop}bind}if def<>setpagedevice/preview-do{/.preview-ST[count 4 ro= ll save]def dup length 0 eq{pop}{setpagedevice}{ifelse exec}stopped{handle= error quit}if .preview-ST aload pop restore}bind def (bbb.prv/tmp0UabeI/p= review.dsc)(r)file /.preview-ST 1 index def dup 0 setfileposition 407()/Su= bFileDecode filter cvx exec .preview-ST dup dup 407 setfileposition 51()/S= ubFileDecode filter cvx<<>>preview-do | Error: /invalidfileaccess in --file-- | Operand stack: | (bbb.prv/tmp0UabeI/preview.dsc) (r) | Execution stack: | %interp_exit .runexec2 --nostringval-- --nostringval-- --nost= ringval-- 2 %stopped_push --nostringval-- --nostringval-- %loop_= continue --nostringval-- --nostringval-- false 1 %stopped_push = .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %st= opped_push --nostringval-- | Dictionary stack: | --dict:1175/1684(ro)(G)-- --dict:0/20(G)-- --dict:78/200(L)-- | Current allocation mode is local | Last OS error: Permission denied | Current file position is 606 | GS<2> `---- I have no workaround for this trouble now. Please consider reverting the recent gs update if you can. I'll report this issue to gs-devel list. Regards, Ikumi Keita From unknown Mon Aug 18 17:54:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37719: Recent ghostscript broke preview-latex again References: <20191012161106.GA1224@whitehail.bostoncoop.net> In-Reply-To: <20191012161106.GA1224@whitehail.bostoncoop.net> Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sun, 13 Oct 2019 18:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37719 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: gs-devel@ghostscript.com Cc: 37719@debbugs.gnu.org Received: via spool by 37719-submit@debbugs.gnu.org id=B37719.15709905222013 (code B ref 37719); Sun, 13 Oct 2019 18:16:01 +0000 Received: (at 37719) by debbugs.gnu.org; 13 Oct 2019 18:15:22 +0000 Received: from localhost ([127.0.0.1]:36899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJiOo-0000W3-04 for submit@debbugs.gnu.org; Sun, 13 Oct 2019 14:15:22 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:47774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJiOl-0000R1-6v for 37719@debbugs.gnu.org; Sun, 13 Oct 2019 14:15:20 -0400 Received: from localhost (210-20-192-190.rev.home.ne.jp [210.20.192.190]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id 867B361; Mon, 14 Oct 2019 03:15:16 +0900 (JST) From: Ikumi Keita X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.3 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Mon, 14 Oct 2019 03:15:16 +0900 Message-ID: <85502.1570990516@localhost> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Dear Ghostscript developers, Thank you for your continuing work on developing gs. Unfortunately, I have to inform you that recent gs source became not compatible with preview-latex again: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37719 I tried both gs 9.28 RC4 and fresh checkout of git repository of ghostpdl. I installed each of them with env MAKE=gmake ./configure --prefix=$HOME/gs gmake gmake install and set up the relavant path for this temporal installation, on FreeBSD 12.0 living in vmware on windows 10 home edition. Then the invocation of gs failed with a message quoted at the last of this message. At the time of previous correspondence between us in this July, preview-latex did work with gs 9.27 with patches suggested in https://ghostscript.com/pipermail/gs-devel/2019-July/010161.html applied, but it no longer does. (By the way, the LaTeX developer released new LaTeX this October, so the internal of the PDF file produced by pdflatex might have some subtle difference from July. I attach the current PDF for reference.) Could you please take a look and try to find a way to recover preview-latex functionality? Best regards, Ikumi Keita /home/keita/gs/bin/gs -dOutputFile\=\(bbb.prv/tmp0UabeI/pr1-1.png\) -q -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r108.606x108.587 -dDELAYBIND GS>{<> setuserparams .locksafe} stopped pop {DELAYSAFER{.setsafe}if}stopped pop/.preview-BP currentpagedevice/BeginPage get dup null eq{pop{pop}bind}if def<>setpagedevice/preview-do{/.preview-ST[count 4 roll save]def dup length 0 eq{pop}{setpagedevice}{ifelse exec}stopped{handleerror quit}if .preview-ST aload pop restore}bind def (bbb.prv/tmp0UabeI/preview.dsc)(r)file /.preview-ST 1 index def dup 0 setfileposition 407()/SubFileDecode filter cvx exec .preview-ST dup dup 407 setfileposition 51()/SubFileDecode filter cvx<<>>preview-do Error: /invalidfileaccess in --file-- Operand stack: (bbb.prv/tmp0UabeI/preview.dsc) (r) Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- %loop_continue --nostringval-- --nostringval-- false 1 %stopped_push .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- Dictionary stack: --dict:1175/1684(ro)(G)-- --dict:0/20(G)-- --dict:78/200(L)-- Current allocation mode is local Last OS error: Permission denied Current file position is 606 GS<2> --=-=-= Content-Type: application/pdf Content-Disposition: attachment; filename=bbb.pdf Content-Transfer-Encoding: base64 Content-Description: sample pdf file JVBERi0xLjUKJdDUxdgKMyAwIG9iago8PAovTGVuZ3RoIDY1ICAgICAgICAKL0ZpbHRlciAvRmxh dGVEZWNvZGUKPj4Kc3RyZWFtCnjacwrh0nezULDUszQzMlMISVMw0DNVMNQzNlYISVGI1jDU1DUy MtLQhlAgnrmFhi2EMtKMDfHicg3hAgDfUQ3MCmVuZHN0cmVhbQplbmRvYmoKOCAwIG9iago8PAov TGVuZ3RoMSAxNDE2Ci9MZW5ndGgyIDY4MjcKL0xlbmd0aDMgMAovTGVuZ3RoIDc3OTcgICAgICAK L0ZpbHRlciAvRmxhdGVEZWNvZGUKPj4Kc3RyZWFtCnjajXQHNNtt/zelSlTVHjVC7R171d57j5pB kDYSIvZe5aZqVqtGKYpYpdQoakRtpfZWW81Se/3T9n6e538/73vO+56c88v1ndd3fD4XO4uBMb+i E8IBooaAo/hBAkLSQGVdI5AQUEhIREBISBjAzm4CRcEgf6sB7GYQpCcUAZf+Xw7KSAgYhdWpgFFY P10EHKjlBQOCRIAgcWmQhLSQEFBYSEjqX44IpDRQBewNdQLqCgC1EHCIJ4BdGeHuh4S6uKKw1/zr CORy5AaCpKQk+H6HAxXdIEioI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yKXhI6rg5YHrcBDwJzQuVRVU2dSIc0apnJbiFF1goShgTtd zjiEXdd3UoKMGoMxg5EOBpYeIxGiCGgcYgHoAHTQWV1lC6khwcSTGOhSnjSkJiYJgqAbgmtPz/O6 3vnfZ+zfn3vFaE9LTa/6NXVNpMrq4qiruq3zWezRs9ms1i9vd+Pp3GFoL0WugLeCke28g7PsuD5O mLE+BD7D1ocqs633UTkWx3tZ5Du8hh6hJovxdRzjfNCiLLLhIS8lIH6h5X6FYYSuzzHccxCxE7WZ zw2VH40oaXWQ9Fg2iurP6ratJS6QEF6P+tIYcpt3ba/GiMCRUNI+xe/2fowBF8W+clzUSpsasBpC n8T50kPQa7HVO4V79Sex2SBlVqjBNKh8LLYKEtcI05/KscAhVDlpQy778g2kELZ7CmVuZHN0cmVh bQplbmRvYmoKMTIgMCBvYmoKPDwKL1R5cGUgL1hSZWYKL0luZGV4IFswIDEzXQovU2l6ZSAxMwov VyBbMSAyIDFdCi9Sb290IDEwIDAgUgovSW5mbyAxMSAwIFIKL0lEIFs8RDE4NjkwM0MxRkE5RkEz MEJDRTVBNDA2MkMzMjMyNkU+IDxEMTg2OTAzQzFGQTlGQTMwQkNFNUE0MDYyQzMyMzI2RT5dCi9M ZW5ndGggNDkgICAgICAgIAovRmlsdGVyIC9GbGF0ZURlY29kZQo+PgpzdHJlYW0KeNpjYGD4z8TA ygjEDIwM/AxAmoVRoQ9EswIxEyPDfBCbGYjZGOW7GBiVehgAYAkD/gplbmRzdHJlYW0KZW5kb2Jq CnN0YXJ0eHJlZgo4ODQ0CiUlRU9GCg== --=-=-=-- From unknown Mon Aug 18 17:54:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37719: 11.91; preview-latex not working (again?) Resent-From: Dylan Thurston Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sun, 13 Oct 2019 19:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37719 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: 37719@debbugs.gnu.org Received: via spool by 37719-submit@debbugs.gnu.org id=B37719.15709935355279 (code B ref 37719); Sun, 13 Oct 2019 19:06:02 +0000 Received: (at 37719) by debbugs.gnu.org; 13 Oct 2019 19:05:35 +0000 Received: from localhost ([127.0.0.1]:37011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJjBO-0001N4-Vq for submit@debbugs.gnu.org; Sun, 13 Oct 2019 15:05:35 -0400 Received: from whitehail.bostoncoop.net ([74.50.63.164]:53198 helo=bostoncoop.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJivk-0007JB-V2 for 37719@debbugs.gnu.org; Sun, 13 Oct 2019 14:49:26 -0400 Received: from bostoncoop.net (localhost [127.0.0.1]) by bostoncoop.net (Postfix) with ESMTP id 03C1A1C1569; Sun, 13 Oct 2019 14:49:18 -0400 (EDT) Received: by bostoncoop.net (Postfix, from userid 1030) id EC37B1C171C; Sun, 13 Oct 2019 14:49:17 -0400 (EDT) Date: Sun, 13 Oct 2019 14:49:17 -0400 From: Dylan Thurston Message-ID: <20191013184917.GA17563@whitehail.bostoncoop.net> References: <20191012161106.GA1224@whitehail.bostoncoop.net> <50458.1570971345@localhost> <20191013153149.GA17825@whitehail.bostoncoop.net> <84556.1570988043@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <84556.1570988043@localhost> User-Agent: Mutt/1.5.23 (2014-03-12) X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Sun, 13 Oct 2019 15:05:33 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Mon, Oct 14, 2019 at 02:34:03AM +0900, Ikumi Keita wrote: > Hi Dylan, > > >>>>> Dylan Thurston writes: > > Preview-latex is still not working; the error message (on the same > > minimal file) is now as follows: > > Thank you for a valuable report. It seems that the Ghostscript > developers injected some change incompatible with preview-latex into gs > source, and that change was incorporated into the ghostscript binary > distribution of your package manager (Debian?). I tried both gs 9.28 > RC4 and the latest git repository, and ended up with the same result of > yours: ... I can confirm that I was using Debian, and version 9.28~~rc4~dfsg-1 of ghostscript. I can also tell you that ghostscript version 9.27~dfsg-3.1 (the last 9.27 Debian version) worked without problems, and 9.28~~rc1~dfsg-1 exhibits apparently the same error. --Dylan From unknown Mon Aug 18 17:54:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37719: [gs-devel] Recent ghostscript broke preview-latex again Resent-From: Chris Liddell Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Mon, 14 Oct 2019 08:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37719 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita , gs-devel@ghostscript.com Cc: 37719@debbugs.gnu.org Received: via spool by 37719-submit@debbugs.gnu.org id=B37719.15710400609239 (code B ref 37719); Mon, 14 Oct 2019 08:01:02 +0000 Received: (at 37719) by debbugs.gnu.org; 14 Oct 2019 08:01:00 +0000 Received: from localhost ([127.0.0.1]:38035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJvHn-0002Nb-28 for submit@debbugs.gnu.org; Mon, 14 Oct 2019 04:00:59 -0400 Received: from mail-wr1-f51.google.com ([209.85.221.51]:33435) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJulb-0004hk-CP for 37719@debbugs.gnu.org; Mon, 14 Oct 2019 03:27:44 -0400 Received: by mail-wr1-f51.google.com with SMTP id b9so18388645wrs.0 for <37719@debbugs.gnu.org>; Mon, 14 Oct 2019 00:27:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=artifex-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5OpSNzPwUsd+krrib1Olk8XX0AvFb9mxqFaRjOBft2w=; b=vvhMTbmKshqPYmfcBVL000W/YixeKQn/kxpTw2LdDOyA1Tfmtm/Z7BXUDfdQ6+L/ii K8XsdWuItU9lzmVnsVts9T1oaC1hm8/Sc8gwtaBcSjy3uEW/1RPU7poKY/u//aZ5hUFE gKs/m9lqiSc0BKFCaGhOUFK2Hknk4EnBClUU2jXcJwd/PYw1JMDBWG/UAWOAHkORoGXz OkiaX4mA0mvysMUnTDcRyvqRQPGa9ws8ma8Y43jipytQRbHc3tFSQCdnEOGEGiGYnWTk BokNfXFPPZrU+jRNKxKmHTpvgEhJcFC2vFMxR6BpE0pr4qpdQl2uN+/lsrKQqwMlrd7p 4S9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=5OpSNzPwUsd+krrib1Olk8XX0AvFb9mxqFaRjOBft2w=; b=Lok35tBtezPY+bU8lqMIWxBpBl2KpWzpdqr6tRiO402g1HCPMZr9JnJLMZhMHTNAsR fVOqtPf0X8pbIqSR1da4qfv7Gv05vz6lC01XDvyjLx/fDEy2o2ByygIoComf5U/tAme1 HSJEZww7mAsts+pXKVUQq1AAapGO1etYHCK5phSdXZcM0rsRx0jJXxK5rGbxcgaL0/Tb 6X3gCriVG16Euzo+fNwnwTuL6X3a0LtZwoVnnba3TG/vTJhamH0HB0a/unvi1S7MNJ4/ 2eoEBCtv9BiaSKtOxYYl2w0EoBakqO61PLEt93Tp3+YodL5Q0y6VC9JQiW2MQLdqZQLy 8AYg== X-Gm-Message-State: APjAAAUM+OnhQrvvivcHHf+MiyvuzoLeBf/PDe1/Hn+o2ScdgtTA2Qpw KYEmtN7Pu1clZRw5smyGQQl+PmbXZoFR+A== X-Google-Smtp-Source: APXvYqyYHW1+kpOwPsheGJA7sDVX6y2lLZVv3fnfS9TCbTBq67WRxxUqC5dHpzxsa+ABIv4XWjfPvg== X-Received: by 2002:adf:f6cd:: with SMTP id y13mr11582269wrp.164.1571038056977; Mon, 14 Oct 2019 00:27:36 -0700 (PDT) Received: from [192.168.1.243] (cpc75872-ando7-2-0-cust954.15-1.cable.virginm.net. [86.13.79.187]) by smtp.googlemail.com with ESMTPSA id x129sm33229851wmg.8.2019.10.14.00.27.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Oct 2019 00:27:36 -0700 (PDT) References: <85502.1570990516@localhost> From: Chris Liddell Openpgp: preference=signencrypt Autocrypt: addr=chris.liddell@artifex.com; prefer-encrypt=mutual; keydata= xsBNBFj90NwBCADJ3GnThABbqusHnIoRd/mkvBEOQLTGC0qQxjLmAd0E3NQrKEjsCy7oT38K lYwK0BVmJX3NnYWMnv3QrQpJpQJupGKX61M7l8mmWljQC4emsRxj5u5TYUXNOvXMYQ0vbeiW IsSrdPj3dxSrZAvZc5vxU9NWMmiwFshVwV0jAAl4st4y/4pURVuMQ1LJVufzkazFLFsXc0X5 NwhIS1s+P6OcegT7Z/ZYa/ToiN39zsgIzcD+FM+1OnPbkBeHozBlsYrB4BDcTDxuwXhnqb8v eO6NWe1woXpF6tcqXYKqehTQ7ukiQJth0pK1A31VN2PSKLadfd0GItnKvNsNQg0EUKArABEB AAHNKUNocmlzIExpZGRlbGwgPGNocmlzLmxpZGRlbGxAYXJ0aWZleC5jb20+wsB3BBMBCAAh BQJY/dDcAhsjBQsJCAcCBhUICQoLAgQWAgMBAh4BAheAAAoJEFKQ1Kjm6hdq+6YH/3zPOtQ2 R9HN2Dgo+GU0R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ca85d26-b5b2-da44-c438-5ce5951d31a9@artifex.com> Date: Mon, 14 Oct 2019 08:27:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <85502.1570990516@localhost> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Spam-Score: 0.7 (/) X-Mailman-Approved-At: Mon, 14 Oct 2019 04:00:57 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) This is almost certainly down to the fact that, for improved security, the file access controls (PermitFileReading etc) are no longer stored as Postscript objects - that is, they are not user parameters any more. Before you call .locksafe, adding something like: systemdict /.addcontrolpath known { /PermitFileReading (bbb.pdf) .addcontrolpath /PermitFileReading (bbb.prv/tmp0UabeI/preview.dsc) .addcontrolpath } if That should work, and retain functionality with 9.27 and earlier releases. Note that any attempt to ".addcontrolpath" *after* calling .locksafe will result in a fatal error and immediate exit from the interpreter. Regards, Chris On 13/10/2019 19:15, Ikumi Keita wrote: > Dear Ghostscript developers, > > Thank you for your continuing work on developing gs. Unfortunately, I > have to inform you that recent gs source became not compatible with > preview-latex again: > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37719 > > I tried both gs 9.28 RC4 and fresh checkout of git repository of > ghostpdl. I installed each of them with > env MAKE=gmake ./configure --prefix=$HOME/gs > gmake > gmake install > and set up the relavant path for this temporal installation, on FreeBSD > 12.0 living in vmware on windows 10 home edition. Then the invocation > of gs failed with a message quoted at the last of this message. > > At the time of previous correspondence between us in this July, > preview-latex did work with gs 9.27 with patches suggested in > https://ghostscript.com/pipermail/gs-devel/2019-July/010161.html > applied, but it no longer does. (By the way, the LaTeX developer > released new LaTeX this October, so the internal of the PDF file > produced by pdflatex might have some subtle difference from July. I > attach the current PDF for reference.) > > Could you please take a look and try to find a way to recover > preview-latex functionality? > > Best regards, > Ikumi Keita > > /home/keita/gs/bin/gs -dOutputFile\=\(bbb.prv/tmp0UabeI/pr1-1.png\) -q -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r108.606x108.587 -dDELAYBIND > GS>{<> setuserparams .locksafe} stopped pop {DELAYSAFER{.setsafe}if}stopped pop/.preview-BP currentpagedevice/BeginPage get dup null eq{pop{pop}bind}if def<>setpagedevice/preview-do{/.preview-ST[count 4 roll save]def dup length 0 eq{pop}{setpagedevice}{ifelse exec}stopped{handleerror quit}if .preview-ST aload pop restore}bind def (bbb.prv/tmp0UabeI/preview.dsc)(r)file /.preview-ST 1 index def dup 0 setfileposition 407()/SubFileDecode filter cvx exec .preview-ST dup dup 407 setfileposition 51()/SubFileDecode filter cvx<<>>preview-do > Error: /invalidfileaccess in --file-- > Operand stack: > (bbb.prv/tmp0UabeI/preview.dsc) (r) > Execution stack: > %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- %loop_continue --nostringval-- --nostringval-- false 1 %stopped_push .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- > Dictionary stack: > --dict:1175/1684(ro)(G)-- --dict:0/20(G)-- --dict:78/200(L)-- > Current allocation mode is local > Last OS error: Permission denied > Current file position is 606 > GS<2> > From unknown Mon Aug 18 17:54:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37719: [gs-devel] Recent ghostscript broke preview-latex again Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Mon, 14 Oct 2019 11:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37719 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Chris Liddell Cc: gs-devel@ghostscript.com, 37719@debbugs.gnu.org Received: via spool by 37719-submit@debbugs.gnu.org id=B37719.157105326017743 (code B ref 37719); Mon, 14 Oct 2019 11:41:02 +0000 Received: (at 37719) by debbugs.gnu.org; 14 Oct 2019 11:41:00 +0000 Received: from localhost ([127.0.0.1]:38225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJyih-0004c7-TC for submit@debbugs.gnu.org; Mon, 14 Oct 2019 07:41:00 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:52528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJyie-0004bt-PI for 37719@debbugs.gnu.org; Mon, 14 Oct 2019 07:40:57 -0400 Received: from localhost (210-20-192-190.rev.home.ne.jp [210.20.192.190]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id DA55C76; Mon, 14 Oct 2019 20:40:53 +0900 (JST) From: Ikumi Keita In-reply-to: <5ca85d26-b5b2-da44-c438-5ce5951d31a9@artifex.com> References: <85502.1570990516@localhost> <5ca85d26-b5b2-da44-c438-5ce5951d31a9@artifex.com> Comments: In-reply-to Chris Liddell message dated "Mon, 14 Oct 2019 08:27:35 +0100." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <88632.1571053253.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Mon, 14 Oct 2019 20:40:53 +0900 Message-ID: <88635.1571053253@localhost> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Chris, >>>>> Chris Liddell writes: > Before you call .locksafe, adding something like: > systemdict /.addcontrolpath known > { > /PermitFileReading (bbb.pdf) .addcontrolpath > /PermitFileReading (bbb.prv/tmp0UabeI/preview.dsc) .addcontrolpath > } if Thank you, this improves the situation. However, preview-latex still does not work. Ghostscript does not produce PNG files we expect and sometimes raises errors. I quote a sample error at the last of this message. I have an impression that gs fails to write out PNG files at specified paths due to restricted permission about file operation. Regards, Ikumi Keita /home/keita/gs/bin/gs -dOutputFile\=3D\(bbb.prv/tmp821SQO/pr1-2.png\) -q -= dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=3D4 -dGraph= icsAlphaBits\=3D4 -sDEVICE\=3Dpng16m -r108.606x108.587 GS>systemdict /.addcontrolpath known { /PermitFileReading (bbb.pdf) .addcontrolpath /PermitFileReading (bbb.prv/tmp821SQO/preview.dsc) .addcontrolpath } if {<> setuserp= arams .locksafe} stopped pop {DELAYSAFER{.setsafe}if}stopped pop/.preview-= BP currentpagedevice/BeginPage get dup null eq{pop{pop}bind}if def<>setpagedevice/preview-do{/.preview-ST[count 4 roll sa= ve]def dup length 0 eq{pop}{setpagedevice}{ifelse exec}stopped{handleerror= quit}if .preview-ST aload pop restore}bind def (bbb.prv/tmp821SQO/previe= w.dsc)(r)file /.preview-ST 1 index def dup 0 setfileposition 499()/SubFile= Decode filter cvx exec .preview-ST dup dup 550 setfileposition 52()/SubFil= eDecode filter cvx<<>>preview-do **** WARNING: .lockfileaccess or .setsafe called **** **** when file access controls are already active **** GPL Ghostscript GIT PRERELEASE 9.29: **** Could not open the file 'bbb.prv= /tmp821SQO/pr1-1.png'. Error: /invalidfileaccess in --showpage-- Operand stack: 1 true Execution stack: %interp_exit .runexec2 --nostringval-- showpage --nostringval--= 2 %stopped_push --nostringval-- showpage %loop_continue showp= age showpage false 1 %stopped_push .runexec2 --nostringval-- = showpage --nostringval-- 2 %stopped_push --nostringval-- showpa= ge false 1 %stopped_push --nostringval-- showpage 4 1 3 = showpage %for_pos_int_continue 1965 1 7 %oparray_pop showpage = showpage 1824 0 9 %oparray_pop showpage showpage Dictionary stack: --dict:731/1123(ro)(G)-- --dict:1/20(G)-- --dict:84/200(L)-- --di= ct:84/200(L)-- --dict:135/256(ro)(G)-- --dict:315/325(ro)(G)-- --dic= t:33/64(L)-- --dict:6/9(L)-- --dict:6/20(L)-- Current allocation mode is local Last OS error: Permission denied From unknown Mon Aug 18 17:54:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37719: [gs-devel] Recent ghostscript broke preview-latex again Resent-From: Chris Liddell Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Mon, 14 Oct 2019 14:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37719 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: gs-devel@ghostscript.com, 37719@debbugs.gnu.org Received: via spool by 37719-submit@debbugs.gnu.org id=B37719.157106410720643 (code B ref 37719); Mon, 14 Oct 2019 14:42:02 +0000 Received: (at 37719) by debbugs.gnu.org; 14 Oct 2019 14:41:47 +0000 Received: from localhost ([127.0.0.1]:41433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK1Xf-0005Ms-G2 for submit@debbugs.gnu.org; Mon, 14 Oct 2019 10:41:47 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:38388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK1Xd-0005Mc-BP for 37719@debbugs.gnu.org; Mon, 14 Oct 2019 10:41:46 -0400 Received: by mail-wr1-f53.google.com with SMTP id y18so10597666wrn.5 for <37719@debbugs.gnu.org>; Mon, 14 Oct 2019 07:41:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=artifex-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Muetx0Wh9y3TuS7g51eEOMXj+0qZ8uvSuWf8Wcm3G8Q=; b=MSXxDrrdqcte9bQ5PbjNCkJcFegLexrmQFPlE1W+0jcgJA3YcKCbgPXFGDm2ufRdAW 0v3khVG7xy7mcUq9G9Ac3YzSGHOy8hQo3IdqUUDFcTfxadf2fJDmedkX1Hpl/O8F/4fM qPvcrWbPqLaw0LlNTZvrAibdNW4pnGqWBCpal381iIdWETitPbxFI82kS8XN0imq2/6h hPvFJCNrznS5r0SEPLGa71dd2YEMb2YQ09QKGJzXucsgzBg0idTC7yslQmZJzUHPi4Y0 0oxCF/E3DrB7cS9rl0+NXJl8RMUqkmH4ptMYNSlwoEIC5B+MK/70UTIkSE1Lxb13/ESy sg8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Muetx0Wh9y3TuS7g51eEOMXj+0qZ8uvSuWf8Wcm3G8Q=; b=bR3n/LaXqdP3PkUU2y9uJ7kgiaVnvdE9l0iowaAQnYcsAsJDYe5uuV5l7imFIA5Zfm JXXVtvuuDzfvAqvvcR400e5AOEWkZPGFGUSz/4nsY/JefjNza7ctlcotIgZhbgEDIDeC bWaT8k11yFyE2SiAc4fYkYWIH3zzHZi33fr0LomfHmCiQDn+UCwCW89icK5cZ9s3uPiI gHv3JhEigBa65ar0REUQ9gdLVbdvbiAoAq3fmHNlZKNJ8/ahyiU3IXf4MKCAQGM+amQi kOVN43PeEWHDBGMlNx0WZIr6w7W0/u+2LESlh2axmvsXOoC4ueLQgkKf/U8kQa78eOfd Kr2A== X-Gm-Message-State: APjAAAU48LnNUMk79/TFiCWBUJvnlQA8NxNm7E0bPJuyJsoL83MtL9Wv hY+PhPokKgs9XOBUcYkPMr+fepCda05jzQ== X-Google-Smtp-Source: APXvYqwTGV6sJRVDnOiHOpA7VN7z853bKM+n18KP7wM007FGX8ja6yl9qvhwVf3BuAzToYTHQSK0ag== X-Received: by 2002:a05:6000:11cc:: with SMTP id i12mr14993769wrx.241.1571064097567; Mon, 14 Oct 2019 07:41:37 -0700 (PDT) Received: from [192.168.1.243] (cpc75872-ando7-2-0-cust954.15-1.cable.virginm.net. [86.13.79.187]) by smtp.googlemail.com with ESMTPSA id u26sm18615302wrd.87.2019.10.14.07.41.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Oct 2019 07:41:36 -0700 (PDT) References: <85502.1570990516@localhost> <5ca85d26-b5b2-da44-c438-5ce5951d31a9@artifex.com> <88635.1571053253@localhost> From: Chris Liddell Openpgp: preference=signencrypt Autocrypt: addr=chris.liddell@artifex.com; prefer-encrypt=mutual; keydata= xsBNBFj90NwBCADJ3GnThABbqusHnIoRd/mkvBEOQLTGC0qQxjLmAd0E3NQrKEjsCy7oT38K lYwK0BVmJX3NnYWMnv3QrQpJpQJupGKX61M7l8mmWljQC4emsRxj5u5TYUXNOvXMYQ0vbeiW IsSrdPj3dxSrZAvZc5vxU9NWMmiwFshVwV0jAAl4st4y/4pURVuMQ1LJVufzkazFLFsXc0X5 NwhIS1s+P6OcegT7Z/ZYa/ToiN39zsgIzcD+FM+1OnPbkBeHozBlsYrB4BDcTDxuwXhnqb8v eO6NWe1woXpF6tcqXYKqehTQ7ukiQJth0pK1A31VN2PSKLadfd0GItnKvNsNQg0EUKArABEB AAHNKUNocmlzIExpZGRlbGwgPGNocmlzLmxpZGRlbGxAYXJ0aWZleC5jb20+wsB3BBMBCAAh BQJY/dDcAhsjBQsJCAcCBhUICQoLAgQWAgMBAh4BAheAAAoJEFKQ1Kjm6hdq+6YH/3zPOtQ2 R9HN2Dgo+GU0R014xolnMZ26fwQCwwZG1PXlFRKOEIwS/yzd6qFfXQwklMD3c92WymTqW81V Xjj0vC/uiYhRbUJKnbzI2voNOvUQ29zUqsu32q5kRnILKoyvyJbd3Y0eJMpZj1aiA30v+IcH fyYv2DclAcRIZyElcTCH2Zr3VEe2nglTsMWWhfUL2xu78qDqq6rEk7+YBl9GSKcAsFaOijCk VnF+FfNN4e6NFAVaMvSldSWJPHbS+BUzBJG2QKLIuhjU+DpxbtK7PMny+Hgp2Mj7PCDXLWVU CPnwSrFxbrO/2nDMXT0DmTDim21R8RGAqLtmNsq23ftUO3zOwE0EWP3Q3AEIAKH/z+c2xICw AqM0+NRNaOqxf8XAl6B4iIiybwoegTphxwc4bxoMZV1/1yUVVP8wJPdiyfLKZf313pVJtzYs If8xbpFFcQ51ucKjJhaUY0VEst3ao2ifa4/zMs55SyRO3OxxcrMzaPYiHgIkyi4CtT6gfwIG GwFxCp9ldrOa/txI+ZiIFLevDt5Ym7dgBaufFT43uw7ZQBGfr/f8HpmxlEWlMZiRJSn3ovEJ gZtiu2ieH41DuUdpfU1mFR8U4rY/KavXwgT3vg2gsTyKM4QO82MEptc646gG4sHokmVJME3c q1ruvYRm3stekliAWjo6E90FZIsHaAwe2mT14nJTtbkAEQEAAcLAXwQYAQgACQUCWP3Q3AIb DAAKCRBSkNSo5uoXasJVB/97fAw8LgPoaOzrI/aS+41uSXsx+2TBw9CTpnrayUTL5iucKoFr tIeaNWm2mV5t94wuwzGcwyUWT2DGaZTMFSRWgmN4i91hYiWdavqVQqCtrj2G1GXPStMvc8Er rDparUG5ps2mtKB4do9HubhoWns2xkQkGMCWN60bEJk4A4OlN2A1DaX2IQfXFD4ByKkx/nRt jTpHhd2Tqphfj8lJyB2CcDm5sMGFGrUrt5RumlAiWyT470hGdd+nzx8tmm/jOzQXbJF+CN3m KLbHdFrEujBtq1VO+rI9ERp5of2FxCwVf3ATCrgtruVvtd+79jW4DXTvWGaZR3pVdFQ1if/S 9gQ1 Message-ID: <07d3b6f9-9a7e-3b61-363e-336efc55582e@artifex.com> Date: Mon, 14 Oct 2019 15:41:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <88635.1571053253@localhost> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) On 14/10/2019 12:40, Ikumi Keita wrote: > Hi Chris, > >>>>>> Chris Liddell writes: >> Before you call .locksafe, adding something like: > >> systemdict /.addcontrolpath known >> { >> /PermitFileReading (bbb.pdf) .addcontrolpath >> /PermitFileReading (bbb.prv/tmp0UabeI/preview.dsc) .addcontrolpath >> } if > > Thank you, this improves the situation. However, preview-latex still > does not work. Ghostscript does not produce PNG files we expect and > sometimes raises errors. I quote a sample error at the last of this > message. > > I have an impression that gs fails to write out PNG files at specified > paths due to restricted permission about file operation. > > Regards, > Ikumi Keita > > /home/keita/gs/bin/gs -dOutputFile\=\(bbb.prv/tmp821SQO/pr1-2.png\) -q -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r108.606x108.587 > GS>systemdict /.addcontrolpath known { > /PermitFileReading (bbb.pdf) .addcontrolpath > /PermitFileReading (bbb.prv/tmp821SQO/preview.dsc) .addcontrolpath > } if > {<> setuserparams .locksafe} stopped pop {DELAYSAFER{.setsafe}if}stopped pop/.preview-BP currentpagedevice/BeginPage get dup null eq{pop{pop}bind}if def<>setpagedevice/preview-do{/.preview-ST[count 4 roll save]def dup length 0 eq{pop}{setpagedevice}{ifelse exec}stopped{handleerror quit}if .preview-ST aload pop restore}bind def (bbb.prv/tmp821SQO/preview.dsc)(r)file /.preview-ST 1 index def dup 0 setfileposition 499()/SubFileDecode filter cvx exec .preview-ST dup dup 550 setfileposition 52()/SubFileDecode filter cvx<<>>preview-do > > **** WARNING: .lockfileaccess or .setsafe called **** > **** when file access controls are already active **** > GPL Ghostscript GIT PRERELEASE 9.29: **** Could not open the file 'bbb.prv/tmp821SQO/pr1-1.png'. > Error: /invalidfileaccess in --showpage-- > Operand stack: > 1 true > Execution stack: > %interp_exit .runexec2 --nostringval-- showpage --nostringval-- 2 %stopped_push --nostringval-- showpage %loop_continue showpage showpage false 1 %stopped_push .runexec2 --nostringval-- showpage --nostringval-- 2 %stopped_push --nostringval-- showpage false 1 %stopped_push --nostringval-- showpage 4 1 3 showpage %for_pos_int_continue 1965 1 7 %oparray_pop showpage showpage 1824 0 9 %oparray_pop showpage showpage > Dictionary stack: > --dict:731/1123(ro)(G)-- --dict:1/20(G)-- --dict:84/200(L)-- --dict:84/200(L)-- --dict:135/256(ro)(G)-- --dict:315/325(ro)(G)-- --dict:33/64(L)-- --dict:6/9(L)-- --dict:6/20(L)-- > Current allocation mode is local > Last OS error: Permission denied The warning is benign, although it does indicate that you can calling .setsafe when SAFER is already active. But there are some things that are confusing. First, on your command line, your output file is in parentheses, but the file name in the error message does not have parentheses. Secondly, the file name on your command line is "bbb.prv/tmp821SQO/pr1-2.png" but the one in the error is "bbb.prv/tmp821SQO/pr1-1.png". So, clearly not the same file. The revised file access controls includes control over output files, so it is important the file names match, in these circumstances. If you are changing the output file name dynamically, from the one on the command line, you could add the output directory to the permitted write directories: systemdict /.addcontrolpath known { /PermitFileReading (bbb.pdf) .addcontrolpath /PermitFileReading (bbb.prv/tmp0UabeI/preview.dsc) .addcontrolpath /PermitFileWriting (bbb.prv/tmp821SQO/) .addcontrolpath } if (Note the trailing '/' on the writable path. This can also be done on the command line: --permit-file-write="bbb.prv/tmp821SQO/" Chris From unknown Mon Aug 18 17:54:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37719: [gs-devel] Recent ghostscript broke preview-latex again Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Mon, 14 Oct 2019 16:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37719 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Chris Liddell Cc: gs-devel@ghostscript.com, 37719@debbugs.gnu.org Received: via spool by 37719-submit@debbugs.gnu.org id=B37719.15710717408914 (code B ref 37719); Mon, 14 Oct 2019 16:49:02 +0000 Received: (at 37719) by debbugs.gnu.org; 14 Oct 2019 16:49:00 +0000 Received: from localhost ([127.0.0.1]:41599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK3Wm-0002Jh-67 for submit@debbugs.gnu.org; Mon, 14 Oct 2019 12:49:00 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:53110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK3Wi-0002JT-OI for 37719@debbugs.gnu.org; Mon, 14 Oct 2019 12:48:58 -0400 Received: from localhost (210-20-192-190.rev.home.ne.jp [210.20.192.190]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id 8559376; Tue, 15 Oct 2019 01:48:52 +0900 (JST) From: Ikumi Keita In-reply-to: <07d3b6f9-9a7e-3b61-363e-336efc55582e@artifex.com> References: <85502.1570990516@localhost> <5ca85d26-b5b2-da44-c438-5ce5951d31a9@artifex.com> <88635.1571053253@localhost> <07d3b6f9-9a7e-3b61-363e-336efc55582e@artifex.com> Comments: In-reply-to Chris Liddell message dated "Mon, 14 Oct 2019 15:41:35 +0100." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <97304.1571071732.1@localhost> Date: Tue, 15 Oct 2019 01:48:52 +0900 Message-ID: <97309.1571071732@localhost> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Chris, >>>>> Chris Liddell writes: > If you are changing the output file name dynamically, from the one on > the command line, you could add the output directory to the permitted > write directories: > systemdict /.addcontrolpath known > { > /PermitFileReading (bbb.pdf) .addcontrolpath > /PermitFileReading (bbb.prv/tmp0UabeI/preview.dsc) .addcontrolpath > /PermitFileWriting (bbb.prv/tmp821SQO/) .addcontrolpath > } if > (Note the trailing '/' on the writable path. Thank you very much, this basically sorts out things fine! >> **** WARNING: .lockfileaccess or .setsafe called **** >> **** when file access controls are already active **** > The warning is benign, although it does indicate that you can calling > .setsafe when SAFER is already active. This warning is problematic for preview-latex because preview-latex regards it as an error and does not pick up the associated image file into emacs buffer. So I changed an element in the initial command string given to ghostscript from {DELAYSAFER{.setsafe}if} to just {} in order to suppress the warning. This worked for me. However, I'm just doing try&error method and I cannot tell whether this change leads to security hole for earlier version of ghostscript. Can you tell about it? > This can also be done on the command line: > --permit-file-write="bbb.prv/tmp821SQO/" A brief survey shows that this command line option does not exist in Use.html of gs 9.27. So I suppose we should refrain from using it in preview-latex for compatibility with earlier gs. > But there are some things that are confusing. > First, on your command line, your output file is in parentheses, but the > file name in the error message does not have parentheses. I'm not sure what those parentheses are for. Maybe those are "quotes" for PS language and "consumed" by ghostscript? > Secondly, the file name on your command line is > "bbb.prv/tmp821SQO/pr1-2.png" but the one in the error is > "bbb.prv/tmp821SQO/pr1-1.png". So, clearly not the same file. Agreed. In general, preview-latex needs multiple image files for multiple math formulae in the latex document. As far as I understand, preview-latex invokes gs only once for those image files and gives input to its prompt "GS>" to produce one image file, and waits the next prompt to come up, and gives another input to it to produce another image file,... and repeats similar cycle until all image files are generated. So I think that the error message for "...pr1-1.png" was injected just after preview-latex gave input for "..pr1-2.png", and those were recorded in the emacs buffer for inter-process communication in that order. Best regards, Ikumi Keita From unknown Mon Aug 18 17:54:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37719: [gs-devel] Recent ghostscript broke preview-latex again Resent-From: Chris Liddell Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Mon, 14 Oct 2019 17:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37719 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: gs-devel@ghostscript.com, 37719@debbugs.gnu.org Received: via spool by 37719-submit@debbugs.gnu.org id=B37719.157107540915288 (code B ref 37719); Mon, 14 Oct 2019 17:51:02 +0000 Received: (at 37719) by debbugs.gnu.org; 14 Oct 2019 17:50:09 +0000 Received: from localhost ([127.0.0.1]:41648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK4Tx-0003yV-3v for submit@debbugs.gnu.org; Mon, 14 Oct 2019 13:50:09 -0400 Received: from mail-wm1-f48.google.com ([209.85.128.48]:53374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK4Tv-0003xn-DW for 37719@debbugs.gnu.org; Mon, 14 Oct 2019 13:50:08 -0400 Received: by mail-wm1-f48.google.com with SMTP id i16so18157218wmd.3 for <37719@debbugs.gnu.org>; Mon, 14 Oct 2019 10:50:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=artifex-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=UcAf5lCfYbbQOATltYF+6BcCgZVMqt1CMsCaSXGmi7c=; b=xVF7T8nyZVAQjpL7c86BRMbV9IC9nnCP+wPSvtVjrnv72IRYTuzudomvXSJu3FRyxE DrrE3nJksIIoboJIgVbk7sH/b7K84Fva4Jwr4qHj7tE8yoBvirWnA0qnrGHYuhSZ4w0r VZ7Kf/S+NJmBSpool3bzk6M6Px7o6hwsAaZyKx2Ami8UpRV6ce8toOJeyxjUtVc9jsXI HLW1arFvFzgpUvFx8XKr16DNFEsBuoXwMn+lBRGncrE4a/guMPuyERwHj6OEqTmF/0kr znt2lg1dONeBVy59d8gAV1E8Hmhpc1HtgI9mDMc7hxiyQRjWYiMurLxJJGkOnT1TwLVS yfUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=UcAf5lCfYbbQOATltYF+6BcCgZVMqt1CMsCaSXGmi7c=; b=tpyIrqaDGhAOQKJHD/AFViJvDuSSk6XwwgkHeaL3BprvSv5aM3N1P0bg5NKDQsDCa/ re1QtyNErbT20UUHCw4vWfLd2EU6/B/uBVQn3EILR8UH+3t8mFONe+wkoZuXAJBq/tjP k+Wj7WAwaEsLCcHzqCWo6Rqvpm1tfni3i6hcAGjqU4wht/tqMlPLCnxl6g0GjNfis4e9 jTxZAouqB1ivZNrGVDMI2DNR4TUKmuehaOYep9qbaIMy38qFYQjIlbU2qGan+B8JFy3H EiC+2v1RckQKMLg0HLdC9+J3Cw3rO6lvAkSAikL3SJbP8VjcMRbVcJMutINKEIncJzT+ m6yw== X-Gm-Message-State: APjAAAXSjH4fSpsFtcW/LcKvNdgGqoRaYnXqw+3qb5JkR19QR+lN8XG5 Tod6DbmXfFgwFQJVfe24zAgZl2Ejz4BwMA== X-Google-Smtp-Source: APXvYqxjAVug+zuZfGysB6tpmwgQ1GDZJFjMY/szTWHmub4nD28t2ocH7rQglcvRZEoRm5rwsVy4Ow== X-Received: by 2002:a7b:ce88:: with SMTP id q8mr15047131wmj.160.1571075399445; Mon, 14 Oct 2019 10:49:59 -0700 (PDT) Received: from [192.168.1.137] (cpc75872-ando7-2-0-cust954.15-1.cable.virginm.net. [86.13.79.187]) by smtp.gmail.com with ESMTPSA id a2sm21205423wrp.11.2019.10.14.10.49.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Oct 2019 10:49:58 -0700 (PDT) References: <85502.1570990516@localhost> <5ca85d26-b5b2-da44-c438-5ce5951d31a9@artifex.com> <88635.1571053253@localhost> <07d3b6f9-9a7e-3b61-363e-336efc55582e@artifex.com> <97309.1571071732@localhost> From: Chris Liddell Message-ID: <5c818fe8-bdd9-a98b-62b8-c4d93986651b@artifex.com> Date: Mon, 14 Oct 2019 18:49:57 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <97309.1571071732@localhost> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) Hi Ikumi, On 14/10/2019 17:48, Ikumi Keita wrote: > Hi Chris, > >>>>>> Chris Liddell writes: >> If you are changing the output file name dynamically, from the one on >> the command line, you could add the output directory to the permitted >> write directories: > >> systemdict /.addcontrolpath known >> { >> /PermitFileReading (bbb.pdf) .addcontrolpath >> /PermitFileReading (bbb.prv/tmp0UabeI/preview.dsc) .addcontrolpath >> /PermitFileWriting (bbb.prv/tmp821SQO/) .addcontrolpath >> } if > >> (Note the trailing '/' on the writable path. > > Thank you very much, this basically sorts out things fine! So, just so you know what's going on: the trailing '/' means you are allowing Ghostscript to write to any file name in that directory, but *only* that directory. If you wanted to allow Ghostscript to write to any file in that directory, or subdirectory, you could use: /PermitFileWriting (bbb.prv/tmp821SQO/*) .addcontrolpath >>> **** WARNING: .lockfileaccess or .setsafe called **** >>> **** when file access controls are already active **** > >> The warning is benign, although it does indicate that you can calling >> .setsafe when SAFER is already active. > > This warning is problematic for preview-latex because preview-latex > regards it as an error and does not pick up the associated image file > into emacs buffer. So I changed an element in the initial command > string given to ghostscript from > {DELAYSAFER{.setsafe}if} > to just > {} > in order to suppress the warning. This worked for me. However, I'm > just doing try&error method and I cannot tell whether this change leads > to security hole for earlier version of ghostscript. Can you tell about > it? Well, I suppose we shouldn't get into a warning is a warning, not an error, and generally should not be treated as an error..... The warning was added at the request of a user doing similar sorts of thing to you: he didn't realise that the way his code was working meant .setsafe was being called multiple times. Anyway, have it work safely, you'll want something like: { DELAYSAFER { systemdict /.currentpathcontrolstate known { .currentpathcontrolstate not { .setsafe } if } { .setsafe } ifelse } if } But, I'm going to make that warning honour the -dQUIET/-q parameter, so you won't have to worry about that. I'll push the commit tomorrow morning, and it'll be in the pending release. >> This can also be done on the command line: >> --permit-file-write="bbb.prv/tmp821SQO/" > > A brief survey shows that this command line option does not exist in > Use.html of gs 9.27. So I suppose we should refrain from using it in > preview-latex for compatibility with earlier gs. Yes, and given your workflow, there's no advantage to using the command line, I only mentioned as information. >> But there are some things that are confusing. > >> First, on your command line, your output file is in parentheses, but the >> file name in the error message does not have parentheses. > > I'm not sure what those parentheses are for. Maybe those are "quotes" > for PS language and "consumed" by ghostscript? > >> Secondly, the file name on your command line is >> "bbb.prv/tmp821SQO/pr1-2.png" but the one in the error is >> "bbb.prv/tmp821SQO/pr1-1.png". So, clearly not the same file. > > Agreed. In general, preview-latex needs multiple image files for > multiple math formulae in the latex document. As far as I understand, > preview-latex invokes gs only once for those image files and gives input > to its prompt "GS>" to produce one image file, and waits the next prompt > to come up, and gives another input to it to produce another image > file,... and repeats similar cycle until all image files are generated. > > So I think that the error message for "...pr1-1.png" was injected just > after preview-latex gave input for "..pr1-2.png", and those were > recorded in the emacs buffer for inter-process communication in that > order. OKay, that's not how I think I'd have done it, but it makes sense of what you're seeing. So, a big, important thing to realise about the new file access controls we've implemented: they cannot be deactivated (even with a save/restore). That *is* a departure from the previous implementation, but we really had no choice. On the other hand, by allowing you to setup a writable directory, there is no need to deactivate the controls. Chris From unknown Mon Aug 18 17:54:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37719: [gs-devel] Recent ghostscript broke preview-latex again Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Tue, 15 Oct 2019 07:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37719 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Chris Liddell Cc: gs-devel@ghostscript.com, 37719@debbugs.gnu.org Received: via spool by 37719-submit@debbugs.gnu.org id=B37719.157112394328198 (code B ref 37719); Tue, 15 Oct 2019 07:20:02 +0000 Received: (at 37719) by debbugs.gnu.org; 15 Oct 2019 07:19:03 +0000 Received: from localhost ([127.0.0.1]:42625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iKH6k-0007Kk-Lc for submit@debbugs.gnu.org; Tue, 15 Oct 2019 03:19:03 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:36962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iKH6e-0007KA-4w for 37719@debbugs.gnu.org; Tue, 15 Oct 2019 03:18:58 -0400 Received: from localhost (210-20-192-190.rev.home.ne.jp [210.20.192.190]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id 061217C; Tue, 15 Oct 2019 16:18:53 +0900 (JST) From: Ikumi Keita In-reply-to: <5c818fe8-bdd9-a98b-62b8-c4d93986651b@artifex.com> References: <85502.1570990516@localhost> <5ca85d26-b5b2-da44-c438-5ce5951d31a9@artifex.com> <88635.1571053253@localhost> <07d3b6f9-9a7e-3b61-363e-336efc55582e@artifex.com> <97309.1571071732@localhost> <5c818fe8-bdd9-a98b-62b8-c4d93986651b@artifex.com> Comments: In-reply-to Chris Liddell message dated "Mon, 14 Oct 2019 18:49:57 +0100." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1423.1571123932.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Tue, 15 Oct 2019 16:18:52 +0900 Message-ID: <1426.1571123932@localhost> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Chris, >>>>> Chris Liddell writes: > But, I'm going to make that warning honour the -dQUIET/-q parameter, so > you won't have to worry about that. I'll push the commit tomorrow > morning, and it'll be in the pending release. Thanks, we appreciate your kindness. >>> But there are some things that are confusing. >> = >>> First, on your command line, your output file is in parentheses, but t= he >>> file name in the error message does not have parentheses. >> = >> I'm not sure what those parentheses are for. Maybe those are "quotes" >> for PS language and "consumed" by ghostscript? >> = >>> Secondly, the file name on your command line is >>> "bbb.prv/tmp821SQO/pr1-2.png" but the one in the error is >>> "bbb.prv/tmp821SQO/pr1-1.png". So, clearly not the same file. >> = >> Agreed. In general, preview-latex needs multiple image files for >> multiple math formulae in the latex document. As far as I understand, >> preview-latex invokes gs only once for those image files and gives inpu= t >> to its prompt "GS>" to produce one image file, and waits the next promp= t >> to come up, and gives another input to it to produce another image >> file,... and repeats similar cycle until all image files are generated. >> = >> So I think that the error message for "...pr1-1.png" was injected just >> after preview-latex gave input for "..pr1-2.png", and those were >> recorded in the emacs buffer for inter-process communication in that >> order. > OKay, that's not how I think I'd have done it, but it makes sense of > what you're seeing. I have to apologize for having failed to tell you correctly the invocation string of ghostscript. The debug facility of preview-latex didn't record literally how it invoked gs and I didn't notice that. Preview-latex actually called gs as /home/keita/gs/bin/gs -dOutputFile\=3D\(bbb.prv/tmp0UabeI/pr1-\%d.png\) -q= -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=3D4 -dGra= phicsAlphaBits\=3D4 -sDEVICE\=3Dpng16m -r108.606x108.587 -dDELAYBIND . The parameter for -dOutputFile contains "%d", not a constant number. Triggered by this discovery, I managed to tame preview-latex to work without /PermitFileWriting. After reading portion of Use.html, I understood the true origin of the error: (1) OutputFile parameter is given with "-d" option rather than "-s". This is the reason why the output file name is surrounded by parentheses. (2) Ghostscript>9.27 disables "%d" specification in OutputFile parameter if it is given with "-d" option. I observe that gs 9.27 finishes without any problems while gs>9.27 does not: > gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=3Dpgmraw -r150 \ -dTextAlphaBits=3D4 -dOutputFile=3D'(sample-%00d.pgm)' sample.= ps GPL Ghostscript 9.27 (2019-04-04) Copyright (C) 2018 Artifex Software, Inc. All rights reserved. This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY: see the file COPYING for details. > ~/gs/bin/gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=3Dpgmraw -r150 \ -dTextAlphaBits=3D4 -dOutputFile=3D'(sample-%00d.pgm)' sample.= ps GPL Ghostscript GIT PRERELEASE 9.29 (2019-08-15) Copyright (C) 2019 Artifex Software, Inc. All rights reserved. This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY: see the file COPYING for details. GPL Ghostscript GIT PRERELEASE 9.29: **** Could not open the file 'sample-= 1.pgm'. Error: /invalidfileaccess in --showpage-- Operand stack: 1 true Execution stack: %interp_exit .runexec2 --nostringval-- showpage --nostringval--= 2 %stopped_push --nostringval-- showpage showpage false 1 = %stopped_pu sh 1974 1 3 %oparray_pop 1973 1 3 %oparray_pop 1961 1 = 3 %oparray_pop 1817 1 3 %oparray_pop --nostringval-- %erro= rexec_pop .runexec2 --nostringval-- showpage --nostringval-- 2 = %stopped_push --nostringval-- 1824 0 4 %oparray_pop showpage = showpage Dictionary stack: --dict:727/1123(ro)(G)-- --dict:1/20(G)-- --dict:85/200(L)-- --di= ct:179/300(L)-- Current allocation mode is local Last OS error: Permission denied Current file position is 119708 GPL Ghostscript GIT PRERELEASE 9.29: Unrecoverable error, exit code 1 (These command line string are taken from an example in Use.html and I don't understand most of them.) (3) The "%d" specification in OutputFile parameter is valid if given with "-s" option, even with gs>9.27: > ~/gs/bin/gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=3Dpgmraw -r150 \ -dTextAlphaBits=3D4 -sOutputFile=3D'sample-%00d.pgm' sample.ps GPL Ghostscript GIT PRERELEASE 9.29 (2019-08-15) Copyright (C) 2019 Artifex Software, Inc. All rights reserved. This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY: see the file COPYING for details. (It finishes without any problems.) (4) So I changed preview-latex to use "-s" option instead of "-d" for OutputFile parameter and to remove parentheses around the file name containing "%d". With this change, I confirmed that /PermitFileWriting is no longer necessary. Regards, Ikumi Keita From unknown Mon Aug 18 17:54:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37719: [gs-devel] Recent ghostscript broke preview-latex again Resent-From: Chris Liddell Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Tue, 15 Oct 2019 11:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37719 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: gs-devel@ghostscript.com, 37719@debbugs.gnu.org Received: via spool by 37719-submit@debbugs.gnu.org id=B37719.157113791225586 (code B ref 37719); Tue, 15 Oct 2019 11:12:01 +0000 Received: (at 37719) by debbugs.gnu.org; 15 Oct 2019 11:11:52 +0000 Received: from localhost ([127.0.0.1]:42805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iKKk4-0006ec-G5 for submit@debbugs.gnu.org; Tue, 15 Oct 2019 07:11:52 -0400 Received: from mail-wm1-f51.google.com ([209.85.128.51]:56129) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iKKk1-0006eO-Nl for 37719@debbugs.gnu.org; Tue, 15 Oct 2019 07:11:51 -0400 Received: by mail-wm1-f51.google.com with SMTP id a6so20374929wma.5 for <37719@debbugs.gnu.org>; Tue, 15 Oct 2019 04:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=artifex-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=KiFDnPpODz5RwQ1N7z+jrzVIITUE/gCluwQ3kFueJsg=; b=lrnifmyw2/pr1k/tOC0pszngzZekRUUlJWwiQ/DBG3wi8NbRVSy6cz7E+wOuuvK8TH LADTnj7RuobERlmExkIh4qMZ+VVwPHENCJFyT/W0ZlLm7HSD10eAL73NKz9OBK+2w6YI /yRQw7IDmsfLbPYGLUG6/cXbrtjAeI9yETTXFq1aPVwAZVs4b59lM+pyROD1zkXa93tx 6Eu8hhIOXCCZImrDGzM/RwGMQaYTWin0iecliCkQY9f+hO9xI2naRpr5wqlAt6i5Aj3V ZYIivkrLivDPXl3MAVRLBSTaRwCeYW/ul3mbWH5AL5WNYb5xg+VqW/G5wooxZppG+G44 2+KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=KiFDnPpODz5RwQ1N7z+jrzVIITUE/gCluwQ3kFueJsg=; b=FFklgbFXikt1DC6jM7M4czzERSJsoKum9a+0dv64QEVzHa4bpWaKlVhUjkRDft+9s6 9DT08evXQRd7ib8+dfIIm8ll5lkUQMrbhOTZBwF9vTSQ3sNfNlSBV7HtwSi2keVtNOo0 bW6Q818hvrWoGXq+QJ1mN7DvYGKq2pvRhsQ91/ho5RZCuFW7jg7btnkICd3Ct3WHAV/2 dKOKHAXNGgzdb5eB3gXee2Y4yT/B0O5x/vQXXtC932V0Xo1tpWPhYvc+S5aQxtdsLC51 HOhVvm8tLja1eNzvnXhtX28Pt5ivIuozAohMC/eqq0uwJuphdlj8AWAyhcf9XLn53Rm7 cY7A== X-Gm-Message-State: APjAAAXVvudJNz54DZqbaN8sxMB+GOOQVHTtXXZENSrWgAD/V2PnTfYy u/dw01LhKaDN1Rfjqa7fhVovaQkwxfbB9w== X-Google-Smtp-Source: APXvYqwAKXzBX16igxoYWHUhkGKgQmhE8EpE+THZE32mZVoeuk/IJdU6PSuQI0h1n9S0aC/ePWBIqQ== X-Received: by 2002:a7b:c413:: with SMTP id k19mr20198691wmi.175.1571137903519; Tue, 15 Oct 2019 04:11:43 -0700 (PDT) Received: from [192.168.1.137] (cpc75872-ando7-2-0-cust954.15-1.cable.virginm.net. [86.13.79.187]) by smtp.gmail.com with ESMTPSA id z1sm2793199wrn.57.2019.10.15.04.11.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Oct 2019 04:11:42 -0700 (PDT) References: <85502.1570990516@localhost> <5ca85d26-b5b2-da44-c438-5ce5951d31a9@artifex.com> <88635.1571053253@localhost> <07d3b6f9-9a7e-3b61-363e-336efc55582e@artifex.com> <97309.1571071732@localhost> <5c818fe8-bdd9-a98b-62b8-c4d93986651b@artifex.com> <1426.1571123932@localhost> From: Chris Liddell Message-ID: Date: Tue, 15 Oct 2019 12:11:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <1426.1571123932@localhost> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) On 15/10/2019 08:18, Ikumi Keita wrote: > Hi Chris, > >>>>>> Chris Liddell writes: > > I have to apologize for having failed to tell you correctly the > invocation string of ghostscript. The debug facility of preview-latex > didn't record literally how it invoked gs and I didn't notice that. > Preview-latex actually called gs as > > /home/keita/gs/bin/gs -dOutputFile\=\(bbb.prv/tmp0UabeI/pr1-\%d.png\) -q -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r108.606x108.587 -dDELAYBIND > > . The parameter for -dOutputFile contains "%d", not a constant number. I'm slightly stunned that using -d worked at all, ever. It certainly wouldn't work as expected. Anyway, I'm relieved you got to the bottom of it. I know I've been saying this a lot, but I'm sorry for the upheaval that's been going on, and I hope everyone understands that we wouldn't be doing all this if we weren't sure of the necessity. And I really appreciate you (and others) sticking with us to work through these issues. Regards, Chris From unknown Mon Aug 18 17:54:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37719: 11.91; preview-latex not working (again?) Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Tue, 15 Oct 2019 12:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37719 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Dylan Thurston Cc: gs-devel@ghostscript.com, 37719@debbugs.gnu.org Received: via spool by 37719-submit@debbugs.gnu.org id=B37719.15711413416190 (code B ref 37719); Tue, 15 Oct 2019 12:09:02 +0000 Received: (at 37719) by debbugs.gnu.org; 15 Oct 2019 12:09:01 +0000 Received: from localhost ([127.0.0.1]:42834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iKLdM-0001bm-MG for submit@debbugs.gnu.org; Tue, 15 Oct 2019 08:09:00 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:41922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iKLdK-0001bc-2p for 37719@debbugs.gnu.org; Tue, 15 Oct 2019 08:08:59 -0400 Received: from localhost (210-20-192-190.rev.home.ne.jp [210.20.192.190]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id 36BC17C; Tue, 15 Oct 2019 21:08:55 +0900 (JST) From: Ikumi Keita In-reply-to: <20191013184917.GA17563@whitehail.bostoncoop.net> References: <20191012161106.GA1224@whitehail.bostoncoop.net> <50458.1570971345@localhost> <20191013153149.GA17825@whitehail.bostoncoop.net> <84556.1570988043@localhost> <20191013184917.GA17563@whitehail.bostoncoop.net> Comments: In-reply-to Dylan Thurston message dated "Sun, 13 Oct 2019 14:49:17 -0400." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18642.1571141334.1@localhost> Date: Tue, 15 Oct 2019 21:08:54 +0900 Message-ID: <18643.1571141334@localhost> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Dylan, >>>>> Dylan Thurston writes: > I can confirm that I was using Debian, and version 9.28~~rc4~dfsg-1 of > ghostscript. I've just pushed fix for this trouble into the git repository. Unfortunately, it doesn't work with gs 9.28RC because of a warning it emits. Only the latest development version of ghostscript suppresses it under preview-latex. Use gs 9.27 until Debian distributes gs binary with the latest change incorporated, or use gs 9.28RC while you edit preview.el in AUCTeX so that "{DELAYSAFER{.setsafe}if}" is turned into "{}" in the function `preview-gs-open' (and, of course, byte-compile it). I thank Chris Liddell for his valuable advices for using ghostscript under preview-latex. Regards, Ikumi Keita From unknown Mon Aug 18 17:54:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37719: 11.91; preview-latex not working (again?) Resent-From: Dylan Thurston Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Wed, 16 Oct 2019 13:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37719 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: gs-devel@ghostscript.com, 37719@debbugs.gnu.org Received: via spool by 37719-submit@debbugs.gnu.org id=B37719.15712335031713 (code B ref 37719); Wed, 16 Oct 2019 13:46:01 +0000 Received: (at 37719) by debbugs.gnu.org; 16 Oct 2019 13:45:03 +0000 Received: from localhost ([127.0.0.1]:45436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iKjbr-0000RY-C4 for submit@debbugs.gnu.org; Wed, 16 Oct 2019 09:45:03 -0400 Received: from whitehail.bostoncoop.net ([74.50.63.164]:59298 helo=bostoncoop.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iKjbo-0000Qi-HT for 37719@debbugs.gnu.org; Wed, 16 Oct 2019 09:45:01 -0400 Received: from bostoncoop.net (localhost [127.0.0.1]) by bostoncoop.net (Postfix) with ESMTP id DDE2D1C15DC; Wed, 16 Oct 2019 09:44:50 -0400 (EDT) Received: by bostoncoop.net (Postfix, from userid 1030) id D26D21C16F4; Wed, 16 Oct 2019 09:44:50 -0400 (EDT) Date: Wed, 16 Oct 2019 09:44:50 -0400 From: Dylan Thurston Message-ID: <20191016134450.GA29753@whitehail.bostoncoop.net> References: <20191012161106.GA1224@whitehail.bostoncoop.net> <50458.1570971345@localhost> <20191013153149.GA17825@whitehail.bostoncoop.net> <84556.1570988043@localhost> <20191013184917.GA17563@whitehail.bostoncoop.net> <18643.1571141334@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18643.1571141334@localhost> User-Agent: Mutt/1.5.23 (2014-03-12) X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, Oct 15, 2019 at 09:08:54PM +0900, Ikumi Keita wrote: > Hi Dylan, > > >>>>> Dylan Thurston writes: > > I can confirm that I was using Debian, and version 9.28~~rc4~dfsg-1 of > > ghostscript. > > I've just pushed fix for this trouble into the git repository. > Unfortunately, it doesn't work with gs 9.28RC because of a warning it > emits. Only the latest development version of ghostscript suppresses it > under preview-latex. > Use gs 9.27 until Debian distributes gs binary with the latest change > incorporated, or use gs 9.28RC while you edit preview.el in AUCTeX so > that "{DELAYSAFER{.setsafe}if}" is turned into "{}" in the function > `preview-gs-open' (and, of course, byte-compile it). > > I thank Chris Liddell for his valuable advices for using ghostscript > under preview-latex. Thank you for the quick fix! I will check it out when gs gets updated (hopefully not very long). I note that Debian unstable just yesterday upgraded to version 9.50, which was released Sept. 30; I assume that is not recent enough? --Dylan From unknown Mon Aug 18 17:54:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37719: 11.91; preview-latex not working (again?) Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Wed, 16 Oct 2019 14:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37719 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Dylan Thurston Cc: gs-devel@ghostscript.com, 37719@debbugs.gnu.org Received: via spool by 37719-submit@debbugs.gnu.org id=B37719.15712348864626 (code B ref 37719); Wed, 16 Oct 2019 14:09:01 +0000 Received: (at 37719) by debbugs.gnu.org; 16 Oct 2019 14:08:06 +0000 Received: from localhost ([127.0.0.1]:46326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iKjy9-0001CY-Or for submit@debbugs.gnu.org; Wed, 16 Oct 2019 10:08:06 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:57302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iKjy6-0001C5-E6 for 37719@debbugs.gnu.org; Wed, 16 Oct 2019 10:08:04 -0400 Received: from localhost (210-20-192-190.rev.home.ne.jp [210.20.192.190]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id F0F679C; Wed, 16 Oct 2019 23:07:59 +0900 (JST) From: Ikumi Keita In-reply-to: <20191016134450.GA29753@whitehail.bostoncoop.net> References: <20191012161106.GA1224@whitehail.bostoncoop.net> <50458.1570971345@localhost> <20191013153149.GA17825@whitehail.bostoncoop.net> <84556.1570988043@localhost> <20191013184917.GA17563@whitehail.bostoncoop.net> <18643.1571141334@localhost> <20191016134450.GA29753@whitehail.bostoncoop.net> Comments: In-reply-to Dylan Thurston message dated "Wed, 16 Oct 2019 09:44:50 -0400." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <41425.1571234879.1@localhost> Date: Wed, 16 Oct 2019 23:07:59 +0900 Message-ID: <41428.1571234879@localhost> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Dylan, >>>>> Dylan Thurston writes: >> I've just pushed fix for this trouble into the git repository. >> Unfortunately, it doesn't work with gs 9.28RC because of a warning it >> emits. Only the latest development version of ghostscript suppresses it >> under preview-latex. > Thank you for the quick fix! I will check it out when gs gets updated > (hopefully not very long). I note that Debian unstable just yesterday > upgraded to version 9.50, which was released Sept. 30; I assume that > is not recent enough? That's recent enough so you can use it with the latest AUCTeX in git repo. Ghostscript 9.50 was actually released just yesterday. I suppose it was planned to be released on Sept. 30 but delayed until yesterday. Bye, Ikumi Keita From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 06 10:11:52 2019 Received: (at control) by debbugs.gnu.org; 6 Dec 2019 15:11:53 +0000 Received: from localhost ([127.0.0.1]:46891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1idFGq-0000bF-J7 for submit@debbugs.gnu.org; Fri, 06 Dec 2019 10:11:52 -0500 Received: from smtp1.inetd.co.jp ([210.129.88.11]:34662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1idFGp-0000b4-3M for control@debbugs.gnu.org; Fri, 06 Dec 2019 10:11:51 -0500 Received: from localhost (210-20-192-190.rev.home.ne.jp [210.20.192.190]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id 48BD774 for ; Sat, 7 Dec 2019 00:11:50 +0900 (JST) To: control@debbugs.gnu.org From: Ikumi Keita Subject: control message for bug #37719 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1451.1575645109.1@localhost> Date: Sat, 07 Dec 2019 00:11:49 +0900 Message-ID: <1453.1575645109@localhost> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 37719 fixed close 37719 quit