2.5K Star 8.3K Fork 4.5K

GVPMindSpore/mindspore

 / 详情

【MD】【FUZZ】UpdateArray算子,存在coredump的情况

DONE
Bug-Report
创建于  
2023-05-16 10:04
name about labels
Bug Report Use this template for reporting a bug kind/bug

Describe the current behavior / 问题描述 (Mandatory / 必填)

UpdateArray算子,存在coredump的情况

Environment / 环境信息 (Mandatory / 必填)

  • Hardware Environment(Ascend/GPU/CPU) / 硬件环境:
    Linux huawei 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Please delete the backend not involved / 请删除不涉及的后端:
/device ascend/GPU/CPU/kirin/等其他芯片

  • Software Environment / 软件环境 (Mandatory / 必填):
    -- MindSpore version (e.g., 1.7.0.Bxxx) : 2.0版本包
    -- Python version (e.g., Python 3.7.5) : 3.9
    -- OS platform and distribution (e.g., Linux Ubuntu 16.04):
    Linux huawei 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
    -- GCC/Compiler version (if compiled from source): gcc version 7.5.0

  • Excute Mode / 执行模式 (Mandatory / 必填)(PyNative/Graph):

Please delete the mode not involved / 请删除不涉及的模式:
/mode pynative
/mode graph

Related testcase / 关联用例 (Mandatory / 必填)

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

  1. 进入10.90.41.125 docker中对应目录
  2. 运行bash runtest.sh linux infer x86_64 *.TestUpdateArrayFuzz001 gtest_result.xml gtest_log.log
  3. 查看用例运行情况

Describe the expected behavior / 预期结果 (Mandatory / 必填)

3.运行正常,无coredump
实际情况:出现coredump,需要排查原因并解决

Related log / screenshot / 日志 / 截图 (Mandatory / 必填)

输入图片说明
输入图片说明

Special notes for this issue/备注 (Optional / 选填)

评论 (4)

董帆 创建了Bug-Report
董帆 添加了
 
kind/bug
标签
董帆 添加了
 
sig/minddata
标签
董帆 添加了
 
v2.0.0
标签
展开全部操作日志

Please assign maintainer to check this issue.
请为此issue分配处理人。
@董帆

Please add labels (comp or sig), also you can visit https://gitee.com/mindspore/community/blob/master/sigs/dx/docs/labels.md to find more.
为了让代码尽快被审核,请您为Pull Request打上 组件(comp)或兴趣组(sig) 标签,打上标签的PR可直接推送给责任人进行审核。
更多的标签可以查看https://gitee.com/mindspore/community/blob/master/sigs/dx/docs/labels.md
以组件相关代码提交为例,如果你提交的是data组件代码,你可以这样评论:
//comp/data
当然你也可以邀请data SIG组来审核代码,可以这样写:
//sig/data
另外你还可以给这个PR标记类型,例如是bugfix或者是特性需求:
//kind/bug or //kind/feature
恭喜你,你已经学会了使用命令来打标签,接下来就在下面的评论里打上标签吧!

问题描述 & 问题根因

  • 问题描述:
    UpdateArray算子,在做Fuzz测试的时候,会出现core dump
  • 问题根因:
    代码中无法解析输入的字符,导致没有捕获到错误。

修复链接

pr:
master:!54290:[MD] Fix UpdateArray json parse error
r2.0: !54291:[MD] Fix UpdateArray json parse error

本地验证

用例通过。

shenwei41 里程碑B-SIG-Data 修改为B-MDT
shenwei41 添加了
 
rct/oldrelease
标签
shenwei41 添加了
 
rca/others
标签
shenwei41 添加了
 
ctl/componenttest
标签
shenwei41 添加协作者shenwei41
shenwei41 负责人shenwei41 修改为董帆
shenwei41 任务状态TODO 修改为VALIDATION

【回归环境】:10.90.64.141
【操作步骤】:进入环境,cd/data/df/fuzz/src/MindDataTest/SecurityTest/CppFuzz/testcase_lite
运行 bash runtest.sh linux infer x86_64 *.TestUpdateArrayFuzz001 gtest_result.xml test_log.log
查看是否出现coredump
【实际结果】
没有出现coredump ——pass
输入图片说明

董帆 任务状态VALIDATION 修改为DONE

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore

搜索帮助

246c6175 1850385 950819b3 1850385