http://defect.opensolaris.org/bz/show_bug.cgi?id=10840


Anurag S. Maskey <Anurag.Maskey at Sun.COM> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |CAUSEKNOWN
         AssignedTo|nwam-dev at opensolaris.org    |Anurag.Maskey at Sun.COM


--- Comment #8 from Anurag S. Maskey <Anurag.Maskey at Sun.COM> 2009-10-13 
19:10:20 UTC ---
The nwamd log file shows:

Oct 13 13:43:28 biggs nwamd[101]: [ID 116834 daemon.error] 1: check_ipaddr:
icfg_get_addr: No space left on device

Looking at to_sockaddr() called from icfg_get_addr(), the following code
returns ENOSPC:

    if (*addrlen < len) {
        errno = ENOSPC;
        return (ICFG_FAILURE);
    }

Checking the value of *addrlen in mdb:

bash-3.2# mdb -p `pgrep nwamd`
Loading modules: [ ld.so.1 libumem.so.1 libc.so.1 libuutil.so.1 libnvpair.so.1
libsysevent.so.1 ]
> ::bp to_sockaddr
> :c
mdb: stop at to_sockaddr
mdb: target stopped at:
libinetcfg.so.1`to_sockaddr:    save      %sp, -0x60, %sp

> $c
libinetcfg.so.1`to_sockaddr(9fbc8, ffbff798, ffbff794, ffbff89c, 1, c0786800)
check_ipaddr+0x34(e1db0, ffbff968, e5a48, 2, 2, 2)
libinetcfg.so.1`icfg_iterate_if+0x44(e1db0, 0, ffbff968, 19b60, 0, 0)
test_condition_ip_address+0x144(0, 19800, 20, 6df00, 6df00, 10)
nwamd_check_conditions+0x78(2, b3ec8, 1, 0, 45144, 45148)
nwamd_loc_check+0x18c(8b408, ffbffc48, 2d000, 2cc00, 8b490, 2)
nwamd_walk_objects+0x4c(2, 1f3d4, ffbffc48, 8b408, 0, 8b490)
nwamd_loc_check_conditions+0x2c(17, bd1f4, 45400, 45200, 2a700, 1f000)
nwamd_event_handler+0x128(16c, 45000, 0, 1, 0, 5f5e100)
main+0x240(45800, 45000, ffbffe8c, 45000, 45000, 45000)
_start+0x108(0, 0, 0, 0, 0, 0)

> ffbff794/D
0xffbff794:     1               

*addrlen does not have the right value in SPARC.  In x86 machines, the value is
16 = sizeof (struct sockaddr_in).

-- 
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.

Reply via email to