69 Star 68 Fork 985

OpenHarmony / drivers_peripheral

 / 详情

【OpenHarmony 3.0.0.6】【驱动子系统】L1 3516DV300单板liteos版本调用AllocMem接口测试,单板挂死

已完成
缺陷
创建于  
2021-09-02 09:29

【模块名_概率】简要描述:L1 3516DV300单板liteos版本调用AllocMem接口测试,单板挂死

【环境信息】:L1 3516DV300单板liteos版本:OpenHarmony 3.0.0.6

【预置条件】:加载OpenHarmony 3.0.0.6 liteos版本

【测试步骤】:调用测试bin,运行测试用例
HWTEST_F(HdiDisplayTest, SUB_DriverSystem_HdiDisplay_0290, Function | MediumTest | Level1)
{
int ret;
(void)memset_s(&g_buffer, sizeof(BufferHandle), 0, sizeof(BufferHandle));
AllocInfo info = {
.width = SAMPLE_RECT_WIDTH,
.height = SAMPLE_RECT_HEIGHT,
.format = PIXEL_FMT_RGBA_8888,
.usage = HBM_USE_MEM_MMZ_CACHE
};

if (g_displayTest.grallocFuncs->AllocMem == NULL) {
    HDF_LOGE("grallocFuncs.AllocMem is NULL");
}
ret = g_displayTest.grallocFuncs->AllocMem(&info, &g_buffer);
EXPECT_EQ(DISPLAY_SUCCESS, ret);

if (g_displayTest.grallocFuncs->FreeMem != NULL) {
    g_displayTest.grallocFuncs->FreeMem(g_buffer);
}

}

【预期结果】:用例pass

【实际结果】:单板挂死
OHOS # ./HdfDisplayTest.bin --gtest_filter=HdiDisplayTest.SUB_DriverSystem_HdiDisplay_0290
OHOS # Running main() from ../../../third_party/googletest/googletest/src/gtest_main.cc
Note: Google Test filter = HdiDisplayTest.SUB_DriverSystem_HdiDisplay_0290

[==========] Running 1 test from 1 test case.

[----------] Global test environment set-up.

[----------] 1 test from HdiDisplayTest

01-01 00:04:56.349 16 49 I 02500/HDF_DISP: LayerInitialize: layer initialize success

01-01 00:04:56.349 16 49 I 02500/HDF_DISP: GrallocInitialize: gralloc initialize success

01-01 00:04:56.349 16 49 I 02500/HDF_DISP: GfxInitialize: gfx initialize success

[ RUN ] HdiDisplayTest.SUB_DriverSystem_HdiDisplay_0290

[ERR]OsVmPageFaultHandler 347

##################excFrom: kernel!###################
cpu0 is in exc.
cpu1 is halted.
The current handling the exception is cpu0 !
data_abort fsr:0x5, far:0x000002a2
Abort caused by a read instruction. Translation fault, section
excType: data abort
processName = HdfDisplayTest.bin
processID = 16
process aspace = 0x01000000 -> 0x3f000000
taskName = HdfDisplayTest.bin
taskID = 49
task user stack = 0x3ea80000 -> 0x3eb80000
pc = 0x401ac3f8

【恢复手段】:单板下电、上电

【出现概率】:必现

评论 (1)

liuhonggang 创建了缺陷
liuhonggang 负责人设置为谢应东
liuhonggang 负责人谢应东 修改为YUJIA
liuhonggang 添加了
 
Integration_Test
标签
liuhonggang 添加协作者谢应东
YUJIA 任务状态待办的 修改为已确认
YUJIA 任务状态已确认 修改为修复中
zianed 负责人YUJIA 修改为yuan.w.hong
zianed 添加协作者YUJIA
zianed 取消协作者YUJIA
zianed 取消协作者谢应东
展开全部操作日志
yuan.w.hong 任务状态修复中 修改为已完成

登录 后才可以发表评论

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

搜索帮助