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

GHC ghc-devs at haskell.org
Tue Jan 15 15:17:34 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 have tried to make the example more minimal.
 Now I'm at the point where I used `ddump-splices` to replace the TH
 invocation entirely.
 Now I get a stack overflow:

 {{{
 /nix/store/6j6slxdhbbzxvhkn6yf7afm62r8n9fmf-ghc-8.4.3/bin/ghc --make
 -fbuilding-cabal-package -O -static -dynamic-too -dynosuf dyn_o -dynhisuf
 dyn_hi -outputdir dist/build -odir dist/build -hidir dist/build -stubdir
 dist/build -i -idist/build -isrc -idist/build/autogen -idist/build/global-
 autogen -Idist/build/autogen -Idist/build/global-autogen -Idist/build
 -optP-include -optPdist/build/autogen/cabal_macros.h -this-unit-id
 segfault-0.0.0-G2YKYaaGIenGdA1YODfaB0 -hide-all-packages -Wmissing-home-
 modules -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 -package-id
 file-embed-0.0.10.1-JBj0CTa3b3pL2aTV19QFZK -XHaskell2010 Lib
 Paths_segfault -j12 -split-sections
 [2 of 2] Compiling Lib              ( src/Lib.hs, dist/build/Lib.o )

 <no location info>: error: stack overflow
 }}}

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


More information about the ghc-tickets mailing list