Closed
API函数ksba_dn_der2str存在内存泄漏问题 #19
yixiangzhikeAdd on  Mar 10Closed at  Mar 11
yixiangzhike
Mar 10 Create

复现步骤:

  1. 编译类似以下结构测试程序

while(loop++ < 10000) {
ksba_dn_der2str (buf, strlen(buf), &string);
}

  1. 后台执行编译后程序
    ./Test_leak > /dev/null 2>&1 &

  2. 采集Test_leak进程对应RSS数据
    while true; do sleep 1; pmap -x `pidof Test_leak` | grep "total kB" | awk '{print $4;}'; done

  3. 输出数据如下,RSS持续增长

2400
2744
3088
3432
3776
4116
4460
4804
5148
5492
5836
6180
6524
6868
7212
7556
7900
8244
8588
8932
likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Mar 10 Added label: sig/Base-service
openeuler-ci-bot
openeuler-ci-botCollaborators
Mar 10 Comments:

Welcome To openEuler Community

Hey @yixiangzhike1 , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: Base-service ,
and any of the maintainers: @dillon_chen, @licihua, @overweight, @shenyangyang, @zhujianwei001 ,
and any of the committers: @houmingyong, @jiayi0118, @qq_28851361 .

likedislike
Yyixiangzhike
Mar 10 Modify description of issue
Yyixiangzhike
Mar 10 Associated pull request
Yyixiangzhike
Mar 10 Associated pull request
Yyixiangzhike
Mar 10 Associated pull request
openeuler-ci-botopeneuler-ci-botCollaborators
Mar 11 Associated pull request
openeuler-ci-botopeneuler-ci-botCollaborators
Mar 11 Associated pull request
openeuler-ci-botopeneuler-ci-botCollaborators
Mar 11 Associated pull request
openeuler-ci-botopeneuler-ci-botCollaborators
Mar 11 Associated pull request
openeuler-ci-botopeneuler-ci-botCollaborators
Mar 11 Close issue
openeuler-ci-botopeneuler-ci-botCollaborators
Mar 11 changed custom state from 待办的 to 已完成
Yyixiangzhike
Mar 13 Modify description of issue
Yyixiangzhike
Mar 13 Modify description of issue