Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
13
Star
0
Fork
13
src-openEuler
/
chkconfig
Closed
Code
Issues
0
Pull Requests
0
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
chkconfig命令读取xinetd服务时发生coredump
Done
#ICX7MU
Bug
peulerosci
Opened this issue
2025-09-10 08:06
<h3>优先级:</h3><p>次要</p><p></p><h3>详细描述:</h3><p></p><p> 【OS版本】:被测的版本信息</p><p></p><p>当前各在维分支均涉及 </p><p></p><p> 【测试类型】:发现问题的测试类型,功能测试、可靠性测试、性能测试等</p><p></p><p>功能测试</p><p></p><p>4) 【缺陷年龄】:修改引入/历史缺陷</p><p></p><p>NA</p><p></p><p> 【测试步骤】:详细描述可以复现该问题的测试步骤</p><p>$ yum install xinetd</p><p>$ vim /etc/xinetd.d/test</p><p># description:</p><p># description:</p><p># description:</p><p>$ chkconfig</p><p>Note: This output shows SysV services only and does not include native</p><p> systemd services. SysV configuration data might be overridden by native</p><p> systemd configuration.</p><p></p><p> If you want to list systemd services use 'systemctl list-unit-files'.</p><p> To see services enabled on particular target use</p><p> 'systemctl list-dependencies [target]'.</p><p></p><p></p><p>xinetd based services:</p><p>free(): double free detected in tcache 2</p><p>Aborted (core dumped)</p><p></p><p></p><p> 【结果输出】:根据上述测试步骤执行后,系统的实际输出</p><p></p><p>出现coredump异常</p><p></p><p> 【预期输出】:系统在上述测试步骤操作后,按照系统设计应该输出的结果</p><p></p><p>正常输出回显,没有coredump</p><p></p><p> 【测试代码】:发现问题的测试代码,或者关键片段,能指导问题复现</p><p></p><p>见测试步骤</p><p></p><p> 【初步定位结论】:已明确的相关定位信息或者相关的沟通交流信息</p><p></p><p> </p><h3>原因分析:</h3><p></p><p>【是否新引入rpm包,是否进行了安全编译选项扫描】</p><p></p><p>否</p><p></p><p>【定位分析】</p><p></p><p>当xinetd在/etc/xinetd.d/的配置文件中,存在三条及以上空的description项时,用chkconfig去管理xinetd服务时就会出现double free的coredump。</p><p></p><p>经定位是chkconfig在解析xinetd配置时,对于空的description项解析流程有误,在解析失败的时候只对变量进行了free而没有置空,导致再次解析失败的时候就出现了double free。</p><p></p><p></p><p>【对外部是否有影响】</p><p></p><p>否</p><p></p><p>【是否修改引入】</p><p></p><p></p><p></p><p></p><p></p>
<h3>优先级:</h3><p>次要</p><p></p><h3>详细描述:</h3><p></p><p> 【OS版本】:被测的版本信息</p><p></p><p>当前各在维分支均涉及 </p><p></p><p> 【测试类型】:发现问题的测试类型,功能测试、可靠性测试、性能测试等</p><p></p><p>功能测试</p><p></p><p>4) 【缺陷年龄】:修改引入/历史缺陷</p><p></p><p>NA</p><p></p><p> 【测试步骤】:详细描述可以复现该问题的测试步骤</p><p>$ yum install xinetd</p><p>$ vim /etc/xinetd.d/test</p><p># description:</p><p># description:</p><p># description:</p><p>$ chkconfig</p><p>Note: This output shows SysV services only and does not include native</p><p> systemd services. SysV configuration data might be overridden by native</p><p> systemd configuration.</p><p></p><p> If you want to list systemd services use 'systemctl list-unit-files'.</p><p> To see services enabled on particular target use</p><p> 'systemctl list-dependencies [target]'.</p><p></p><p></p><p>xinetd based services:</p><p>free(): double free detected in tcache 2</p><p>Aborted (core dumped)</p><p></p><p></p><p> 【结果输出】:根据上述测试步骤执行后,系统的实际输出</p><p></p><p>出现coredump异常</p><p></p><p> 【预期输出】:系统在上述测试步骤操作后,按照系统设计应该输出的结果</p><p></p><p>正常输出回显,没有coredump</p><p></p><p> 【测试代码】:发现问题的测试代码,或者关键片段,能指导问题复现</p><p></p><p>见测试步骤</p><p></p><p> 【初步定位结论】:已明确的相关定位信息或者相关的沟通交流信息</p><p></p><p> </p><h3>原因分析:</h3><p></p><p>【是否新引入rpm包,是否进行了安全编译选项扫描】</p><p></p><p>否</p><p></p><p>【定位分析】</p><p></p><p>当xinetd在/etc/xinetd.d/的配置文件中,存在三条及以上空的description项时,用chkconfig去管理xinetd服务时就会出现double free的coredump。</p><p></p><p>经定位是chkconfig在解析xinetd配置时,对于空的description项解析流程有误,在解析失败的时候只对变量进行了free而没有置空,导致再次解析失败的时候就出现了double free。</p><p></p><p></p><p>【对外部是否有影响】</p><p></p><p>否</p><p></p><p>【是否修改引入】</p><p></p><p></p><p></p><p></p><p></p>
Comments (
6
)
Sign in
to comment
Status
Done
Backlog
已挂起
Fixing
Confirmed
Done
Accepted
Canceled
Assignees
Not set
chenjiayi
jiayi0118
Assignee
Collaborator
+Assign
+Mention
Labels
sig/Base-service
Not set
Projects
Unprojected
Unprojected
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(3)
1
https://gitee.com/src-openeuler/chkconfig.git
git@gitee.com:src-openeuler/chkconfig.git
src-openeuler
chkconfig
chkconfig
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register