[GHC] #9517: hp2ps generates invalid postscript file

#9517: hp2ps generates invalid postscript file -----------------------------+---------------------------------- Reporter: JamesM | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Profiling | Version: 7.8.3 Keywords: | Operating System: MacOS X Architecture: x86 | Type of failure: Other Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -----------------------------+---------------------------------- Some of the outputs have a name such as foo(...). However, the postscript generation does not add an extra closing parenthesis after the foo(...). Example from attachment on line 410. ((447)modifyEdge.newEdges.(...) show This should presumably be: ((447)modifyEdge.newEdges.\(...\)) show Output from ps2pdf: Error: /syntaxerror in -file- Operand stack: Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1900 1 3 %oparray_pop 1899 1 3 %oparray_pop 1883 1 3 %oparray_pop 1771 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push Dictionary stack: --dict:1163/1684(ro)(G)-- --dict:0/20(G)-- --dict:79/200(L)-- Current allocation mode is local Last OS error: No such file or directory Current file position is 40721 GPL Ghostscript 9.07: Unrecoverable error, exit code 1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9517 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9517: hp2ps generates invalid postscript file ------------------------------------+--------------------------- Reporter: JamesM | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Profiling | Version: 7.8.3 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86 Type of failure: Other | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | ------------------------------------+--------------------------- Comment (by Yxven): I've also encountered this bug. If it helps to have a code base that can create this bug, this commit broke -hc for me. https://github.com/Yxven/roguelike/commit/5bbba34cfea3a12e2e0038f390e8eab9b2... Changing maximumCoordinate = 100 * tileSize to maximumCoordinate = 5 * tileSize causes hp2ps to bug out. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9517#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9517: hp2ps generates invalid postscript file -------------------------------------+------------------------------------- Reporter: JamesM | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Profiling | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by zardoz): * version: 7.8.3 => 7.10.2 * os: MacOS X => Unknown/Multiple * architecture: x86 => Unknown/Multiple Comment: I’m also encountering this all the time on Linux, GHC 7.10.2. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9517#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9517: hp2ps generates invalid postscript file -------------------------------------+------------------------------------- Reporter: JamesM | Owner: Type: bug | Status: patch Priority: normal | Milestone: Component: Profiling | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2398 Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => patch * differential: => Phab:D2398 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9517#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9517: hp2ps generates invalid postscript file
-------------------------------------+-------------------------------------
Reporter: JamesM | Owner:
Type: bug | Status: patch
Priority: normal | Milestone:
Component: Profiling | Version: 7.10.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D2398
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#9517: hp2ps generates invalid postscript file -------------------------------------+------------------------------------- Reporter: JamesM | Owner: Type: bug | Status: merge Priority: normal | Milestone: 8.0.2 Component: Profiling | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2398 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => merge * milestone: => 8.0.2 Comment: Merged. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9517#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9517: hp2ps generates invalid postscript file -------------------------------------+------------------------------------- Reporter: JamesM | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.2 Component: Profiling | Version: 7.10.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2398 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: Merged to `ghc-8.0` as 11200a08a14751c59ee70018c5078e85abebdb2f. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9517#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC