[GHC] #2972: ppc ghci segfaults at startup

GHC cvs-ghc at haskell.org
Fri Jul 20 17:06:13 CEST 2012


#2972: ppc ghci segfaults at startup
------------------------+---------------------------------------------------
    Reporter:  cemeyer  |       Owner:  erikd     
        Type:  bug      |      Status:  new       
    Priority:  normal   |   Milestone:  7.6.1     
   Component:  GHCi     |     Version:  7.5       
    Keywords:           |          Os:  Linux     
Architecture:  powerpc  |     Failure:  GHCi crash
  Difficulty:  Unknown  |    Testcase:            
   Blockedby:           |    Blocking:            
     Related:           |  
------------------------+---------------------------------------------------

Comment(by thorkilnaur):

 Without the patch and "devel2"-built with a ghc-7.4.2 that has been
 adjusted to work around #5408, {{{make test}}} for this ghc-7.5.20120714
 ends with:
 {{{
 OVERALL SUMMARY for test run started at Fri Jul 20 05:45:35 CEST 2012
     3379 total tests, which gave rise to
    14381 test cases, of which
        0 caused framework failures
    11332 were skipped

     2953 expected passes
       28 had missing libraries
       36 expected failures
        0 unexpected passes
       32 unexpected failures

 Unexpected failures:
    ../../libraries/directory/tests  T4113 [bad stdout] (normal)
    ../../libraries/unix/tests       signals004 [bad exit code] (normal)
    codeGen/should_run               cgrun071 [bad exit code] (normal)
    concurrent/should_run            conc070 [bad stdout or stderr] (ghci)
    dynlibs                          T3807 [bad exit code] (normal)
    ghci/linking                     ghcilink003 [bad exit code] (normal)
    ghci/linking                     ghcilink006 [bad exit code] (normal)
    ghci/should_run                  3171 [bad stdout] (normal)
    layout                           layout008 [bad stdout] (normal)
    lib/integer                      IntegerConversionRules [bad stderr]
 (normal)
    lib/integer                      gcdInteger [bad stdout] (normal)
    lib/integer                      integerConstantFolding [bad stderr]
 (normal)
    numeric/should_run               arith011 [bad exit code] (normal)
    perf/compiler                    T1969 [stat not good enough] (normal)
    perf/compiler                    T3064 [stat not good enough] (normal)
    perf/compiler                    T3294 [stat not good enough] (normal)
    perf/compiler                    T4007 [bad stderr] (normal)
    perf/compiler                    T4801 [stat not good enough] (normal)
    perf/compiler                    T5321FD [stat not good enough]
 (normal)
    perf/compiler                    T5321Fun [stat not good enough]
 (normal)
    perf/compiler                    T5631 [stat not good enough] (normal)
    perf/compiler                    T5642 [stat not good enough] (normal)
    perf/compiler                    T5837 [stat not good enough] (normal)
    perf/compiler                    T6048 [stat not good enough] (optasm)
    perf/compiler                    T783 [stat not good enough] (normal)
    perf/compiler                    parsing001 [stat not good enough]
 (normal)
    profiling/should_run             heapprof001 [exit code non-0]
 (profasm)
    rts                              4850 [bad stderr] (normal)
    rts                              divbyzero [bad exit code] (normal)
    simplCore/should_compile         T4908 [stderr mismatch] (optasm)
    simplCore/should_compile         spec-inline [stderr mismatch] (optasm)
    typecheck/should_compile         tc219 [exit code non-0] (normal)
 }}}
 So, just to clarify, this GHC does not, as such, suffer from a generally
 segfaulting GHCi:
 {{{
 $ inplace/bin/ghc-stage2 --interactive
 GHCi, version 7.5.20120714: http://www.haskell.org/ghc/  :? for help
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 Prelude> 2+2
 4
 Prelude>
 }}}
 Then I applied the patch and ran {{{make}}} (no intervening {{{clean}}}).
 Following that, {{{make test}}} ended with:
 {{{
 OVERALL SUMMARY for test run started at Fri Jul 20 10:15:43 CEST 2012
     3379 total tests, which gave rise to
    14381 test cases, of which
        0 caused framework failures
    11332 were skipped

     2947 expected passes
       28 had missing libraries
       36 expected failures
        0 unexpected passes
       38 unexpected failures

 Unexpected failures:
    ../../libraries/directory/tests  T4113 [bad stdout] (normal)
    ../../libraries/unix/tests       signals004 [bad exit code] (normal)
    codeGen/should_run               cgrun071 [bad exit code] (normal)
    concurrent/should_run            conc070 [bad stdout or stderr] (ghci)
    dynlibs                          T3807 [bad exit code] (normal)
    ghci.debugger/scripts            print035 [bad exit code] (ghci)
    ghci/linking                     ghcilink003 [bad exit code] (normal)
    ghci/linking                     ghcilink006 [bad exit code] (normal)
    ghci/prog003                     prog003 [bad exit code] (ghci)
    ghci/scripts                     ghci038 [bad exit code] (ghci)
    ghci/should_run                  3171 [bad stdout] (normal)
    layout                           layout008 [bad stdout] (normal)
    lib/integer                      IntegerConversionRules [bad stderr]
 (normal)
    lib/integer                      gcdInteger [bad stdout] (normal)
    lib/integer                      integerConstantFolding [bad stderr]
 (normal)
    numeric/should_run               arith011 [bad exit code] (normal)
    perf/compiler                    T1969 [stat not good enough] (normal)
    perf/compiler                    T3064 [stat not good enough] (normal)
    perf/compiler                    T3294 [stat not good enough] (normal)
    perf/compiler                    T4007 [bad stderr] (normal)
    perf/compiler                    T4801 [stat not good enough] (normal)
    perf/compiler                    T5321FD [stat not good enough]
 (normal)
    perf/compiler                    T5321Fun [stat not good enough]
 (normal)
    perf/compiler                    T5631 [stat not good enough] (normal)
    perf/compiler                    T5642 [stat not good enough] (normal)
    perf/compiler                    T5837 [stat not good enough] (normal)
    perf/compiler                    T6048 [stat not good enough] (optasm)
    perf/compiler                    T783 [stat not good enough] (normal)
    perf/compiler                    parsing001 [stat not good enough]
 (normal)
    plugins                          plugins01 [bad exit code] (normal)
    plugins                          plugins05 [exit code non-0] (normal)
    plugins                          plugins06 [exit code non-0] (normal)
    profiling/should_run             heapprof001 [exit code non-0]
 (profasm)
    rts                              4850 [bad stderr] (normal)
    rts                              divbyzero [bad exit code] (normal)
    simplCore/should_compile         T4908 [stderr mismatch] (optasm)
    simplCore/should_compile         spec-inline [stderr mismatch] (optasm)
    typecheck/should_compile         tc219 [exit code non-0] (normal)
 }}}
 The {{{diff}}} between these summaries shows 6 additional failures:
 {{{
 < OVERALL SUMMARY for test run started at Fri Jul 20 05:45:35 CEST 2012
 ---
 > OVERALL SUMMARY for test run started at Fri Jul 20 10:15:43 CEST 2012
 18215c18247
 <     2953 expected passes
 ---
 >     2947 expected passes
 18219c18251
 <       32 unexpected failures
 ---
 >       38 unexpected failures
 18226a18259
 >    ghci.debugger/scripts            print035 [bad exit code] (ghci)
 18228a18262,18263
 >    ghci/prog003                     prog003 [bad exit code] (ghci)
 >    ghci/scripts                     ghci038 [bad exit code] (ghci)
 18247a18283,18285
 >    plugins                          plugins01 [bad exit code] (normal)
 >    plugins                          plugins05 [exit code non-0] (normal)
 >    plugins                          plugins06 [exit code non-0] (normal)
 }}}
 Details of these failures:
 {{{
 =====> print035(ghci) 956 of 3379 [0, 8, 0]
 cd ./ghci.debugger/scripts &&
 HC='/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHCGitRepository/ghc-
 working/inplace/bin/ghc-stage2' HC_OPTS='-dcore-lint -dcmm-lint -dno-
 debug-output -no-user-package-db -rtsopts  -fno-ghci-history '
 '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHCGitRepository/ghc-
 working/inplace/bin/ghc-stage2' --interactive -v0 -ignore-dot-ghci -dcore-
 lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts  -fno-ghci-
 history  -ignore-dot-ghci   <print035.script >print035.run.stdout
 2>print035.run.stderr
 /bin/sh: line 1: 71240 Segmentation fault
 HC='/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHCGitRepository/ghc-
 working/inplace/bin/ghc-stage2' HC_OPTS='-dcore-lint -dcmm-lint -dno-
 debug-output -no-user-package-db -rtsopts  -fno-ghci-history '
 '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHCGitRepository/ghc-
 working/inplace/bin/ghc-stage2' --interactive -v0 -ignore-dot-ghci -dcore-
 lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -fno-ghci-
 history -ignore-dot-ghci < print035.script > print035.run.stdout 2>
 print035.run.stderr
 Wrong exit code (expected 0 , actual 139 )
 Stdout:

 Stderr:

 *** unexpected failure for print035(ghci)
 ---------------------------------------------------------------------
 =====> prog003(ghci) 818 of 3379 [0, 5, 0]
 cd ./ghci/prog003 &&
 HC='/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHCGitRepository/ghc-
 working/inplace/bin/ghc-stage2' HC_OPTS='-dcore-lint -dcmm-lint -dno-
 debug-output -no-user-package-db -rtsopts  -fno-ghci-history '
 '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHCGitRepository/ghc-
 working/inplace/bin/ghc-stage2' --interactive -v0 -ignore-dot-ghci -dcore-
 lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts  -fno-ghci-
 history     <prog003.script >prog003.run.stdout 2>prog003.run.stderr
 /bin/sh: line 1: 69749 Segmentation fault
 HC='/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHCGitRepository/ghc-
 working/inplace/bin/ghc-stage2' HC_OPTS='-dcore-lint -dcmm-lint -dno-
 debug-output -no-user-package-db -rtsopts  -fno-ghci-history '
 '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHCGitRepository/ghc-
 working/inplace/bin/ghc-stage2' --interactive -v0 -ignore-dot-ghci -dcore-
 lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -fno-ghci-
 history < prog003.script > prog003.run.stdout 2> prog003.run.stderr
 Wrong exit code (expected 0 , actual 139 )
 Stdout:

 Stderr:

 *** unexpected failure for prog003(ghci)
 -------------------------------------------------------------------
 =====> ghci038(ghci) 863 of 3379 [0, 6, 0]
 cd ./ghci/scripts &&
 HC='/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHCGitRepository/ghc-
 working/inplace/bin/ghc-stage2' HC_OPTS='-dcore-lint -dcmm-lint -dno-
 debug-output -no-user-package-db -rtsopts  -fno-ghci-history '
 '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHCGitRepository/ghc-
 working/inplace/bin/ghc-stage2' --interactive -v0 -ignore-dot-ghci -dcore-
 lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts  -fno-ghci-
 history     <ghci038.script >ghci038.run.stdout 2>ghci038.run.stderr
 /bin/sh: line 1: 70276 Segmentation fault
 HC='/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHCGitRepository/ghc-
 working/inplace/bin/ghc-stage2' HC_OPTS='-dcore-lint -dcmm-lint -dno-
 debug-output -no-user-package-db -rtsopts  -fno-ghci-history '
 '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHCGitRepository/ghc-
 working/inplace/bin/ghc-stage2' --interactive -v0 -ignore-dot-ghci -dcore-
 lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -fno-ghci-
 history < ghci038.script > ghci038.run.stdout 2> ghci038.run.stderr
 Wrong exit code (expected 0 , actual 139 )
 Stdout:

 Stderr:

 *** unexpected failure for ghci038(ghci)
 -------------------------------------------------------------------
 =====> plugins01(normal) 1738 of 3379 [0, 27, 0]
 cd ./plugins && $MAKE -s --no-print-directory plugins01    </dev/null
 >plugins01.run.stdout 2>plugins01.run.stderr
 Wrong exit code (expected 0 , actual 2 )
 Stdout:

 Stderr:
 make[3]: *** [plugins01] Segmentation fault

 *** unexpected failure for plugins01(normal)
 -------------------------------------------------------------------
 =====> plugins05(normal) 1742 of 3379 [0, 28, 0]
 cd ./plugins && '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHCGitRepository
 /ghc-working/inplace/bin/ghc-stage2' -fforce-recomp -dcore-lint -dcmm-lint
 -dno-debug-output -no-user-package-db -rtsopts  -fno-ghci-history --make
 -o plugins05 plugins05  -package ghc  >plugins05.comp.stderr 2>&1
 /bin/sh: line 1: 80886 Segmentation fault
 '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHCGitRepository/ghc-
 working/inplace/bin/ghc-stage2' -fforce-recomp -dcore-lint -dcmm-lint
 -dno-debug-output -no-user-package-db -rtsopts -fno-ghci-history --make -o
 plugins05 plugins05 -package ghc > plugins05.comp.stderr 2>&1
 Compile failed (status 35584) errors were:
 [1 of 2] Compiling HomePackagePlugin ( HomePackagePlugin.hs,
 HomePackagePlugin.o )
 [2 of 2] Compiling Main             ( plugins05.hs, plugins05.o )
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 Loading package array-0.3.0.3 ... linking ... done.
 Loading package deepseq-1.2.0.1 ... linking ... done.
 Loading package containers-0.5.0.0 ... linking ... done.
 Loading package filepath-1.2.0.1 ... linking ... done.
 Loading package old-locale-1.0.0.4 ... linking ... done.
 Loading package time-1.4 ... linking ... done.
 Loading package bytestring-0.10.0.0 ... linking ... done.
 Loading package unix-2.5.1.0 ... linking ... done.
 Loading package directory-1.1.0.1 ... linking ... done.
 Loading package old-time-1.0.0.7 ... linking ... done.
 Loading package pretty-1.1.1.0 ... linking ... done.
 Loading package process-1.1.0.0 ... linking ... done.
 Loading package Cabal-1.15.0 ... linking ... done.
 Loading package binary-0.5.0.2 ... linking ... done.
 Loading package bin-package-db-0.0.0.0 ... linking ... done.
 Loading package hoopl-3.9.0.0 ... linking ... done.
 Loading package hpc-0.5.1.0 ... linking ... done.
 Loading package template-haskell ... linking ... done.
 Loading package ghc-7.5.20120714 ... linking ...
 *** unexpected failure for plugins05(normal)
 -------------------------------------------------------------------
 =====> plugins06(normal) 1743 of 3379 [0, 29, 0]
 cd ./plugins && '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHCGitRepository
 /ghc-working/inplace/bin/ghc-stage2' -fforce-recomp -dcore-lint -dcmm-lint
 -dno-debug-output -no-user-package-db -rtsopts  -fno-ghci-history --make
 -o plugins06 plugins06  -package ghc  >plugins06.comp.stderr 2>&1
 /bin/sh: line 1: 80929 Segmentation fault
 '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHCGitRepository/ghc-
 working/inplace/bin/ghc-stage2' -fforce-recomp -dcore-lint -dcmm-lint
 -dno-debug-output -no-user-package-db -rtsopts -fno-ghci-history --make -o
 plugins06 plugins06 -package ghc > plugins06.comp.stderr 2>&1
 Compile failed (status 35584) errors were:
 [1 of 2] Compiling LinkerTicklingPlugin ( LinkerTicklingPlugin.hs,
 LinkerTicklingPlugin.o )
 [2 of 2] Compiling Main             ( plugins06.hs, plugins06.o )
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 Loading package array-0.3.0.3 ... linking ... done.
 Loading package deepseq-1.2.0.1 ... linking ... done.
 Loading package containers-0.5.0.0 ... linking ... done.
 Loading package filepath-1.2.0.1 ... linking ... done.
 Loading package old-locale-1.0.0.4 ... linking ... done.
 Loading package time-1.4 ... linking ... done.
 Loading package bytestring-0.10.0.0 ... linking ... done.
 Loading package unix-2.5.1.0 ... linking ... done.
 Loading package directory-1.1.0.1 ... linking ... done.
 Loading package old-time-1.0.0.7 ... linking ... done.
 Loading package pretty-1.1.1.0 ... linking ... done.
 Loading package process-1.1.0.0 ... linking ... done.
 Loading package Cabal-1.15.0 ... linking ... done.
 Loading package binary-0.5.0.2 ... linking ... done.
 Loading package bin-package-db-0.0.0.0 ... linking ... done.
 Loading package hoopl-3.9.0.0 ... linking ... done.
 Loading package hpc-0.5.1.0 ... linking ... done.
 Loading package template-haskell ... linking ... done.
 Loading package ghc-7.5.20120714 ... linking ...
 *** unexpected failure for plugins06(normal)
 }}}
 Best regards
 Thorkil

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



More information about the Glasgow-haskell-bugs mailing list