[GHC] #16186: Segfault when embedding data via file-embed.

GHC ghc-devs at haskell.org
Tue Jan 15 14:30:58 UTC 2019


#16186: Segfault when embedding data via file-embed.
----------------------------------------+---------------------------------
           Reporter:  syd               |             Owner:  (none)
               Type:  bug               |            Status:  new
           Priority:  normal            |         Milestone:
          Component:  Compiler          |           Version:  8.4.3
           Keywords:                    |  Operating System:  Linux
       Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
          Test Case:                    |        Blocked By:
           Blocking:                    |   Related Tickets:
Differential Rev(s):                    |         Wiki Page:
----------------------------------------+---------------------------------
 I made a minimal reproducible-ish example here:

 https://github.com/NorfairKing/nix-segfault-haskell

 and described it at length here:

 https://github.com/NixOS/nixpkgs/issues/52439#issuecomment-453872693

 The problem seems to occur (randomly) when literal strings are embedded
 via TH.
 By the way: to embed about 10MiB of data, 12 cores are being used at 100%
 which seems mildly absurd.

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


More information about the ghc-tickets mailing list