OpenSolaris

Printable Version Enter a New Search
Bug ID 6581638
Synopsis sharemgr: sa_sharetab_fill_zfs() leaks memory
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:filesystem
Keywords fw_10
Responsible Engineer Mark Shellenbaum
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_70b
Fixed In snv_70b
Release Fixed solaris_nevada(snv_70b) , solaris_10u6(s10u6_01) (Bug ID:2156423)
Related Bugs
Submit Date 17-July-2007
Last Update Date 9-May-2008
Description
While running nighly tests we found this leak:

> 0f956650::bufctl -v
            ADDR          BUFADDR        TIMESTAMP           THREAD
                            CACHE          LASTLOG         CONTENTS
         f956650          f957268       d118882a56              509
                          80d0010          8084000          80a6a70
                 libumem.so.1`umem_cache_alloc_debug+0x14f
                 libumem.so.1`umem_cache_alloc+0x144
                 libumem.so.1`umem_alloc+0xc5
                 libumem.so.1`malloc+0x27
                 libxml2.so.2`xmlStrndup+0x37
                 libxml2.so.2`xmlStrdup+0x34
                 libxml2.so.2`xmlStrcat+0x48
                 libxml2.so.2`xmlNodeListGetString+0x139
                 libxml2.so.2`xmlGetProp+0x74
                 libshare.so.1`get_node_attr+0x27
                 libshare.so.1`sa_get_share_attr+0x11
                 libshare.so.1`sa_sharetab_fill_zfs+0x25
                 0xfe055c85
                 libshare.so.1`sa_proto_share+0x28
                 libshare.so.1`sa_enable_share+0x56

The problem is simple: sa_sharetab_fill_zfs() calls sa_get_share_attr()
but never calls sa_free_attr_string().
Work Around
N/A
Comments
N/A