I'm in the process of upgrading to GHC 8.6.4 on OpenBSD-6.5-amd64-stable (
https://github.com/blackgnezdo/ports/commits/ghc_864_may26)

I hit a bus error when porting fgl, but then reduced the problem to a
trivially reproducible one below. I've also stored a log from -v9 run
in
https://gist.githubusercontent.com/blackgnezdo/633a4e499c9d8162d74fbf620c9c05ec/raw/5006c836a11995b78d8d23d8443be76d2f052f4c/ghc8.6.4-openbsd-ann-module-crash.txt

% cat a.hs
{-# ANN module "" #-}

% /usr/local/bin/ghc -v --interactive a.hs
GHCi, version 8.6.4: http://www.haskell.org/ghc/  :? for help
Glasgow Haskell Compiler, Version 8.6.4, stage 2 booted by GHC version
8.4.2.20190113
Using binary package database:
/usr/local/lib/ghc/package.conf.d/package.cache
package flags []
loading package database /usr/local/lib/ghc/package.conf.d
wired-in package ghc-prim mapped to ghc-prim-0.5.3
wired-in package integer-gmp mapped to integer-gmp-1.0.2.0
wired-in package base mapped to base-4.12.0.0
wired-in package rts mapped to rts
wired-in package template-haskell mapped to template-haskell-2.14.0.0
wired-in package ghc mapped to ghc-8.6.4
package flags []
loading package database /usr/local/lib/ghc/package.conf.d
wired-in package ghc-prim mapped to ghc-prim-0.5.3
wired-in package integer-gmp mapped to integer-gmp-1.0.2.0
wired-in package base mapped to base-4.12.0.0
wired-in package rts mapped to rts-1.0
wired-in package template-haskell mapped to template-haskell-2.14.0.0
wired-in package ghc mapped to ghc-8.6.4
*** Parser [source]:
!!! Parser [source]: finished in 0.00 milliseconds, allocated 0.182
megabytes
*** Desugar:
*** Simplify [expr]:
!!! Simplify [expr]: finished in 0.00 milliseconds, allocated 0.124
megabytes
*** CorePrep [expr]:
!!! CorePrep [expr]: finished in 10.00 milliseconds, allocated 1.763
megabytes
*** ByteCodeGen [Ghci1]:
!!! ByteCodeGen [Ghci1]: finished in 0.00 milliseconds, allocated 0.135
megabytes
Loading package ghc-prim-0.5.3 ... linking ... done.
Loading package integer-gmp-1.0.2.0 ... linking ... done.
Loading package base-4.12.0.0 ... linking ... done.
Search directories (user):
Search directories (gcc):
*** Parser [source]:
!!! Parser [source]: finished in 0.00 milliseconds, allocated 0.050
megabytes
*** Desugar:
*** Simplify [expr]:
!!! Simplify [expr]: finished in 10.00 milliseconds, allocated 0.069
megabytes
*** CorePrep [expr]:
!!! CorePrep [expr]: finished in 0.00 milliseconds, allocated 0.022
megabytes
*** ByteCodeGen [Ghci1]:
!!! ByteCodeGen [Ghci1]: finished in 0.00 milliseconds, allocated 0.082
megabytes
*** Parser [source]:
!!! Parser [source]: finished in 0.00 milliseconds, allocated 0.085
megabytes
*** Desugar:
*** Simplify [expr]:
!!! Simplify [expr]: finished in 0.00 milliseconds, allocated 0.076
megabytes
*** CorePrep [expr]:
!!! CorePrep [expr]: finished in 0.00 milliseconds, allocated 0.022
megabytes
*** ByteCodeGen [Ghci1]:
!!! ByteCodeGen [Ghci1]: finished in 0.00 milliseconds, allocated 0.098
megabytes
*** Chasing dependencies:
Chasing modules from:
!!! Chasing dependencies: finished in 0.00 milliseconds, allocated 0.017
megabytes
Stable obj: []
Stable BCO: []
unload: retaining objs []
unload: retaining bcos []
Ready for upsweep []
Upsweep completely successful.
*** Deleting temp files:
Deleting:
*** Chasing dependencies:
Chasing modules from: */home/greg/a.hs
!!! Chasing dependencies: finished in 10.00 milliseconds, allocated 0.215
megabytes
Stable obj: []
Stable BCO: []
unload: retaining objs []
unload: retaining bcos []
Ready for upsweep
  [NONREC
      ModSummary {
         ms_hs_date = 2019-06-02 16:39:24.038862383 UTC
         ms_mod = Main,
         ms_textual_imps = [(Nothing, Prelude)]
         ms_srcimps = []
      }]
*** Deleting temp files:
Deleting:
compile: input file /home/greg/a.hs
*** Checking old interface for Main (use -ddump-hi-diffs for more details):
[1 of 1] Compiling Main             ( /home/greg/a.hs, interpreted )
*** Parser [Main]:
!!! Parser [Main]: finished in 0.00 milliseconds, allocated 0.049 megabytes
*** Renamer/typechecker [Main]:
*** Simplify [expr]:
!!! Simplify [expr]: finished in 0.00 milliseconds, allocated 0.029
megabytes
*** CorePrep [expr]:
!!! CorePrep [expr]: finished in 0.00 milliseconds, allocated 0.010
megabytes
*** ByteCodeGen [Ghci1]:
!!! ByteCodeGen [Ghci1]: finished in 0.00 milliseconds, allocated 0.033
megabytes
[1]    59488 bus error (core dumped)  /usr/local/bin/ghc -v --interactive
~/a.hs


-- 
nest.cx is Gmail hosted, use PGP:
https://pgp.key-server.io/0x0B1542BD8DF5A1B0
Fingerprint: 5E2B 2D0E 1E03 2046 BEC3  4D50 0B15 42BD 8DF5 A1B0

Reply via email to