[GHC] #14329: GHC 8.2.1 segfaults while bootstrapping master

GHC ghc-devs at haskell.org
Sat Jan 27 18:50:23 UTC 2018


#14329: GHC 8.2.1 segfaults while bootstrapping master
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  highest           |            Milestone:  8.2.2
       Component:  Compiler          |              Version:  8.2.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D4075
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by bgamari):

 * status:  closed => new
 * resolution:  fixed =>


Comment:

 It looks like the issue fixed in comment:2 isn't the only problem. We are
 still seeing segmentation faults on Harbormaster due to out-of-memory
 conditions. For instance,
 {{{
 (gdb) run
 Starting program: /home/ben/ghc/inplace/lib/bin/ghc-stage1
 -B/home/ben/ghc/inplace/lib -hisuf hi -osuf o -hcsuf hc -static -O0 -H64m
 -Wall -fllvm-fill-undef-with-garbage -Werror -Iincludes -Iincludes/dist
 -Iincludes/dist-derivedconstants/header -Iincludes/dist-
 ghcconstants/header -this-unit-id ghc-8.5 -hide-all-packages -i
 -icompiler/backpack -icompiler/basicTypes -icompiler/cmm
 -icompiler/codeGen -icompiler/coreSyn -icompiler/deSugar -icompiler/ghci
 -icompiler/hsSyn -icompiler/iface -icompiler/llvmGen -icompiler/main
 -icompiler/nativeGen -icompiler/parser -icompiler/prelude
 -icompiler/profiling -icompiler/rename -icompiler/simplCore
 -icompiler/simplStg -icompiler/specialise -icompiler/stgSyn
 -icompiler/stranal -icompiler/typecheck -icompiler/types -icompiler/utils
 -icompiler/vectorise -icompiler/stage2/build -Icompiler/stage2/build
 -icompiler/stage2/build/./autogen -Icompiler/stage2/build/./autogen
 -Icompiler/. -Icompiler/parser -Icompiler/utils
 -Icompiler/../rts/dist/build -Icompiler/stage2 -optP-DGHCI -optP-include
 -optPcompiler/stage2/build/./autogen/cabal_macros.h -package-id
 base-4.11.0.0 -package-id deepseq-1.4.3.0 -package-id directory-1.3.1.5
 -package-id process-1.6.2.0 -package-id bytestring-0.10.8.2 -package-id
 binary-0.8.5.1 -package-id time-1.8.0.2 -package-id containers-0.5.10.2
 -package-id array-0.5.2.0 -package-id filepath-1.4.1.2 -package-id
 template-haskell-2.13.0.0 -package-id hpc-0.6.0.3 -package-id
 transformers-0.5.5.0 -package-id ghc-boot-8.5 -package-id ghc-boot-th-8.5
 -package-id ghci-8.5 -package-id unix-2.7.2.2 -package-id terminfo-0.4.1.1
 -Wall -Wno-name-shadowing -Wnoncanonical-monad-instances -Wnoncanonical-
 monadfail-instances -Wnoncanonical-monoid-instances -this-unit-id ghc
 -XHaskell2010 -XNoImplicitPrelude -optc-DTHREADED_RTS
 -DGHCI_TABLES_NEXT_TO_CODE -DSTAGE=2 -Rghc-timing -O -dcore-lint -dno-
 debug-output -Wcpp-undef -no-user-package-db -rtsopts -Wnoncanonical-
 monad-instances -odir compiler/stage2/build -hidir compiler/stage2/build
 -stubdir compiler/stage2/build -dynamic-too -c
 compiler/types/OptCoercion.hs -o compiler/stage2/build/OptCoercion.o -dyno
 compiler/stage2/build/OptCoercion.dyn_o -fforce-recomp
 [Thread debugging using libthread_db enabled]
 Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

 Program received signal SIGSEGV, Segmentation fault.
 ---Type <return> to continue, or q <return> to quit---
 0x0000000002fcfe40 in alloc_mega_group ()
 (gdb) bt
 #0  0x0000000002fcfe40 in alloc_mega_group ()
 #1  0x0000000002fd038d in allocGroupOnNode ()
 #2  0x0000000002fe3dff in alloc_todo_block ()
 #3  0x0000000002fe3f56 in todo_block_full ()
 #4  0x0000000000406497 in evacuate ()
 #5  0x00000000004074ec in scavenge_block ()
 #6  0x0000000002fe3726 in scavenge_loop ()
 #7  0x0000000002fd0ed8 in GarbageCollect ()
 #8  0x0000000002fc5eeb in scheduleDoGC ()
 #9  0x0000000002fc68ce in scheduleWaitThread ()
 #10 0x0000000002fcf010 in hs_main ()
 #11 0x0000000000422684 in main ()
 (gdb)
 }}}
 while building 1cb12eae648c964c411f4c83730f3db05e409f48.

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


More information about the ghc-tickets mailing list