[GHC] #16186: Segfault when embedding data via file-embed.
GHC
ghc-devs at haskell.org
Tue Jan 15 15:27:06 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):
If I add `+RTS -K` to the original invocation, and now there is no longer
a stack overflow error, but still a segfault. This time without any TH
involved:
{{{
/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 +RTS -K
[2 of 2] Compiling Lib ( src/Lib.hs, dist/build/Lib.o )
Segmentation fault (core dumped)
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16186#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list