GHC 9.0.1 testsuite crash
Summary
Running a multi-threaded testsuite using GHC 9.0.1 results always in an error on s390x:
./hadrian/build -j2 test
...
=====> GADT11(normal) 2289 of 7742 [0, 1, 0]
=====> GADT12(normal) 2289 of 7742 [0, 1, 0]
Error when running Shake build system:
at want, called at src/Main.hs:102:30 in main:Main
* Depends on: test
* Raised the exception:
fd:5: hGetLine: invalid argument (invalid byte sequence)
This is not the case if run in single-threaded mode, i.e., with -j1
. Multi-threaded testsuite runs fine using GHC 8.10 and Mainline. Furthermore, the crash happens at different tests and at different times. Thus there is no clear pattern.
A bootstrap using 9.0.1 in order to build 9.0.1 works perfectly fine. Therefore, GHC itself seems to be fine.
Is there any way to get an exception trace in order to narrow down the program point where the exception occurs?
Steps to reproduce
./hadrian/build -j2 test
or basically any -jN
where N>1
.
Environment
- GHC version used: Tried a couple of versions from 9.0.1-rc1 up to 1b5418b7
Optional:
- Operating System: Fedora 33
- System Architecture: s390x