已合并
为OptionalInfos的底层对象加锁保护 #1553
为OptionalInfos的底层对象加锁保护 #1553
已合并
jiang-mingming01创建于 4月14日
4月14日

描述

OptionalInfos底层存储对象是唯一的,没有加锁保护;各个对象的并发动作会触发string的引用计数异常,导致coredump

关联的Issue

测试

一个session下创建多个model,并发指定load、compile、launch等动作,长时间压测(大于1小时)

文档更新

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 jiang-mingming01 的贡献)
Jjiang-mingming01
4月14日 创建了 pull request,commit e96cb251
CANN-robot
CANN-robot成员
4月14日 评论:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here
You can get sig-info at here


PR Approval Progress

Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
src/platform jason_yuan_ye, arthur_morgan_hw (2/2) jason_yuan_ye (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

jiang-mingming01, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robotCANN-robot成员
4月14日 添加了label:cann-cla/yes
CANN-robotCANN-robot成员
4月14日 将wangtao43,zhangpengpeng8,yanmingxiang,Reyn52166,gcw_9B2nSsjo,shikai-1,ykl999,houyanbao,tingwood设为评审人
CANN-robotCANN-robot成员
4月14日 将gcw_9B2nSsjo,shikai-1设为审查人
jiang-mingming01
4月14日 评论:

compile

likedislike
CANN-robotCANN-robot成员
4月14日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
4月14日 评论:

流水线任务触发成功
任务链接 [2d9d508c3f9c4e498f1acc0eec582b92][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>>
codecheck_style ✅ SUCCESS
UT_Test_acl ✅ SUCCESS >>>>>
UT_Test_rts ✅ SUCCESS >>>>>
UT_Test_rts_c ✅ SUCCESS >>>>>
UT_Test_platform ✅ SUCCESS >>>>>
UT_Test_qs ✅ SUCCESS >>>>>
UT_Test_aicpusd ✅ SUCCESS >>>>>
UT_Test_tsd ✅ SUCCESS >>>>>
UT_Test_dfx ✅ SUCCESS >>>>>
API_Check ✅ SUCCESS >>>>>
UT_Test_mmpa ✅ SUCCESS >>>>>
Smoke_A900_npupool ✅ SUCCESS >>>>>

[2026-04-14 11:03:45]    CI执行结束

likedislike
CANN-robotCANN-robot成员
4月14日 添加了label:api-check-pass
此处折叠了5条事件消息 查看更多
CANN-robotCANN-robot成员
4月17日 删除了label:ci-pipeline-passed
CANN-robot
CANN-robot成员
4月17日 评论:

Notification

This pull request source branch has changed, so removes the following label(s): ci-pipeline-passed.

likedislike
jiang-mingming01
4月17日 评论:

compile

likedislike
CANN-robotCANN-robot成员
4月17日 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
4月17日 删除了label:api-check-pass
CANN-robot
CANN-robot成员
4月17日 评论:

流水线任务触发成功
任务链接 [f81abe2e98d04ad5a8a3ef97b3280b7d][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>>
codecheck_style ✅ SUCCESS
UT_Test_acl ✅ SUCCESS >>>>>
UT_Test_rts ✅ SUCCESS >>>>>
UT_Test_rts_c ✅ SUCCESS >>>>>
UT_Test_platform ✅ SUCCESS >>>>>
UT_Test_qs ✅ SUCCESS >>>>>
UT_Test_aicpusd ✅ SUCCESS >>>>>
UT_Test_tsd ✅ SUCCESS >>>>>
UT_Test_dfx ✅ SUCCESS >>>>>
API_Check ✅ SUCCESS >>>>>
UT_Test_mmpa ✅ SUCCESS >>>>>
Smoke_A900_npupool ✅ SUCCESS >>>>>

[2026-04-17 11:45:55]    CI执行结束

likedislike
CANN-robotCANN-robot成员
4月17日 添加了label:api-check-pass
CANN-robotCANN-robot成员
4月17日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
4月17日 添加了label:ci-pipeline-passed
Jjiang-mingming01
4月20日 修改标题为 “为OptionalInfos的底层对象加锁保护”,原标题为“add mtx”
Jjiang-mingming01
4月20日 修改了pull request 的描述
jiang-mingming01
4月20日 评论:

compile

likedislike
CANN-robotCANN-robot成员
4月20日 删除了label:ci-pipeline-passed
CANN-robotCANN-robot成员
4月20日 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
4月20日 删除了label:api-check-pass
CANN-robot
CANN-robot成员
4月20日 评论:

流水线任务触发成功
任务链接 [c4b4bf6c10194446bb0da78c2ffe54a6][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>>
codecheck_style ✅ SUCCESS
UT_Test_acl ✅ SUCCESS >>>>>
UT_Test_rts ✅ SUCCESS >>>>>
UT_Test_rts_c ✅ SUCCESS >>>>>
UT_Test_platform ✅ SUCCESS >>>>>
UT_Test_qs ✅ SUCCESS >>>>>
UT_Test_aicpusd ✅ SUCCESS >>>>>
UT_Test_tsd ✅ SUCCESS >>>>>
UT_Test_dfx ✅ SUCCESS >>>>>
API_Check ✅ SUCCESS >>>>>
UT_Test_mmpa ✅ SUCCESS >>>>>
Smoke_A900_npupool ✅ SUCCESS >>>>>

[2026-04-20 10:01:48]    CI执行结束

likedislike
CANN-robotCANN-robot成员
4月20日 添加了label:api-check-pass
CANN-robotCANN-robot成员
4月20日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
4月20日 添加了label:ci-pipeline-passed
lipeijie
lipeijie成员
4月20日 评论:

/lgtm

likedislike
袁野
袁野成员
4月20日 评论:

/approve

likedislike
CANN-robotCANN-robot成员
4月20日 添加了label:lgtmapproved
CANN-robot
CANN-robot成员
4月20日 评论:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: jason_yuan_ye.
Reviewers who wrote a comment of /lgtm are: jason_yuan_ye, arthur_morgan_hw.

likedislike
CANN-robotCANN-robot成员
4月20日 合入了pull request
李俊谕成员
4月21日 关联了issue:<安全漏洞>:PlatformManagerV2 GetPlatformInfos 锁范围不匹配竞态