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

GHC ghc-devs at haskell.org
Tue Jan 15 15:56:15 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
      Resolution:                |             Keywords:
Operating System:  Linux         |         Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown  |            Test Case:
      Blocked By:                |             Blocking:
 Related Tickets:                |  Differential Rev(s):
       Wiki Page:                |
---------------------------------+----------------------------------------

Comment (by syd):

 I got it down to a much smaller command that still fails:

 {{{
 /nix/store/6j6slxdhbbzxvhkn6yf7afm62r8n9fmf-ghc-8.4.3/bin/ghc --make
 -hide-all-packages -no-user-package-db -package-db /tmp/nix-build-
 segfault-0.0.0.drv-2/package.conf.d -package-db dist/package.conf.inplace
 -package-id base-4.11.1.0 -package-id bytestring-0.10.8.2 src/Lib.hs -j12
 +RTS -K
 [1 of 1] Compiling Lib              ( src/Lib.hs, src/Lib.o )
 Segmentation fault (core dumped)
 }}}

 Also, if I remove the `-j12`, it no longer segfaults.

 I also tried with `-j2` and that seems to work as well (no segfaults as
 far as I can tell).

 I also tried with `-j256` and it segfaults a _lot_ faster. The same goes
 for `-j4098`.

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


More information about the ghc-tickets mailing list