Closed
[Bug-Report|缺陷反馈]: index_check 等五个索引算子的错误码语义及失败首报整改 #7444
fazhenyao123Add on 25 days agoClosed at 1 day ago
25 days ago Added label: bug-report
25 days ago Assign fazhenyao123 as responsible person
23 days ago Associated pull request
yuning_chen
18 days ago Comments:
18 days ago Comments:
yuning_chen
18 days ago Comments:
18 days ago Comments:
您好,该问题已收到,当前问题 @jiangqi2025 正在处理中


5 days ago Assign chenjiayi_ as responsible person
chenjiayi_
5 days ago Comments:
5 days ago Comments:
补充说明本问题的处理进展:
当前状态:
关联 PR PR#13013 已合入,合入时间为 2026-10-30 09:41;该 issue 仍为 open,指派后评论区保持静止。
依据:
- PR 状态:merged。
- 合入时间:2026-10-30 09:41。
- 当前责任人:fazhenyao123。
- 指派时间:2026-10-27 16:07。
后续:
请责任人复核 master 的合入情况;确认修复后关闭 issue。


1 day ago changed custom state from 进行中 to 已完成
1 day ago Close issue
13 hours ago Removed responsible person chenjiayi_
问题描述与合入背景
index_check、linear_index_v2、linear_index、index_put_with_sort、index_put 的部分参数校验和 InferShape/Tiling 失败路径通过泛化内部错误入口上报;外层 Init/launcher 包装还会追加 EZ9999,影响用户定位具体参数与根因。LinearIndexV2 在扣减预留 UB 后才检查容量,存在无符号下溢风险;Ascend950 实例枚举还缺少固定数组容量上限检查和逐实例 shape 判空。
本次整改按根因选择目标版本已注册的正式错误码,携带参数名、actual、expected/reason;下层已首报时仅补 PLOG 并透传,保持原公开返回行为。必要边界防护在错误码路径之前执行,避免越界或崩溃绕过诊断。
环境信息
重现步骤
预期行为
每次失败具有一个匹配根因的已注册正式首错及可执行诊断,外层不重复上报;非法实例数、缺失 shape 应安全失败并报告。实际资源分配失败由掌握申请事实的分配层首报,不在只拿到 null 的算子外层机械借用 ACL/Runtime 资源码。
已验证结果与剩余范围
原五算子变更已有 25/25 host UT、API/Tiling/InferShape/graph 目标编译及 12 个实际 include trace。LinearIndexV2 不支持 SoC 路径用平台桩验证唯一 EZ1009 及 actual/supported 字段。
opbase 依赖补丁的生产库编译及 6/6 定向 UT 通过;六个 L0 空上下文包装子路径加载该库后各产生一个 EZ1011,保持原返回值。
三处分配漏报、依赖合入/交付及完整新 host 组合尚未关闭;本 issue 不以部分子路径通过宣称全链路完成。
关联 PR