[GHC] #12581: Testsuite segfaults on OS X

GHC ghc-devs at haskell.org
Thu Sep 8 23:45:48 UTC 2016


#12581: Testsuite segfaults on OS X
---------------------------------+--------------------------------------
        Reporter:  bgamari       |                Owner:
            Type:  bug           |               Status:  new
        Priority:  normal        |            Milestone:  8.2.1
       Component:  Compiler      |              Version:  8.1
      Resolution:                |             Keywords:
Operating System:  MacOS X       |         Architecture:  x86_64 (amd64)
 Type of failure:  None/Unknown  |            Test Case:
      Blocked By:                |             Blocking:
 Related Tickets:                |  Differential Rev(s):
       Wiki Page:                |
---------------------------------+--------------------------------------
Description changed by bgamari:

@@ -1,1 +1,32 @@
- `derefnull` and ? fail.
+ `derefnull` fails with,
+ {{{
+ =====> derefnull(normal) 1 of 3 [0, 0, 0]
+ cd "./rts/derefnull.run" &&  "/Users/bgamari/ghc/inplace/test   spaces
+ /ghc-stage2" -o derefnull derefnull.hs -dcore-lint -dcmm-lint -dno-debug-
+ output -no-user-package-db -rtsopts -fno-warn-missed-specialisations
+ -fshow-warning-groups
+
+ cd "./rts/derefnull.run" && ./derefnull
+ Actual stderr output differs from expected:
+ --- /dev/null   2016-09-09 02:44:22.000000000 +0300
+ +++ ./rts/derefnull.run/derefnull.run.stderr.normalised 2016-09-09
+ 02:44:24.000000000 +0300
+ @@ -0,0 +1 @@
+ +/bin/sh: line 1: 91959 Segmentation fault: 11  ./derefnull
+ }}}
+
+ and `divbyzero` fails with,
+ {{{
+ =====> divbyzero(normal) 2 of 3 [0, 1, 0]
+ cd "./rts/divbyzero.run" &&  "/Users/bgamari/ghc/inplace/test   spaces
+ /ghc-stage2" -o divbyzero divbyzero.hs -dcore-lint -dcmm-lint -dno-debug-
+ output -no-user-package-db -rtsopts -fno-warn-missed-specialisations
+ -fshow-warning-groups
+ cd "./rts/divbyzero.run" && ./divbyzero
+ Actual stderr output differs from expected:
+ --- /dev/null   2016-09-09 02:44:24.000000000 +0300
+ +++ ./rts/divbyzero.run/divbyzero.run.stderr.normalised 2016-09-09
+ 02:44:24.000000000 +0300
+ @@ -0,0 +1 @@
+ +/bin/sh: line 1: 91975 Floating point exception: 8   ./divbyzero
+ }}}

New description:

 `derefnull` fails with,
 {{{
 =====> derefnull(normal) 1 of 3 [0, 0, 0]
 cd "./rts/derefnull.run" &&  "/Users/bgamari/ghc/inplace/test   spaces
 /ghc-stage2" -o derefnull derefnull.hs -dcore-lint -dcmm-lint -dno-debug-
 output -no-user-package-db -rtsopts -fno-warn-missed-specialisations
 -fshow-warning-groups

 cd "./rts/derefnull.run" && ./derefnull
 Actual stderr output differs from expected:
 --- /dev/null   2016-09-09 02:44:22.000000000 +0300
 +++ ./rts/derefnull.run/derefnull.run.stderr.normalised 2016-09-09
 02:44:24.000000000 +0300
 @@ -0,0 +1 @@
 +/bin/sh: line 1: 91959 Segmentation fault: 11  ./derefnull
 }}}

 and `divbyzero` fails with,
 {{{
 =====> divbyzero(normal) 2 of 3 [0, 1, 0]
 cd "./rts/divbyzero.run" &&  "/Users/bgamari/ghc/inplace/test   spaces
 /ghc-stage2" -o divbyzero divbyzero.hs -dcore-lint -dcmm-lint -dno-debug-
 output -no-user-package-db -rtsopts -fno-warn-missed-specialisations
 -fshow-warning-groups
 cd "./rts/divbyzero.run" && ./divbyzero
 Actual stderr output differs from expected:
 --- /dev/null   2016-09-09 02:44:24.000000000 +0300
 +++ ./rts/divbyzero.run/divbyzero.run.stderr.normalised 2016-09-09
 02:44:24.000000000 +0300
 @@ -0,0 +1 @@
 +/bin/sh: line 1: 91975 Floating point exception: 8   ./divbyzero
 }}}

 = Bisection log

 {{{
 git bisect start
 # bad: [34010dbe77ac405da6c671c3feb3573d0d025379] Derive the Generic
 instance in perf/compiler/T5642
 git bisect bad 34010dbe77ac405da6c671c3feb3573d0d025379
 # good: [b4dfe04aa77bb2d0ce2c7d82cab5e4425e0b738c] Fix kind generalisation
 for pattern synonyms
 git bisect good b4dfe04aa77bb2d0ce2c7d82cab5e4425e0b738c
 # skip: [39103062e50249da857761d0eaca325aa428e446] Add -XStaticPointers to
 the flag reference.
 git bisect skip 39103062e50249da857761d0eaca325aa428e446
 # good: [0c0129b6a82a87a9bba19f27a4b19fec9ccc5a8d] RtsUtils: Use `size_t`
 instead of `int` where appropriate
 git bisect good 0c0129b6a82a87a9bba19f27a4b19fec9ccc5a8d
 # good: [bdb0d24be9c83b08fd3f4b870a17f6be31a24b1b] Remote GHCi: separate
 out message types
 git bisect good bdb0d24be9c83b08fd3f4b870a17f6be31a24b1b
 # bad: [4036c1f110578f8e2813295116b79a5a06e2bf59] Testsuite: fix T10482a
 git bisect bad 4036c1f110578f8e2813295116b79a5a06e2bf59
 # bad: [6cedef01e00e95517a546a72592ba6ff07bac605] Test Trac #12133
 git bisect bad 6cedef01e00e95517a546a72592ba6ff07bac605
 # bad: [9854f14ef0a3a6f399a1aa4c141c5e3dddcd77ff] Add a new determinism
 test
 git bisect bad 9854f14ef0a3a6f399a1aa4c141c5e3dddcd77ff
 # good: [206b4a1d0e82e8f0f40f6e36cf657146a8d4b36a] Testsuite: simplify
 extra_file handling
 git bisect good 206b4a1d0e82e8f0f40f6e36cf657146a8d4b36a
 # bad: [dc62a22279846abe7e84ef57896f0a38f6b7b845] Wibble error message for
 #11471
 git bisect bad dc62a22279846abe7e84ef57896f0a38f6b7b845
 # bad: [6b3b631e90aa5f6f9322efcb81e9b13d14d087f0] Testsuite: run all
 indexed-types ways on ./validate --slow
 git bisect bad 6b3b631e90aa5f6f9322efcb81e9b13d14d087f0
 # bad: [58f0086b70f2f409b9f88de1611efcf18756f9e5] Testsuite: open/close
 stdin/stdout/stderr explicitly
 git bisect bad 58f0086b70f2f409b9f88de1611efcf18756f9e5
 # good: [bafd615e40c2a11af1390e736f6122033eecc4c6] Testsuite: do not print
 timeout message
 git bisect good bafd615e40c2a11af1390e736f6122033eecc4c6
 # first bad commit: [58f0086b70f2f409b9f88de1611efcf18756f9e5] Testsuite:
 open/close stdin/stdout/stderr explicitly
 }}}

--

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


More information about the ghc-tickets mailing list