Profiled GHC-Head segfaults while building vector.
Summary
Building library for vector-0.10.12.3..
[ 1 of 19] Compiling Data.Vector.Fusion.Util ( Data\Vector\Fusion\Util.hs, dist\build\Data\Vector\Fusion\Util.o )
[ 2 of 19] Compiling Data.Vector.Fusion.Stream.Size ( Data\Vector\Fusion\Stream\Size.hs, dist\build\Data\Vector\Fusion\Stream\Size.o )
Data\Vector\Fusion\Stream\Size.hs:25:10: warning: [-Wmissing-methods]
* No explicit implementation for
`*', `abs', and `signum'
* In the instance declaration for `Num Size'
|
25 | instance Num Size where
| ^^^^^^^^
[ 3 of 19] Compiling Data.Vector.Internal.Check ( Data\Vector\Internal\Check.hs, dist\build\Data\Vector\Internal\Check.o )
[ 4 of 19] Compiling Data.Vector.Fusion.Stream.Monadic ( Data\Vector\Fusion\Stream\Monadic.hs, dist\build\Data\Vector\Fusion\Stream\Monadic.o )
<command line>: addDLL: HSprimitive-0.6.1.1-429ce690e44345efb4565de078caf66e0486fb9a or depende
CallStack (from -prof):
HscMain.hscCompileCoreExpr' (compiler\main\HscMain.hs:(1893,1)-(1915,24))
HscMain.hscCompileCoreExpr (compiler\main\HscMain.hs:(1889,1)-(1890,84))
TcRnDriver.tc_rn_src_decls (compiler\typecheck\TcRnDriver.hs:(530,4)-(602,7))
TcRnDriver.tcRnSrcDecls (compiler\typecheck\TcRnDriver.hs:267:34-74)
HscMain.ioMsgMaybe (compiler\main\HscMain.hs:(267,1)-(272,128))
HscMain.Typecheck-Rename (compiler\main\HscMain.hs:(511,16)-(513,39))
HscMain.tcRnModule' (compiler\main\HscMain.hs:(498,1)-(557,45))
HscMain.hsc_typecheck (compiler\main\HscMain.hs:(470,1)-(493,38))
HscMain.hscTypecheck (compiler\main\HscMain.hs:(462,1)-(465,20))
HscMain.hscFileFrontEnd (compiler\main\HscMain.hs:935:1-68)
HscMain.genericHscFrontend' (compiler\main\HscMain.hs:(710,1)-(711,58))
HscMain.genericHscFrontend (compiler\main\HscMain.hs:(706,1)-(707,67))
HscMain.hscIncrementalFrontend (compiler\main\HscMain.hs:(641,1)-(703,81))
HscMain.hscIncrementalCompile (compiler\main\HscMain.hs:(731,1)-(780,52))
GhcMake.upsweep_mod.compile_it (compiler\main\GhcMake.hs:(1556,13)-(1558,66))
GhcMake.upsweep_mod (compiler\main\GhcMake.hs:(1501,1)-(1658,49))
GhcMake.upsweep.upsweep' (compiler\main\GhcMake.hs:(1370,3)-(1469,91))
GhcMake.upsweep (compiler\main\GhcMake.hs:(1352,1)-(1469,91))
GhcMake.load'.upsweep_fn (compiler\main\GhcMake.hs:(491,9)-(492,41))
GhcMake.withDeferredDiagnostics (compiler\main\GhcMake.hs:(2598,1)-(2628,15))
GhcMake.load'.checkHowMuch (compiler\main\GhcMake.hs:(368,9)-(370,27))
GhcMake.load' (compiler\main\GhcMake.hs:(344,1)-(592,38))
GhcMake.load (compiler\main\GhcMake.hs:(268,1)-(272,16))
GHC.withCleanupSession (compiler\main\GHC.hs:(478,1)-(486,27))
GHC.runGhc (compiler\main\GHC.hs:(453,1)-(458,26))
GHC.defaultErrorHandler (compiler\main\GHC.hs:(393,1)-(425,7))
Access violation in generated code when reading 0x10f38e18
Attempting to reconstruct a stack trace...
Frame Code address
* 0x8c2d930 0x6e913f0 E:\ghc_head\_prof\stage1\bin\ghc.exe+0x6a913f0
* 0x8c2d970 0x6e9140c E:\ghc_head\_prof\stage1\bin\ghc.exe+0x6a9140c
* 0x8c2d9e0 0x6e92432 E:\ghc_head\_prof\stage1\bin\ghc.exe+0x6a92432
* 0x8c2da40 0x6e97e54 E:\ghc_head\_prof\stage1\bin\ghc.exe+0x6a97e54
* 0x8c2da70 0x6e985c9 E:\ghc_head\_prof\stage1\bin\ghc.exe+0x6a985c9
* 0x8c2da78 0x6c32fd4 E:\ghc_head\_prof\stage1\bin\ghc.exe+0x6832fd4
* 0x8c2da80 0xaef4e18
* 0x8c2da88 0x1
* 0x8c2da90 0x30c
* 0x8c2da98 0x30c
cabal.exe: Failed to build vector-0.10.12.3 (which is required by lens-4.18).
The build process terminated with exit code 11
Steps to reproduce
hadrian/build.sh -j8 --no-color -o_prof --flavour=prof
git clone https://github.com/ekmett/lens.git --depth=1
cd lens
<add hackage-head stanza to cabal.project>
cabal new-build --ghc-options="+RTS -p -RTS" -w /e/ghc_head/_prof/stage1/bin/ghc.exe --allow-newer="base,template-haskell,th-abstraction,pretty,parallel" -j1
Expected behavior
Don't crash
Environment
- GHC version used: Branch based on ghc-head commit
cff44d86
Optional:
- Operating System: Windows
- System Architecture: x64