11 Star 87 Fork 741

OpenHarmony / startup_init

 / 详情

【启动恢复子系统】在系统中创建了孤儿进程,但是系统最终没有回收掉创建的孤儿进程,导致TCB资源不足

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

问题描述:
在系统中创建一个孤儿进程,系统最后没有回收掉创建的这个孤儿进程。并强行使用kill -9 命令去杀这个孤儿进程也是杀不掉的,依旧在系统中有残留。

测试模块:process_posix
测试版本:https://hm-verify.obs.cn-north-4.myhuaweicloud.com/version/Daily_Version/20210601_033440/version-Daily_Version-20210601_033440-hispark_aries.tar.gz
测试用例:PidTest.testOrphanProcess
测试LOG:
Repeating all tests (iteration 49) . . .

Note: Google Test filter = PidTest.testOrphanProcess
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from PidTest
[ RUN ] PidTest.testOrphanProcess
parent process id:16
sub parent process id:53
orphane process id:21
before while child child 1
after while child child 1
child child exit 2
before while paret 2
[ OK ] PidTest.testOrphanProcess (206 ms)
[----------] 1 test from PidTest (210 ms total)

[----------] Global test environment tear-down
Gtest xml output finished
[==========] 1 test from 1 test case ran. (240 ms total)
[ PASSED ] 1 test.

Repeating all tests (iteration 50) . . .

Note: Google Test filter = PidTest.testOrphanProcess
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from PidTest
[ RUN ] PidTest.testOrphanProcess
parent process id:16
sub parent process id:53
[ERR]No idle PCB in the system!
======== Fork Error! =========
../../../test/xts/acts/kernel_lite/process_posix/src/PidTest.cpp:107: Failure
Expected equality of these values:
exitCode
Which is: 1
0
target process should exited 0.

before while paret 1
[441676][W:751]{hmac_rx_lan_frame_classify:user=1,type=4,len=60}[0~3dhcp 4arp_req 5arp_rsp 6eapol]

评论 (0)

李猛 创建了缺陷
李猛 关联仓库设置为OpenHarmony/startup_init_lite
南先森 负责人设置为lanxueyuan
南先森 添加了
 
Integration_Test
标签
南先森 添加了
 
SIG_API
标签
李猛 修改了描述
李猛 修改了标题
南先森 负责人lanxueyuan 修改为熊磊
南先森 负责人熊磊 修改为lanxueyuan
南先森 负责人lanxueyuan 修改为give-me-five
give-me-five 任务状态待办的 修改为已完成
展开全部操作日志

登录 后才可以发表评论

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

搜索帮助