[GHC] #14028: ghc panic: -fexternal-interpreter + .o + QuasiQuotes?
#14028: ghc panic: -fexternal-interpreter + .o + QuasiQuotes? -------------------------------------+------------------------------------- Reporter: blynn | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Keywords: ghc panic | Operating System: Linux impossible | Architecture: x86_64 | Type of failure: Compile-time (amd64) | crash or panic Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- 1. Compile an object file with -fPIC, e.g: {{{ cat > hello.c << EOF #include <stdio.h> void hi(){puts("Hello, World!");} EOF gcc -c -fPIC hello.c }}} 2. Write Haskell that uses QuasiQuotes, e.g: {{{ cat > h.hs << EOF {-# LANGUAGE QuasiQuotes #-} import Text.Heredoc (here) s :: String s = [here|goes nothing|] EOF }}} 3. Compile with -fexternal-interpreter: {{{ cabal install heredoc ghc -fexternal-interpreter h.hs hello.o }}} I saw: [1 of 1] Compiling Main ( h.hs, h.o ) ghc: panic! (the 'impossible' happened) (GHC version 8.0.2 for x86_64-unknown-linux): Loading temp shared object failed: /home/blynn/.local/lib/ghc-8.0.2/ghc-prim-0.5.0.0/libHSghc- prim-0.5.0.0-ghc8.0.2.so: undefined symbol: stg_thawArrayzh Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14028> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#14028: ghc panic: -fexternal-interpreter + .o + QuasiQuotes? -------------------------------------+------------------------------------- Reporter: blynn | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Resolution: | Keywords: ghc panic | impossible Operating System: Linux | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by blynn): * Attachment "h.hs" added. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14028> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#14028: ghc panic: -fexternal-interpreter + .o + QuasiQuotes? -------------------------------------+------------------------------------- Reporter: blynn | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Resolution: | Keywords: ghc panic | impossible Operating System: Linux | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by blynn): * Attachment "hello.c" added. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14028> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#14028: ghc panic: -fexternal-interpreter + .o + QuasiQuotes? -------------------------------------+------------------------------------- Reporter: blynn | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Resolution: | Keywords: ghc panic | impossible Operating System: Linux | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by blynn): * Attachment "Makefile" added. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14028> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#14028: ghc panic: -fexternal-interpreter + .o + QuasiQuotes? -------------------------------------+------------------------------------- Reporter: blynn | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.2 Resolution: fixed | Keywords: ghc panic | impossible Operating System: Linux | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash or panic | Test Case: T14028 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * testcase: => T14028 * resolution: => fixed * milestone: => 8.2.1 Comment: This appears to be fixed in 8.2.1. Yay! See Phab:D3788 for testcase. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14028#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#14028: ghc panic: -fexternal-interpreter + .o + QuasiQuotes? -------------------------------------+------------------------------------- Reporter: blynn | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.2 Resolution: fixed | Keywords: ghc panic | impossible Operating System: Linux | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash or panic | Test Case: T14028 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"262bb95f5e00eea783d3e756fe86d96839be45d7/ghc" 262bb95/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="262bb95f5e00eea783d3e756fe86d96839be45d7" testsuite: Add test for #14028 Reviewers: austin Subscribers: rwbarton, thomie GHC Trac Issues: #14028 Differential Revision: https://phabricator.haskell.org/D3788 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14028#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#14028: ghc panic: -fexternal-interpreter + .o + QuasiQuotes? -------------------------------------+------------------------------------- Reporter: blynn | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.2 Resolution: fixed | Keywords: ghc panic | impossible Operating System: Linux | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash or panic | Test Case: T14028 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"84f8e86248d47f619a94c68260876a1258e0a931/ghc" 84f8e86/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="84f8e86248d47f619a94c68260876a1258e0a931" Ensure that GHC.Stack.callStack doesn't fail Test Plan: Validate, ensure the `f7` program of `IPLocation` doesn't crash. Reviewers: gridaphobe, austin, hvr Reviewed By: gridaphobe Subscribers: rwbarton, thomie GHC Trac Issues: #14028 Differential Revision: https://phabricator.haskell.org/D3795 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14028#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC