Block Decoding Failed with Profiling Enabled

James Martin
2024-07-31T05:19:21Z

While doing thunk analysis with profiling enabled, I get this bug:
```
Counting thunks

"Warning!!: block decoding failed, report this as a bug:(0x4213117858,DCS {extraDCS = Size {getSize = 104}, unDCS = ConstrClosure {info = StgInfoTableWithPtr {tableId = 0x722c30, decodedTable = StgInfoTable {ptrs = 3, nptrs = 7, tipe = CONSTR, srtlen = 0}}, profHeader = Just (ProfHeader {ccs = 0x42082c49c0, hp = OtherHeader 0}), ptrArgs = [0x213cbcb8,0x420eb847b0,0x21373b28], dataArgs = [283787723185,121806,12970366930002183708,4604571998504397052,5561416207692431360,10,375348486], constrDesc = 0x722c30}})"
"Warning!!: block decoding failed, report this as a bug:(0x4213117df8,DCS {extraDCS = Size {getSize = 40}, unDCS = FunClosure {info = StgInfoTableWithPtr {tableId = 0x15c808b0, decodedTable = StgInfoTable {ptrs = 2, nptrs = 0, tipe = FUN_2_0, srtlen = 0}}, profHeader = Just (ProfHeader {ccs = 0x4209904940, hp = OtherHeader 0}), srt = 0x15c808b0, ptrArgs = [0x420afaf350,0x420c706000], dataArgs = []}})"
"Warning!!: block decoding failed, report this as a bug:(0x4213117c18,DCS {extraDCS = Size {getSize = 112}, unDCS = FunClosure {info = StgInfoTableWithPtr {tableId = 0x482ec0, decodedTable = StgInfoTable {ptrs = 11, nptrs = 0, tipe = FUN, srtlen = 543827472}}, profHeader = Just (ProfHeader {ccs = 0x42098d8f40, hp = OtherHeader 0}), srt = 0x482ec0, ptrArgs = [0x20afa1c0,0x4213117b00,0x20af9d68,0x4213117ab0,0x420d4d5df0,0x20afa1f0,0x420d4d5e28,0x4213117bf8,0x20afa220,0x4213117bb8,0x4213117ad8], dataArgs = []}})"
"Warning!!: block decoding failed, report this as a bug:(0x4213117b00,DCS {extraDCS = Size {getSize = 40}, unDCS = ThunkClosure {info = StgInfoTableWithPtr {tableId = 0x480880, decodedTable = StgInfoTable {ptrs = 1, nptrs = 0, tipe = THUNK_1_0, srtlen = 0}}, profHeader = Just (ProfHeader {ccs = 0x4208da3020, hp = OtherHeader 0}), srt = 0x480880, ptrArgs = [0x20af9d68], dataArgs = []}})"
"Warning!!: block decoding failed, report this as a bug:(0x4213117ab0,DCS {extraDCS = Size {getSize = 40}, unDCS = ThunkClosure {info = StgInfoTableWithPtr {tableId = 0x480458, decodedTable = StgInfoTable {ptrs = 1, nptrs = 0, tipe = THUNK_1_0, srtlen = 543838528}}, profHeader = Just (ProfHeader {ccs = 0x4208da3020, hp = OtherHeader 0}), srt = 0x480458, ptrArgs = [0x20afa1c0], dataArgs = []}})"
"Warning!!: block decoding failed, report this as a bug:(0x4213117a90,DCS {extraDCS = Size {getSize = 32}, unDCS = ConstrClosure {info = StgInfoTableWithPtr {tableId = 0x16288890, decodedTable = StgInfoTable {ptrs = 1, nptrs = 0, tipe = CONSTR_1_0, srtlen = 0}}, profHeader = Just (ProfHeader {ccs = 0x4209904940, hp = OtherHeader 0}), ptrArgs = [0x4213117a08], dataArgs = [], constrDesc = 0x16288890}})"
"Warning!!: block decoding failed, report this as a bug:(0x4213117a08,DCS {extraDCS = Size {getSize = 48}, unDCS = MVarClosure {info = StgInfoTableWithPtr {tableId = 0x165fd390, decodedTable = StgInfoTable {ptrs = 3, nptrs = 0, tipe = MVAR_DIRTY, srtlen = 0}}, profHeader = Just (ProfHeader {ccs = 0x4209904940, hp = OtherHeader 0}), queueHead = 0x42030354c8, queueTail = 0x42030354c8, value = 0x26b7da48}})"
"Warning!!: block decoding failed, report this as a bug:(0x4213117bf8,DCS {extraDCS = Size {getSize = 32}, unDCS = FunClosure {info = StgInfoTableWithPtr {tableId = 0x480bc8, decodedTable = StgInfoTable {ptrs = 0, nptrs = 1, tipe = FUN_0_1, srtlen = 0}}, profHeader = Just (ProfHeader {ccs = 0x42098d8f40, hp = OtherHeader 0}), srt = 0x480bc8, ptrArgs = [], dataArgs = [283467841536]}})"
"Warning!!: block decoding failed, report this as a bug:(0x4213117bb8,DCS {extraDCS = Size {getSize = 64}, unDCS = ThunkClosure {info = StgInfoTableWithPtr {tableId = 0x480ac0, decodedTable = StgInfoTable {ptrs = 4, nptrs = 0, tipe = THUNK, srtlen = 0}}, profHeader = Just (ProfHeader {ccs = 0x42098d8f40, hp = OtherHeader 0}), srt = 0x480ac0, ptrArgs = [0x420afaf520,0x420afaf548,0x420d4d5e28,0x4213117b28], dataArgs = []}})"
"Warning!!: block decoding failed, report this as a bug:(0x4213117b28,DCS {extraDCS = Size {getSize = 56}, unDCS = ThunkClosure {info = StgInfoTableWithPtr {tableId = 0x4809e0, decodedTable = StgInfoTable {ptrs = 3, nptrs = 0, tipe = THUNK, srtlen = 543837168}}, profHeader = Just (ProfHeader {ccs = 0x4208da3020, hp = OtherHeader 0}), srt = 0x4809e0, ptrArgs = [0x20afa1c0,0x20afa220,0x20afa1f0], dataArgs = []}})"
"Warning!!: block decoding failed, report this as a bug:(0x4213117ad8,DCS {extraDCS = Size {getSize = 40}, unDCS = ThunkClosure {info = StgInfoTableWithPtr {tableId = 0x480680, decodedTable = StgInfoTable {ptrs = 1, nptrs = 0, tipe = THUNK_1_0, srtlen = 543837872}}, profHeader = Just (ProfHeader {ccs = 0x4208da3020, hp = OtherHeader 0}), srt = 0x480680, ptrArgs = [0x20afa1c0], dataArgs = []}})"
"Warning!!: block decoding failed, report this as a bug:(0x4213117188,DCS {extraDCS = Size {getSize = 80}, unDCS = ConstrClosure {info = StgInfoTableWithPtr {tableId = 0x16143fd0, decodedTable = StgInfoTable {ptrs = 2, nptrs = 5, tipe = CONSTR, srtlen = 0}}, profHeader = Just (ProfHeader {ccs = 0x4208da3ae0, hp = OtherHeader 0}), ptrArgs = [0x420b606cf8,0x269c7e90], dataArgs = [283625103392,8192,35680,0,0], constrDesc = 0x16143fd0}})"
```