debug(phase2): 打印 list[ptr] 构造后内部状态定位 append 崩溃
崩溃仍在 list[ptr].append 的 pool.alloc(0xf8→0x128 偏移变化说明 elem_size 修复生效),需区分 __pool__ 未初始化(__init__ 未调/写错位) 与 MemBuddy 内部损坏。新增 [LLC-DBG2] 打印 pool/count/cap/elem/data。
This commit is contained in:
1 parent
0faf44e179
commit
0d2e9124d9
1 file changed
+6
@@ -616,6 +616,12 @@ def run_llc_parallel(tasks: bytes, task_count: int, max_threads: int) -> int:
|
||||
if handles is None:
|
||||
VLogger.error("run_llc_parallel: 线程句柄数组分配失败", "PhaseB")
|
||||
return 1
|
||||
#region debug-point LLC11
|
||||
stdio.printf("[LLC-DBG2] handles=%llx pool=%llx count=%d cap=%d elem=%d data=%llx\n",
|
||||
t.CUInt64T(handles), t.CUInt64T(handles.__pool__),
|
||||
handles.__count__, handles.__capacity__, handles.__elem_size__,
|
||||
t.CUInt64T(handles.__data__))
|
||||
#endregion
|
||||
slot_size: t.CSizeT = LlcTask.__sizeof__()
|
||||
ret: int = 0
|
||||
batch_start: int = 0
|
||||
|
||||
Reference in new issue
Block a user