算子输入输出数据地址异常

分析结果

如果info.txt中给出如下分析结论,一般为地址非法错误:

"**********************Root cause conclusion******************"
Please check addrs. The addr of input/output is used but not alloc, details in "4. Input and output of node"

同时在info.txt文件中“4. Input and output of node”处会有如下信息:

****************4. Input and output of node*******************
*[ERROR]input[1] is out of range
*[ERROR]input[2] is out of range

input[0] addr: 0x124080042000 end_addr:0x124080042100 size: 0x100
input[1] addr: 0xaaaaaaaa end_addr:0xaaaaaab2 size: 0x8
input[2] addr: 0x0 end_addr:0x4 size: 0x4
output[0] addr: 0x124080052000 end_addr:0x124080052008 size: 0x8
arg[4][0x1240003E5070] cannot found alloc log, if it is not tiling_gm, please check
arg[2][0x0] cannot found alloc log, if it is not tiling_gm, please check
workspace_bytes:0

故障根因

msaicerr工具检查Device上内存申请成功的地址、Device上内存释放的地址相关的日志,通过计算这两个值的差集确定可用的内存地址范围,如果input、output地址不在这个范围内,则会报错。

处理方法

针对地址非法错误,一般需要确认算子地址是否合法。有以下情况:

  1. 如果是离线推理图的输入输出或单算子调用,一般为用户应用程序中申请的地址空间错误,请检查应用源码。
  2. 其他情况一般为框架申请的地址空间异常,您需准备好asys工具收集的故障信息和msaicerr工具分析结果文件,再联系技术支持检查定位。您可以获取日志后单击Link联系技术支持。