http://defect.opensolaris.org/bz/show_bug.cgi?id=10082
Summary: memory leaks for nwamcfg
Classification: Development
Product: nwam
Version: unspecified
Platform: ANY/Generic
OS/Version: All
Status: NEW
Status Whiteboard: nwam1-build:2009-07-13
Severity: minor
Priority: P4
Component: CLI
AssignedTo: nwam-dev at opensolaris.org
ReportedBy: lizhong.li at sun.com
QAContact: nwam-dev at opensolaris.org
I did some manual testing for nwamcfg with libumem, it seems some leaks are
there, but I'm not sure.
unknown:nwam# nwamcfg
nwamcfg> list
NCPs:
Automatic
Locations:
NoNet
Legacy
Automatic
nwamcfg> create loc myloc1
Created loc 'myloc1'. Walking properties ...
activation-mode (manual) [manual|conditional-any|conditional-all]>
nameservices (dns) [dns|files|nis|ldap]>
nameservices-config-file ("/etc/nsswitch.dns")>
dns-nameservice-configsrc (dhcp) [manual|dhcp]>manual
dns-nameservice-domain>a.som
dns-nameservice-servers>a1.com
Set error: invalid value
'dns-nameservice-servers' specifies DNS server host address(es)
dns-nameservice-servers>12.12.12.12
dns-nameservice-search>s.com
nfsv4-domain>e.com
ipfilter-config-file>
ipfilter-v6-config-file>
ipnat-config-file>
ippool-config-file>
ike-config-file>
ipsecpolicy-config-file>
svcs-enable>
svcs-disable>
nwamcfg:loc:myloc1>
nwamcfg:loc:myloc1> end
Committed changes
nwamcfg>
unknown:nwam# export LD_PRELOAD_32=/usr/lib/libumem.so
unknown:nwam# export UMEM_DEBUG=default
unknown:nwam#
unknown:nwam#
unknown:nwam# pgrep nwamcfg
7138
unknown:nwam# gcore 7138
gcore: core.7138 dumped
unknown:nwam# mdb core.7138
Loading modules: [ libumem.so.1 libnvpair.so.1 ld.so.1 ]
> ::findleaks
CACHE LEAKED BUFFER CALLER
08098390 7 080a3de0 ?
08098710 7 080a5e90 ?
08098a90 1 080a46a0 ?
------------------------------------------------------------------------
Total 15 buffers, 312 bytes
> ::walk leakbuf
80a3de0
80a3f20
80a3e30
80a3e20
80a3e10
80a3e00
80a3df0
80a46a0
80a5e90
80a5f20
80a5f08
80a5ef0
80a5ed8
80a5ec0
80a5ea8
The gcore.7138 is attached.
--
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.