已关闭
[Bug-Report|缺陷反馈]: aclsparseCreateDnVec创建稠密向量的辅助接口,Destroy后操作查询参数验证,预期报错,实际查询成功 #134
zhaoxixi创建于  29 天前关闭于  12 天前
zhaoxixi
29 天前 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

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

aclsparseCreateDnVec创建稠密向量的辅助接口,Destroy后操作查询参数验证,预期报错,实际查询成功

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

950

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

执行命令:bash run_test.sh --test=aclsparseCreateDnVec
测试代码片段:

  
  // TC-025: Destroy后操作验证,Get返回错误码,不崩溃
    {
        const int64_t size = 100;
        void* dVals = nullptr;
        aclrtMalloc(&dVals, size * sizeof(float), ACL_MEM_MALLOC_HUGE_FIRST);

        aclsparseDnVecDescr_t descr = nullptr;
        aclsparseCreateDnVec(&descr, size, dVals, ACL_FLOAT);
        aclsparseDestroyDnVec(descr);

        int64_t outSize = 0;
        void* outVals = nullptr;
        aclDataType outType = ACL_FLOAT;
        aclsparseStatus_t s = aclsparseDnVecGet(descr, &outSize, &outVals, &outType);
        CHECK(s != ACL_SPARSE_STATUS_SUCCESS, "TC-025: DnVecGet after Destroy returns error");

        aclrtFree(dVals);
    }

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

预期查询失败
实际查询成功

image.png

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

d6fe5e3e035e4519aa4bc389e64a0de2.zip

likedislike
Zzhaoxixi
29 天前 修改了issue 的描述
Zzhaoxixi
29 天前 修改标题为 “[Bug-Report|缺陷反馈]: aclsparseCreateDnVec创建稠密向量的辅助接口,Destroy后操作查询参数验证,预期报错,实际查询成功”,原标题为“[Bug-Report|缺陷反馈]: 【CUBE领域_David 生态算子补齐迭代】aclsparseCreateDnVec创建稠密向量的辅助接口,Destroy后操作查询参数验证,预期报错,实际查询成功”
wangzitao
wangzitao成员
29 天前 评论:

您好,感谢反馈,问题确认中。

likedislike
HuangRZzzzHuangRZzzz成员
27 天前 将 HuangRZzzz 设为负责人
HuangRZzzzHuangRZzzz成员
26 天前 关联了pull request:[WIP]fix(sparse): 修复 aclsparseCreateDnMat/DnVec/SpVec 参数校验缺陷 (issues 131-135)
HuangRZzzzHuangRZzzz成员
26 天前 关联了pull request:fix(sparse): 修复 Destroy 空指针拦截+Destroy后查询/设置+空输出指针 (issues 136-137)
HuangRZzzzHuangRZzzz成员
21 天前 关联了pull request:fix(sparse): 统一 signature 校验机制覆盖 Destroy/Get/Set 全路径 (issues 131-137)
HuangRZzzzHuangRZzzz成员
21 天前 关联了pull request:fix(sparse): 统一 signature 校验机制覆盖 Destroy/Get/Set 全路径 (issues 131-137)
Zzhuzhiming成员
12 天前 issue状态由 进行中 改变为 已解决
Zzhuzhiming成员
12 天前 关闭了 issue