Skip to content

ghc-heap: Decoding of TSO & profling is too eager

The decoding logic for TSOs decodes too much -- in particular, it also tries to decode the cost centre stack referenced by StgTSOProfInfo.

When used in ghc-debug this leads to segfaults because the logic attempts to peek at some memory in the debugger which is not within the closure which is currently being decoded.

As in the case for ConstrDesc there needs to be a way to delay the decoding of this field as well.

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