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

           Summary: nwamd cores when checking advertised-domain condition
    Classification: Development
           Product: nwam
           Version: unspecified
          Platform: ANY/Generic
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P4
         Component: ON daemon
        AssignedTo: nwam-dev at opensolaris.org
        ReportedBy: renee.danson at sun.com
         QAContact: nwam-dev at opensolaris.org


--- Comment #0 from Renee Danson Sommerfeld <renee.danson at sun.com> 
2009-12-08 05:08:14 UTC ---
Created an attachment (id=3180)
core file

Creating a location with a condition of "advertised-domain is foo" causes nwamd
to dump core, with the following stack:

libc_hwcap1.so.1`strcmp+0xea(0, 809e6f0, 0, 0)
test_condition_domain+0x1b(0, 809e6f0, 0, febf5e6e)
test_condition_adv_domain+0x77(0, 809e6f0, 8047ba8, 8047bac)
nwamd_check_conditions+0x12f(2, 80c9488, 1, 8169690)
nwamd_loc_check+0xd9(8169608)
nwamd_walk_objects+0x76(2, 806008c, 8047c70, 80cf1f0)
nwamd_loc_check_conditions+0x55(5f5e100, 0, 8047cc8, 805e26c, fe621a48,
fe621a08
)
nwamd_check_all_conditions+0x10(fe621a48, fe621a08, 8047cc8, 0, fe621a08,
80cff10)
nwamd_event_handler+0x78(8047d00, fefd4d2a, 1, 0, 8047d00, fefd4c01)
main+0x199(1, 8047e1c, 8047e24, feffb804)
_start+0x7d(1, 8047ec4, 0, 8047ed4, 8047eea, 8047efb)

The complete core file is attached.

It looks like there's an assumption that if either a dns or nis domain is found
on a given interface, both will exist; i.e. the ncu_adv_domains structure is
created if either domain is non-null (in get_adv_domains(), called from
test_condition_adv_domain()), and then the test function proceeds to test both
dns and nis domain strings, assuming neither is null.  If one is null, which is
quite possible, the pointer is eventually passed to strcmp(), which is bad
news.

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