OpenSolaris

Printable Version Enter a New Search
Bug ID 6633446
Synopsis Memory leak whenever "fmadm reset eft"
State 10-Fix Delivered (Fix available in build)
Category:Subcategory fma:eversholt
Keywords
Responsible Engineer Stephen Hanson
Reported Against
Duplicate Of
Introduced In solaris_10u5
Commit to Fix snv_83
Fixed In snv_83
Release Fixed solaris_nevada(snv_83) , solaris_10u6(s10u6_01) (Bug ID:2161060)
Related Bugs
Submit Date 23-November-2007
Last Update Date 6-April-2008
Description
When running fmstress on SUNW,Sun-Fire-V240/pontiac.sfbay, got some cores which are under /test

> ::findleaks -d
CACHE     LEAKED   BUFCTL CALLER
00082788       8 00555068 fmd_alloc+0xc
----------------------------------------------------------------------
   Total       8 buffers, 256 bytes

umem_alloc_32 leak: 8 buffers, 32 bytes each, 256 bytes total
            ADDR          BUFADDR        TIMESTAMP           THREAD
                            CACHE          LASTLOG         CONTENTS
          555068           5516c0      f7cf8ea247b               13
                            82788            6d068                0
                 libumem.so.1`umem_cache_alloc+0x13c
                 libumem.so.1`umem_alloc+0x60
                 fmd_alloc+0xc
                 fmd_hdl_alloc+0x68
                 eft.so`alloc_malloc+0x58
                 eft.so`lut_add+0xac
                 eft.so`tree_func+0x1b4
                 eft.so`yyparse+0x13dc
                 eft.so`_fmd_init+0xf8
                 fmd_module_enter+0xe0
                 rtld_init+0xfc
                 fmd_module_start+0x14
                 fmd_thread_start+0x48
                 libc.so.1`_lwp_start 

It exists on all platforms. It will leak a few bytes whenever "fmadm reset eft" is run, but this should seldom if ever be run on user systems.

"struct lut *Usedprops" defined in eversholt/common/tree.c isn't freed
when eft.so cleanups.

The fix is straightforward, free it in tree_fini().
Work Around
N/A
Comments
N/A