The tasty test-suite fails locally for me on current master with segmentation faults:
$ cabal run tasty -- -p jsonb
Up to date
Binary format
jsonb roundtrip: Segmentation fault: 11
Sometimes, I also see
$ cabal run tasty -- -p jsonb
Up to date
Segmentation fault: 11
(I'm guessing this still runs the test, and that the output is just different due to buffering, but not entirely sure.)
With some tracing statements and sleeps along the following lines:
roundtrip :: (Show a, Eq a) =>
LibPQ.Oid -> (Bool -> (a -> B.Encoding)) -> (Bool -> A.Value a) -> a -> Property
roundtrip oid encoder decoder value =
- Right value === unsafePerformIO (IO.roundtrip oid encoder decoder value)
+ Right value === unsafePerformIO (do
+ putStrLn $ "tripping: " <> show value
+ threadDelay 100000
+ x <- IO.roundtrip oid encoder decoder value
+ threadDelay 100000
+ putStrLn "done"
+ return x)
the number of successful rountrips before crashing varies wildly, and there's no obvious pattern to the last successful one. E.g.:
$ cabal run tasty -- -p jsonb
Up to date
Binary format
jsonb roundtrip: tripping: Array []
done
tripping: Number 0.0
done
tripping: Bool True
done
Segmentation fault: 11
The
tasty
test-suite fails locally for me on currentmaster
with segmentation faults:Sometimes, I also see
(I'm guessing this still runs the test, and that the output is just different due to buffering, but not entirely sure.)
With some tracing statements and sleeps along the following lines:
the number of successful rountrips before crashing varies wildly, and there's no obvious pattern to the last successful one. E.g.:
Running the test binary under
lldb
, I see:I haven't figured out how to build with debug symbols for a more useful backtrace.
I've tried this with both ghc 8.10.7 and ghc 9.2.2.