[GHC] #12571: GHC panic

GHC ghc-devs at haskell.org
Mon Sep 5 09:03:57 UTC 2016


#12571: GHC panic
-------------------------------------+-------------------------------------
        Reporter:  prsteele          |                Owner:
            Type:  bug               |               Status:  infoneeded
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Linux             |         Architecture:  x86_64
 Type of failure:  Compile-time      |  (amd64)
  crash                              |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by mpickering):

 From initial inspection, it seems that the reason for the message is that
 `postgresql-simple` uses bytestrings to represent the query type.
 Basically every function in the bytestring library is marked inline so
 when the `String` is converted to a `Bytestring` using the builder
 function which maps over the whole string, a lot of inlining is then
 exposed which GHC dutifully performs. The reason this trips things up is
 that your strings are quite long I think and there are quite a few of them
 in the file.

 So I'm not sure what to suggest here, it seems the best would be to just
 keep the flag in your cabal file as the compile time didn't seem too long
 to me.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12571#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list