@liaomaohahaha
从errorStr: Illegal instruction, which is usually caused by unaligned UUB addresses.信息看,存在算子内存地址使用问题。
请提供完整的版本(包括CANN及配套应用),硬件,用法示例,还有完整的plog+device日志信息。


@wangtao43
CANN版本:
package_name=Ascend-cann-toolkit
version=8.0.RC3
innerversion=V100R001C19B037
compatible_version=[V100R001C15,V100R001C18],[V100R001C30],[V100R001C13],[V100R003C11],[V100R001C29],[V100R001C10]
arch=aarch64
os=linux
path=/usr/local/Ascend/ascend-toolkit/8.0.RC3/aarch64-linux
硬件:

完整的Plog:
这个报错是随机的,大部分是下面这个报错,概率性出现
4c04805ea73246a891edcd52b3179d91.log
device日志
无产生device日志,因为没有打开什么开关吗?
用法示例:
NPU:
1、先aclrtSetCurrentContext,aclrtMalloc申请NPU内存;
2、再调用acl copy函数搬入到NPU;
3、调用rtKernelLaunch(kernelname, 8核, kernel入参基地址,地址个数3, nullptr, stream)
4、提交kernel后,调用 aclrtSynchronizeStream(stream),返回失败
5、npu kernel函数为空,用于隔离定位问题


@liaomaohahaha 您好,该问题是rts领域问题,初步分析是算子执行报错,帮您移交对应领域进一步分析


@liaomaohahaha 你好,当前问题与issue 480重复,在issue 480统一跟踪


在您提交issue前,请确认以下信息:
[x] 我已经搜索过现有和历史issues,确认这是一个新问题
问题描述
1、使用aclrtSynchronizeStream报错507015;
2、另外即使把NPU算子写成空函数也是一样的报错;
3、plog错误日志如下:
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.760.692 [hwts_engine.cc:128]816339 ReportExceptProc:Task exception! device_id=0, stream_id=99, task_id=1, type=0(KERNEL_AICORE), failuremode =0, retCode=0x26, [aicore exception]
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.761.826 [device_error_proc.cc:532]816339 PrintCoreErrorInfo:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.761.834 [device_error_proc.cc:532]816339 PrintCoreErrorInfo:The error from device(0), serial number is 444, there is an aicore error, core id is 0, error code = 0x10, dump info: pc start: 0x80012400007e000, current: 0x12400007e030, vec error info: 0xb5, mte error info: 0xf4, ifu error info: 0x3124000200000, ccu error info: 0x317ec3c0003ec600, cube error info: 0x8c, biu error info: 0, aic error mask: 0x65000200d00028c, para base: 0x12c0c0240000, errorStr: Illegal instruction, which is usually caused by unaligned UUB addresses.
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.761.908 [device_error_proc.cc:563]816339 PrintCoreErrorInfo:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.761.912 [device_error_proc.cc:563]816339 PrintCoreErrorInfo:The extend info from device(0), serial number is 444, there is aicore error, core id is 0, aicore int: 0x10, aicore error2: 0, axi clamp ctrl: 0, axi clamp state: 0x1717, biu status0: 0x101d14000000000, biu status1: 0x80000201020000, clk gate mask: 0, dbg addr: 0, ecc en: 0, mte ccu ecc 1bit error: 0x300000000000000, vector cube ecc 1bit error: 0, run stall: 0x1, dbg data0: 0, dbg data1: 0, dbg data2: 0, dbg data3: 0, dfx data: 0xfd
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.761.944 [device_error_proc.cc:532]816339 PrintCoreErrorInfo:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.761.948 [device_error_proc.cc:532]816339 PrintCoreErrorInfo:The error from device(0), serial number is 444, there is an aicore error, core id is 1, error code = 0x10, dump info: pc start: 0x80012400007e000, current: 0x12400007e030, vec error info: 0x33, mte error info: 0xed, ifu error info: 0x3124000200000, ccu error info: 0x317ec3c00000f000, cube error info: 0x8c, biu error info: 0, aic error mask: 0x65000200d00028c, para base: 0x12c0c0240000, errorStr: Illegal instruction, which is usually caused by unaligned UUB addresses.
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.761.972 [device_error_proc.cc:563]816339 PrintCoreErrorInfo:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.761.976 [device_error_proc.cc:563]816339 PrintCoreErrorInfo:The extend info from device(0), serial number is 444, there is aicore error, core id is 1, aicore int: 0x10, aicore error2: 0, axi clamp ctrl: 0, axi clamp state: 0x1717, biu status0: 0x101d14000000000, biu status1: 0x80000201020000, clk gate mask: 0, dbg addr: 0, ecc en: 0, mte ccu ecc 1bit error: 0x2780000000000000, vector cube ecc 1bit error: 0, run stall: 0x1, dbg data0: 0, dbg data1: 0, dbg data2: 0, dbg data3: 0, dfx data: 0xb
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.000 [device_error_proc.cc:532]816339 PrintCoreErrorInfo:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.003 [device_error_proc.cc:532]816339 PrintCoreErrorInfo:The error from device(0), serial number is 444, there is an aicore error, core id is 2, error code = 0x10, dump info: pc start: 0x80012400007e000, current: 0x12400007e018, vec error info: 0x33, mte error info: 0x83, ifu error info: 0x3124000200000, ccu error info: 0x317ec3c000641600, cube error info: 0x8c, biu error info: 0, aic error mask: 0x65000200d00028c, para base: 0x12c0c0240000, errorStr: Illegal instruction, which is usually caused by unaligned UUB addresses.
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.029 [device_error_proc.cc:563]816339 PrintCoreErrorInfo:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.045 [device_error_proc.cc:563]816339 PrintCoreErrorInfo:The extend info from device(0), serial number is 444, there is aicore error, core id is 2, aicore int: 0x10, aicore error2: 0, axi clamp ctrl: 0, axi clamp state: 0x1717, biu status0: 0x101d14000000000, biu status1: 0x80000201020000, clk gate mask: 0, dbg addr: 0, ecc en: 0, mte ccu ecc 1bit error: 0x80000000000000, vector cube ecc 1bit error: 0, run stall: 0x1, dbg data0: 0, dbg data1: 0, dbg data2: 0, dbg data3: 0, dfx data: 0x8f
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.070 [device_error_proc.cc:532]816339 PrintCoreErrorInfo:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.073 [device_error_proc.cc:532]816339 PrintCoreErrorInfo:The error from device(0), serial number is 444, there is an aicore error, core id is 3, error code = 0x10, dump info: pc start: 0x80012400007e000, current: 0x12400007e030, vec error info: 0x33, mte error info: 0xf4, ifu error info: 0x3124000200000, ccu error info: 0x317ec3c0005bb100, cube error info: 0x8c, biu error info: 0, aic error mask: 0x65000200d00028c, para base: 0x12c0c0240000, errorStr: Illegal instruction, which is usually caused by unaligned UUB addresses.
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.095 [device_error_proc.cc:563]816339 PrintCoreErrorInfo:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.098 [device_error_proc.cc:563]816339 PrintCoreErrorInfo:The extend info from device(0), serial number is 444, there is aicore error, core id is 3, aicore int: 0x10, aicore error2: 0, axi clamp ctrl: 0, axi clamp state: 0x1717, biu status0: 0x101d14000000000, biu status1: 0x80000201020000, clk gate mask: 0, dbg addr: 0, ecc en: 0, mte ccu ecc 1bit error: 0x780000000000000, vector cube ecc 1bit error: 0, run stall: 0x1, dbg data0: 0, dbg data1: 0, dbg data2: 0, dbg data3: 0, dfx data: 0xfb
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.121 [device_error_proc.cc:532]816339 PrintCoreErrorInfo:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.125 [device_error_proc.cc:532]816339 PrintCoreErrorInfo:The error from device(0), serial number is 444, there is an aicore error, core id is 4, error code = 0x10, dump info: pc start: 0x80012400007e000, current: 0x12400007e030, vec error info: 0x5a1, mte error info: 0xf4, ifu error info: 0x3124000200000, ccu error info: 0x317ec3c0003ff000, cube error info: 0x8c, biu error info: 0, aic error mask: 0x65000200d00028c, para base: 0x12c0c0240000, errorStr: Illegal instruction, which is usually caused by unaligned UUB addresses.
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.150 [device_error_proc.cc:563]816339 PrintCoreErrorInfo:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.153 [device_error_proc.cc:563]816339 PrintCoreErrorInfo:The extend info from device(0), serial number is 444, there is aicore error, core id is 4, aicore int: 0x10, aicore error2: 0, axi clamp ctrl: 0, axi clamp state: 0x1717, biu status0: 0x101d14000000000, biu status1: 0x80000201020000, clk gate mask: 0, dbg addr: 0, ecc en: 0, mte ccu ecc 1bit error: 0x3f80000000000000, vector cube ecc 1bit error: 0, run stall: 0x1, dbg data0: 0, dbg data1: 0, dbg data2: 0, dbg data3: 0, dfx data: 0xad
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.175 [device_error_proc.cc:532]816339 PrintCoreErrorInfo:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.179 [device_error_proc.cc:532]816339 PrintCoreErrorInfo:The error from device(0), serial number is 444, there is an aicore error, core id is 6, error code = 0x10, dump info: pc start: 0x80012400007e000, current: 0x12400007e030, vec error info: 0x33, mte error info: 0xed, ifu error info: 0x3124000200000, ccu error info: 0x317ec3c000068c00, cube error info: 0x8c, biu error info: 0, aic error mask: 0x65000200d00028c, para base: 0x12c0c0240000, errorStr: Illegal instruction, which is usually caused by unaligned UUB addresses.
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.212 [device_error_proc.cc:563]816339 PrintCoreErrorInfo:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.215 [device_error_proc.cc:563]816339 PrintCoreErrorInfo:The extend info from device(0), serial number is 444, there is aicore error, core id is 6, aicore int: 0x10, aicore error2: 0, axi clamp ctrl: 0, axi clamp state: 0x1717, biu status0: 0x101d14000000000, biu status1: 0x80000201020000, clk gate mask: 0, dbg addr: 0, ecc en: 0, mte ccu ecc 1bit error: 0x2300000000000000, vector cube ecc 1bit error: 0, run stall: 0x1, dbg data0: 0, dbg data1: 0, dbg data2: 0, dbg data3: 0, dfx data: 0xcc
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.238 [device_error_proc.cc:532]816339 PrintCoreErrorInfo:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.241 [device_error_proc.cc:532]816339 PrintCoreErrorInfo:The error from device(0), serial number is 444, there is an aicore error, core id is 7, error code = 0x10, dump info: pc start: 0x80012400007e000, current: 0x12400007e030, vec error info: 0x33, mte error info: 0xed, ifu error info: 0x3124000200000, ccu error info: 0x317ec3c0001fef00, cube error info: 0x8c, biu error info: 0, aic error mask: 0x65000200d00028c, para base: 0x12c0c0240000, errorStr: Illegal instruction, which is usually caused by unaligned UUB addresses.
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.262 [device_error_proc.cc:563]816339 PrintCoreErrorInfo:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.266 [device_error_proc.cc:563]816339 PrintCoreErrorInfo:The extend info from device(0), serial number is 444, there is aicore error, core id is 7, aicore int: 0x10, aicore error2: 0, axi clamp ctrl: 0, axi clamp state: 0x1717, biu status0: 0x101d14000000000, biu status1: 0x80000201020000, clk gate mask: 0, dbg addr: 0, ecc en: 0, mte ccu ecc 1bit error: 0x3e80000000000000, vector cube ecc 1bit error: 0, run stall: 0x1, dbg data0: 0, dbg data1: 0, dbg data2: 0, dbg data3: 0, dfx data: 0xf9
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.289 [device_error_proc.cc:532]816339 PrintCoreErrorInfo:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.293 [device_error_proc.cc:532]816339 PrintCoreErrorInfo:The error from device(0), serial number is 444, there is an aicore error, core id is 8, error code = 0x10, dump info: pc start: 0x80012400007e000, current: 0x12400007e030, vec error info: 0x33, mte error info: 0xed, ifu error info: 0x3124000200000, ccu error info: 0x317ec3c000000000, cube error info: 0x8c, biu error info: 0, aic error mask: 0x65000200d00028c, para base: 0x12c0c0240000, errorStr: Illegal instruction, which is usually caused by unaligned UUB addresses.
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.316 [device_error_proc.cc:563]816339 PrintCoreErrorInfo:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.762.320 [device_error_proc.cc:563]816339 PrintCoreErrorInfo:The extend info from device(0), serial number is 444, there is aicore error, core id is 8, aicore int: 0x10, aicore error2: 0, axi clamp ctrl: 0, axi clamp state: 0x1717, biu status0: 0x101d14000000000, biu status1: 0x80000201020000, clk gate mask: 0, dbg addr: 0, ecc en: 0, mte ccu ecc 1bit error: 0x500000000000000, vector cube ecc 1bit error: 0, run stall: 0x1, dbg data0: 0, dbg data1: 0, dbg data2: 0, dbg data3: 0, dfx data: 0xbe
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.764.551 [davinic_kernel_task.cc:1221]816339 PreCheckTaskErr:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.764.577 [davinic_kernel_task.cc:1221]816339 PreCheckTaskErr:Kernel task happen error, retCode=0x26, [aicore exception].
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.764.689 [davinic_kernel_task.cc:1145]816339 PrintErrorInfoForDavinciTask:Aicore kernel execute failed, device_id=0, stream_id=99, report_stream_id=99, task_id=1, flip_num=0, fault kernel_name=428, fault kernel info ext=tdd_ce_fusion_op, program id=1, hash=10935623393189055793.
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.764.724 [davinic_kernel_task.cc:1084]816339 GetArgsInfo:[AIC_INFO] args(0 to 4) after execute:0x12c08011b000, 0x12c08017c000, 0x12c08017d000, 0x12c080011000,
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.764.730 [davinic_kernel_task.cc:1087]816339 GetArgsInfo:tilingKey = 0, print 1 Times totalLen=(4*8)Bytes, argsSize=32, blockDim=8
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.764.738 [davinic_kernel_task.cc:1149]816339 PrintErrorInfoForDavinciTask:[AIC_INFO] after execute:args print end
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.764.827 [stream.cc:1059]816339 GetError:Stream Synchronize failed, stream_id=99, retCode=0x26, [aicore exception].
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.764.832 [stream.cc:1062]816339 GetError:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.764.835 [stream.cc:1062]816339 GetError:Aicore kernel execute failed, device_id=0, stream_id=99, report_stream_id=99, task_id=1, flip_num=0, fault kernel_name=428, fault kernel info ext=tdd_ce_fusion_op, program id=1, hash=10935623393189055793.
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.764.874 [stream.cc:1062]816339 GetError:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.764.878 [stream.cc:1062]816339 GetError:[AIC_INFO] after execute:args print end
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.764.898 [api_error.cc:700]816339 StreamSynchronize:Stream synchronize failed, stream_id=99, timeout=-1.
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.764.908 [api_c_stream.cc:131]816339 rtStreamSynchronize:ErrCode=507015, desc=[aicore exception], InnerCode=0x7150026
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.764.921 [error_message_manage.cc:53]816339 FuncErrorReason:report error module_type=3, module_name=EE8888
[ERROR] RUNTIME(816339,besa_ai_app_test):2026-04-18-19:51:02.764.927 [error_message_manage.cc:53]816339 FuncErrorReason:rtStreamSynchronize execute failed, reason=[aicore exception]
[ERROR] ASCENDCL(816339,besa_ai_app_test):2026-04-18-19:51:02.764.963 [stream.cpp:129]816339 aclrtSynchronizeStream: synchronize stream failed, runtime result = 507015