Skip to content

segfault running tasty

Summary

A small program using the tasty library segfaults.

This seems very similar to #15544 (closed) which was supposedly fixed and also involved tasty and a segfault. @bgamari

Steps to reproduce

Run attached test program. main.hs

It generally segfaults at least 1 time in 10 runs when using ghc 8.8.4. With 9.0.2, it may take some more runs.

Here is how I got it to segfault with 9.0.2:

joey@darkstar:~>stack --resolver nightly-2022-03-16 runghc --package tasty --package tasty-hunit --package tasty-rerun main.hs
Segmentation fault

Environment

  • GHC version used: 8.8.4 and 9.0.2 both have the bug.

Optional:

  • Operating System: Linux
  • System Architecture: x86-64
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information