Skip to content

Program hangs on ppc64el

Summary

The testsuite for terminal-progress-bar fails (hangs) on both ppc64el and ppc64 (see build logs here).

Steps to reproduce

In order to reproduce this, I tried the following on ppc64el:

$ cabal install terminal-progress-bar==0.4.1

$ cat Progress.hs
module Main where

import Data.Time.Clock
import System.ProgressBar

main = do
    print $ renderProgressBar defStyle (Progress 0 1 ()) someTiming
  where
    someTime :: UTCTime
    someTime  = UTCTime (toEnum 0) 0

    someTiming :: Timing
    someTiming = Timing someTime someTime

$ ghc -o progress Progress.hs
$ ./progress

This hangs forever, with the process taking 100% CPU.

The interesting part is that if I modify the ProgressBar.hs file to contain the above main function, and compile that one, it finishes successfully. This is why I assume this is a GHC bug.

Environment

  • GHC version used: 8.6.5

I tried the same think with v8.4.4 from Debian buster and it run without a problem, so this is a regression.

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