Skip to content

ghc-heap: code field never seems to be populated in StgInfoTable

It seems that peekItbl doesn't populate the code field of StgInfoTable.

https://github.com/ghc/ghc/blob/6bb9bc7d3c935dcb77e0700cce28de2c9df646df/libraries/ghc-heap/GHC/Exts/Heap/InfoTable.hsc#L52

If you look at InfoTables.h, when TABLES_NEXT_TO_CODE, it should be populated.

https://github.com/ghc/ghc/blob/1c2c2d3dfd4c36884b22163872feb87122b4528d/includes/rts/storage/InfoTables.h#L200

Trac metadata
Trac field Value
Version 8.6.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information