查看问题详情
编号 | 项目 | 分类 | 查看权限 | 报告日期 | 最后更新 |
---|---|---|---|---|---|
0000185 | Anolis OS 8 | kernel | public | 2021-07-01 17:26 | 2021-07-04 14:02 |
报告员 | yinyongchen | 分派给 | geliwei-ali | ||
优先级 | normal | 严重性 | minor | 出现频率 | always |
状态 | assigned | 处理状况 | open | ||
平台 | aarch64 | 操作系统 | Anolis OS | 操作系统版本 | 8.4 |
标题 | 0000185: [Anolis 8.4-4.18-aarch64] ltp-latest-controllers->用例memcg_subgroup_charge,测试进程加入task文件后被kill -0杀掉 | ||||
描述 | [缺陷描述]: ltp-latest-controllers->用例memcg_subgroup_charge,测试进程加入开启cgroup内存限额的task文件后被kill -0杀掉 Anolis 8.2-4.18-aarch64无此问题 T-one链接:https://tone.aliyun-inc.com/ws/6yddz4ne/test_result/27632 错误日志如下: <<<test_start>>> tag=memcg_subgroup_charge stime=1625060114 cmdline="memcg_subgroup_charge.sh" contacts="" analysis=exit <<<test_output>>> memcg_subgroup_charge 1 TINFO: Starting test 1 /tmp/tone/run/ltp/testcases/bin/memcg_lib.sh: line 522: echo: write error: Device or resource busy memcg_subgroup_charge 1 TINFO: set /dev/memcg/memory.use_hierarchy to 0 failed memcg_subgroup_charge 1 TINFO: Running memcg_process --mmap-anon -s 2162688 memcg_subgroup_charge 1 TINFO: Warming up pid: 235279 memcg_subgroup_charge 1 TINFO: Process is still here after warm up: 235279 /tmp/tone/run/ltp/testcases/bin/memcg_lib.sh: line 120: 235279 Killed memcg_process --mmap-anon -s $PAGESIZES memcg_subgroup_charge 1 TFAIL: rss is 0, 2162688 expected /tmp/tone/run/ltp/testcases/bin/memcg_lib.sh: line 429: echo: write error: No such process memcg_subgroup_charge 2 TPASS: rss is 0 as expected /tmp/tone/run/ltp/testcases/bin/memcg_lib.sh: line 434: echo: write error: No such process memcg_subgroup_charge 3 TINFO: Starting test 2 /tmp/tone/run/ltp/testcases/bin/memcg_lib.sh: line 522: echo: write error: Device or resource busy memcg_subgroup_charge 3 TINFO: set /dev/memcg/memory.use_hierarchy to 0 failed memcg_subgroup_charge 3 TINFO: Running memcg_process --mmap-anon -s 2162688 memcg_subgroup_charge 3 TINFO: Warming up pid: 235327 memcg_subgroup_charge 3 TINFO: Process is still here after warm up: 235327 /tmp/tone/run/ltp/testcases/bin/memcg_lib.sh: line 120: 235327 Killed memcg_process --mmap-anon -s $PAGESIZES memcg_subgroup_charge 3 TFAIL: rss is 0, 2162688 expected /tmp/tone/run/ltp/testcases/bin/memcg_lib.sh: line 429: echo: write error: No such process memcg_subgroup_charge 4 TPASS: rss is 0 as expected /tmp/tone/run/ltp/testcases/bin/memcg_lib.sh: line 434: echo: write error: No such process memcg_subgroup_charge 5 TINFO: Starting test 3 /tmp/tone/run/ltp/testcases/bin/memcg_lib.sh: line 522: echo: write error: Device or resource busy memcg_subgroup_charge 5 TINFO: set /dev/memcg/memory.use_hierarchy to 0 failed memcg_subgroup_charge 5 TINFO: Running memcg_process --mmap-anon -s 2162688 memcg_subgroup_charge 5 TINFO: Warming up pid: 235358 memcg_subgroup_charge 5 TINFO: Process is still here after warm up: 235358 /tmp/tone/run/ltp/testcases/bin/memcg_lib.sh: line 120: 235358 Killed memcg_process --mmap-anon -s $PAGESIZES memcg_subgroup_charge 5 TFAIL: rss is 0, 2162688 expected /tmp/tone/run/ltp/testcases/bin/memcg_lib.sh: line 429: echo: write error: No such process memcg_subgroup_charge 6 TPASS: rss is 0 as expected /tmp/tone/run/ltp/testcases/bin/memcg_lib.sh: line 434: echo: write error: No such process <<<execution_status>>> initiation_status="ok" duration=4 termination_type=exited termination_id=1 corefile=no cutime=10 cstime=19 <<<test_end>>> [重现概率] 必现 [重现环境] Host:虚拟机 ,aarch64 OS: # cat /etc/os-release NAME="Anolis OS" VERSION="8.4" ID="anolis" ID_LIKE="rhel fedora centos" VERSION_ID="8.4" PLATFORM_ID="platform:an8" PRETTY_NAME="Anolis OS 8.4" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" kernel: # uname -r 4.18.0-305.an8.aarch64 [期望结果]: 用例PASS [实际结果]: 用例FAIL [初步分析]: memcg_process.c 是用例自己的测试程序,主要用来申请与释放内存,接收一次USR1信号时会使用mmap申请与限额等值的内存,再接收一次USR1信号时则会释放掉之前申请的内存;同时程序接收到INT信号时则会退出 用例中的warmup()接口在测试程序未加入cgroup限额时发送了两次USR1信号和一次-0信号,测试程序未退出(经测试此时只发送一次USR1信号再发送-0信号也不会退出);但在把测试程序的pid加入cgroup限额后,发送一次USR1信号后再发送一次-0信号时测试程序会直接被kill 以此现象分析,该问题应该与cgroup内存限额功能有关 | ||||
问题重现步骤 | git clone http://gitlab.alibaba-inc.com/alikernel/ltp.git --branch LTP-20190517 make autotools ./configure make && make install /opt/ltp/runltp -f controllers -s memcg_subgroup_charge | ||||
标签 | 没加标签. | ||||
日期 | 用户名 | 字段 | 更改 |
---|---|---|---|
2021-07-01 17:26 | yinyongchen | 新建问题 | |
2021-07-01 20:13 | wb-wpp899309 | 注释已添加: 0000296 | |
2021-07-04 14:02 | jacobwang | 分派给 | => geliwei-ali |
2021-07-04 14:02 | jacobwang | 状态 | 新建 => 已分配 |