[GHC] #14675: GHC 8.4.1 regression: segfault when loading doctest on a module with ANNs on Ubuntu 16.04 or later
GHC
ghc-devs at haskell.org
Mon Jan 22 17:31:02 UTC 2018
#14675: GHC 8.4.1 regression: segfault when loading doctest on a module with ANNs
on Ubuntu 16.04 or later
-------------------------------------+-------------------------------------
Reporter: RyanGlScott | Owner: alpmestan
Type: bug | Status: new
Priority: highest | Milestone: 8.4.1
Component: GHC API | Version: 8.4.1-alpha1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: Runtime crash | Test Case:
Blocked By: | Blocking:
Related Tickets: #14603 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by alpmestan):
Alright, I did another build, `perf` flavour instead of `quick`
previously, using `./configure --with-ghc=/opt/ghc/8.2.2/bin/ghc
--prefix=/opt/ghc/my-8.4.1/bin/ghc --enable-dwarf-unwind` along with
`GhcLibHcOpts += -g3` and `GhcRtsHcOpts += -g3`, so that I can use gdb to
figure out where exactly things are going wrong, if I can reproduce the
crash. Also from the same commit as hvr's build:
{{{#!haskell
alp at vm:~/14675$ /home/alp/ghc/inplace/bin/ghc-stage2 --info | grep commit
,("Project Git commit id","c6cf13ca63f3a11a8da7c7e3bd69e673a8df5440")
alp at vm:~/14675$ /opt/ghc/8.4.1/bin/ghc --info | grep commit
,("Project Git commit id","c6cf13ca63f3a11a8da7c7e3bd69e673a8df5440")
}}}
And with this precise setup, even though for some reason I can't `make
install` this build, I can reproduce the problem.
{{{#!bash
alp at vm:~/14675$ /home/alp/ghc/inplace/bin/ghc-stage2 -fforce-recomp
-package ghc Bug.hs
[1 of 1] Compiling Main ( Bug.hs, Bug.o )
Linking Bug ...
alp at vm:~/14675$ PATH=/home/alp/ghc/inplace/bin:$PATH ./Bug
/home/alp/ghc/inplace/lib
Using binary package database:
/home/alp/ghc/inplace/lib/package.conf.d/package.cache
package flags [-package base{package base True ([])}]
loading package database /home/alp/ghc/inplace/lib/package.conf.d
wired-in package ghc-prim mapped to ghc-prim-0.5.2.0
wired-in package integer-gmp mapped to integer-gmp-1.0.1.0
wired-in package base mapped to base-4.11.0.0
wired-in package rts mapped to rts
wired-in package template-haskell mapped to template-haskell-2.13.0.0
wired-in package ghc mapped to ghc-8.4.0.20171222
wired-in package dph-seq not found.
wired-in package dph-par not found.
*** Chasing dependencies:
Chasing modules from: *Foo.hs
!!! Chasing dependencies: finished in 0.96 milliseconds, allocated 0.400
megabytes
Before parseModule
*** Parser [Foo]:
!!! Parser [Foo]: finished in 0.08 milliseconds, allocated 0.070 megabytes
Before typecheckModule
*** Renamer/typechecker [Foo]:
*** Simplify [expr]:
!!! Simplify [expr]: finished in 0.07 milliseconds, allocated 0.000
megabytes
*** CorePrep [expr]:
!!! CorePrep [expr]: finished in 1.37 milliseconds, allocated 1.666
megabytes
*** ByteCodeGen [Ghci1]:
!!! ByteCodeGen [Ghci1]: finished in 0.10 milliseconds, allocated 0.047
megabytes
Loading package ghc-prim-0.5.2.0 ... linking ... done.
*** gcc:
gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE '-fuse-ld=gold'
-B/home/alp/ghc/libraries/integer-gmp/dist-install/build --print-file-name
libgmp.so
Loading package integer-gmp-1.0.1.0 ... linking ... done.
Loading package base-4.11.0.0 ... linking ... done.
Erreur de segmentation (core dumped)
}}}
Tomorrow I'll fire up gdb and see if this builds lets me figure out
precisely where things are going wrong.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14675#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list