Bug 1649152 - There are lots of memory leak at libconfuse.
Summary: There are lots of memory leak at libconfuse.
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: libconfuse   
(Show other bugs)
Version: rawhide
Hardware: All All
unspecified
medium
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-13 03:12 UTC by shuitao gan
Modified: 2018-11-14 01:37 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-11-13 15:07:22 UTC
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
./confuse_test POC0 (1.00 KB, text/x-csrc)
2018-11-13 03:12 UTC, shuitao gan
no flags Details
./confuse_test POC0 (1.00 KB, text/x-csrc)
2018-11-14 01:31 UTC, shuitao gan
no flags Details
./confuse_test POC0 (1.00 KB, text/x-csrc)
2018-11-14 01:37 UTC, shuitao gan
no flags Details

Description shuitao gan 2018-11-13 03:12:29 UTC
Created attachment 1505088 [details]
./confuse_test POC0

version: libconfuse3.2.2
Summary: 

There are lots of memory leak at libconfuse. 

Description:

The asan debug is as follows:

$./confuse_test POC0
=================================================================
==56120==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 72 byte(s) in 1 object(s) allocated from:
    #0 0x7f5940f43b49 in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98b49)
    #1 0x7f5940c9bdac in cfg_init /home/company/real_sanitize/libconfuse-master/src/confuse.c:1579

Indirect leak of 3168 byte(s) in 3 object(s) allocated from:
    #0 0x7f5940f43b49 in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98b49)
    #1 0x7f5940c96679 in cfg_dupopt_array /home/company/real_sanitize/libconfuse-master/src/confuse.c:485

Indirect leak of 227 byte(s) in 24 object(s) allocated from:
    #0 0x7f5940f439aa in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x989aa)
    #1 0x7f5940950429 in __strdup (/lib/x86_64-linux-gnu/libc.so.6+0x8b429)

Indirect leak of 72 byte(s) in 9 object(s) allocated from:
    #0 0x7f5940f43b49 in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98b49)
    #1 0x7f5940c9569f in cfg_addval /home/company/real_sanitize/libconfuse-master/src/confuse.c:463

Indirect leak of 72 byte(s) in 5 object(s) allocated from:
    #0 0x7f5940f43d2a in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98d2a)
    #1 0x7f5940c95646 in cfg_addval /home/company/real_sanitize/libconfuse-master/src/confuse.c:458

Indirect leak of 46 byte(s) in 1 object(s) allocated from:
    #0 0x7f5940f439aa in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x989aa)
    #1 0x7f5940950429 in __strdup (/lib/x86_64-linux-gnu/libc.so.6+0x8b429)
    #2 0x36303a6769732c37  (<unknown module>)

Indirect leak of 5 byte(s) in 1 object(s) allocated from:
    #0 0x7f5940f439aa in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x989aa)
    #1 0x7f5940c9bdc2 in cfg_init /home/company/real_sanitize/libconfuse-master/src/confuse.c:1583

Comment 1 Gwyn Ciesla 2018-11-13 15:07:22 UTC
I don't know what to do with the attachment. Additionally, wouldn't this be better submitted upstream?

Comment 2 shuitao gan 2018-11-14 01:31 UTC
Created attachment 1505508 [details]
./confuse_test POC0

Comment 3 shuitao gan 2018-11-14 01:37 UTC
Created attachment 1505509 [details]
./confuse_test POC0


Note You need to log in before you can comment on or make changes to this bug.