Skip to content

Running the test suite with the quick build flavour yields -fghci-leak-check errors on master

(Originally reported here.)

On commit db8e3275, running the test suite with a quick-build-flavour GHC yields the following errors, all related to -fghci-leak-check:

=====> T16392(ghci) 1 of 3 [0, 0, 0]                                                                                                                                                                      
cd "ghci/T16392/T16392.run" && HC="/home/rgscott/Software/ghc4/inplace/bin/ghc-stage2" HC_OPTS="-dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-wa$
ning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output " "/home/rgscott/Software/ghc4/inplace/bin/ghc-stage2" --interactive -v0 -ignore-dot-ghci -fno-ghci-hi$
tory +RTS -I0.1 -RTS -fghci-leak-check -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-s$
ow-caret -Werror=compat -dno-debug-output   < T16392.script                                                                                                                                               
Actual stdout output differs from expected:                                                                                                                                                               
diff -uw "ghci/T16392/T16392.run/T16392.stdout.normalised" "ghci/T16392/T16392.run/T16392.run.stdout.normalised"                                                                                          
--- ghci/T16392/T16392.run/T16392.stdout.normalised     2019-05-23 10:27:10.837937669 -0400                                                                                                               
+++ ghci/T16392/T16392.run/T16392.run.stdout.normalised 2019-05-23 10:27:10.837937669 -0400                                                                                                               
@@ -1,2 +1,3 @@                                                                                                                                                                                           
 4                                                                                                                                                                                                        
+-fghci-leak-check: Linkable is still alive at 0x0000004201a435b8                                                                                                                                         
 4                                                                                                                                                                                                        
*** unexpected failure for T16392(ghci)                                                                                                                                                                   
=====> T16392(ghci-ext) 1 of 3 [0, 1, 0]                                                                                                                                                                  
cd "ghci/T16392/T16392.run" && HC="/home/rgscott/Software/ghc4/inplace/bin/ghc-stage2" HC_OPTS="-dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-wa$
ning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output " "/home/rgscott/Software/ghc4/inplace/bin/ghc-stage2" --interactive -v0 -ignore-dot-ghci -fno-ghci-hi$
tory -fexternal-interpreter +RTS -I0.1 -RTS -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnost$
cs-show-caret -Werror=compat -dno-debug-output   < T16392.script                                                                                                                                          
=====> prog003(ghci) 2 of 3 [0, 1, 0]                                                                                                                                                                     
cd "ghci/prog003/prog003.run" && ghciWayFlags=-dynamic HC="/home/rgscott/Software/ghc4/inplace/bin/ghc-stage2" HC_OPTS="-dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-s$ecialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output " "/home/rgscott/Software/ghc4/inplace/bin/ghc-stage2" --interactive -v0 -igno$e-dot-ghci -fno-ghci-history +RTS -I0.1 -RTS -fghci-leak-check -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=$
ever -fno-diagnostics-show-caret -Werror=compat -dno-debug-output   < prog003.script
Actual stdout output differs from expected:                                                                           
diff -uw "ghci/prog003/prog003.run/prog003.stdout.normalised" "ghci/prog003/prog003.run/prog003.run.stdout.normalised"
--- ghci/prog003/prog003.run/prog003.stdout.normalised  2019-05-23 10:27:14.629980119 -0400        
+++ ghci/prog003/prog003.run/prog003.run.stdout.normalised      2019-05-23 10:27:14.629980119 -0400
@@ -14,26 +14,39 @@    
   :: (Float -> Float, Float -> Float, Float -> Float, Float -> Float)
 28.0                  
 Run 5                                                           
+-fghci-leak-check: Linkable is still alive at 0x0000004201b41a48
 (A.a,B.b,C.c,D.d)                      
   :: (Float -> Float, Float -> Float, Float -> Float, Float -> Float)
 28.0                   
 Run 6                       
+-fghci-leak-check: Linkable is still alive at 0x0000004201cf31d8
+-fghci-leak-check: Linkable is still alive at 0x0000004201cf32d0
 (A.a,B.b,C.c,D.d)          
   :: (Float -> Float, Float -> Float, Float -> Float, Float -> Float)
 28.0
 Run 7
+-fghci-leak-check: Linkable is still alive at 0x0000004201e79eb8
+-fghci-leak-check: Linkable is still alive at 0x0000004201e7a838
+-fghci-leak-check: Linkable is still alive at 0x0000004201e7a9c0
 (A.a,B.b,C.c,D.d)
   :: (Float -> Float, Float -> Float, Float -> Float, Float -> Float)
 28.0
 Run 8
+-fghci-leak-check: Linkable is still alive at 0x000000420289ea00
+-fghci-leak-check: Linkable is still alive at 0x000000420289ea98
+-fghci-leak-check: Linkable is still alive at 0x000000420289eb90
+-fghci-leak-check: Linkable is still alive at 0x000000420289eca8
 (A.a,B.b,C.c,D.d)
   :: (Float -> Float, Float -> Float, Float -> Float, Float -> Float)
 28.0
 Run 9
+-fghci-leak-check: Linkable is still alive at 0x0000004202ddb780
+-fghci-leak-check: Linkable is still alive at 0x0000004202ddc040
 (A.a,B.b,C.c,D.d)
   :: (Float -> Float, Float -> Float, Float -> Float, Float -> Float)
 28.0
 Run 10
+-fghci-leak-check: Linkable is still alive at 0x0000004202c74170
 (A.a,B.b,C.c,D.d)
   :: (Float -> Float, Float -> Float, Float -> Float, Float -> Float)
 28.0
*** unexpected failure for prog003(ghci)
=====> ghci058(ghci) 3 of 3 [0, 2, 0]
cd "ghci/scripts/ghci058.run" && ghciWayFlags=-dynamic HC="/home/rgscott/Software/ghc4/inplace/bin/ghc-stage2" HC_OPTS="-dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-sp
ecialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output " "/home/rgscott/Software/ghc4/inplace/bin/ghc-stage2" --interactive -v0 -ignor
e-dot-ghci -fno-ghci-history +RTS -I0.1 -RTS -fghci-leak-check -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=n
ever -fno-diagnostics-show-caret -Werror=compat -dno-debug-output   < ghci058.script
Actual stdout output differs from expected:
diff -uw "ghci/scripts/ghci058.run/ghci058.stdout.normalised" "ghci/scripts/ghci058.run/ghci058.run.stdout.normalised"
--- ghci/scripts/ghci058.run/ghci058.stdout.normalised  2019-05-23 10:27:15.353988220 -0400
+++ ghci/scripts/ghci058.run/ghci058.run.stdout.normalised      2019-05-23 10:27:15.353988220 -0400
@@ -1,4 +1,5 @@
 Ok, one module loaded.
 'a'
 Ok, one module loaded.
+-fghci-leak-check: Linkable is still alive at 0x00000042012a1788
 'b'
*** unexpected failure for ghci058(ghci)

Unexpected results from:
TEST="T16392 ghci058 prog003"

SUMMARY for test run started at Thu May 23 10:27:10 2019 EDT
 0:00:05 spent to go through
       3 total tests, which gave rise to
       4 test cases, of which
       0 were skipped

       0 had missing libraries
       1 expected passes
       0 expected failures

       0 caused framework failures
       0 caused framework warnings
       0 unexpected passes
       3 unexpected failures
       0 unexpected stat failures

Unexpected failures:
   ghci/scripts/ghci058.run  ghci058 [bad stdout] (ghci)
   ghci/prog003/prog003.run  prog003 [bad stdout] (ghci)
   ghci/T16392/T16392.run    T16392 [bad stdout] (ghci)

Pinging @simonmar

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information