Crash: ghc-debug-brick: not enough bytes

Hécate Kleidukos
2024-07-28T13:56:19Z

When connecting to a running Haskell service, I press "p" to pause, and ghc-debug-brick immediately exits with:

```
ghc-debug-brick: not enough bytes
CallStack (from HasCallStack):
error, called at src/GHC/Debug/Utils.hs:9:37 in ghc-debug-common-0.6.0.0-c1f3a75cb8831fced4c40586375e59e11d1d9df162a9e2fdfaab5eb5c7adf36c:GHC.Debug.Utils
runGet_, called at src/GHC/Debug/Types.hs:692:13 in ghc-debug-common-0.6.0.0-c1f3a75cb8831fced4c40586375e59e11d1d9df162a9e2fdfaab5eb5c7adf36c:GHC.Debug.Types
```

version used: ghc-debug-brick-0.6.0.0

I have no idea why it would behave like this.

On simple toy code bases it works well, but on something with the complexity of https://github.com/flora-pm/flora-server it triggers.