Hi Coders,

I have a problem I have been fighting for a week now.  Basically, a
segfault on: 

SunOS 5.9 Generic 112233-11 Dec 2003, 
NetSNMP 5.4
gcc version 3.2 
configure --enable-mfd-rewrites --disable-shared --disable-embedded-perl
--with-mib-modules="if-mib udp-mib tcp-mib ucd-snmp/diskio" 

I have noticed the problem only on kernel versions: Generic 112233-11,
and then only a subset of those.  Why it works on some and segfaults  on
others still alludes me.  Patch level on the hosts are exactly the same.
Hardware is V240.  Same snmpd build.

The output below is from snmpd running in the foreground with a -DALL
and a truss.  I can trigger the segfault by walking anything related to
time.  For example, in this case below, my snmpwalk command is:

snmpwalk -v1 -cpublic myhost .1.3.6.1.2.1.25.1.1

========== truss with DALL output =============
.... snip ....
write(3, " v a c m _ i n _ v i e w".., 22)      = 22
vacm_in_view: sn=comm1write(2, " v a c m _ i n _ v i e w".., 22)
= 22
write(3, " ,   g n = g r p c o m m".., 13)      = 13
, gn=grpcomm1write(2, " ,   g n = g r p c o m m".., 13) = 13
write(3, " ,   v n = _ a l l _", 10)            = 10
, vn=_all_write(2, " ,   v n = _ a l l _", 10)          = 10
write(3, "\n", 1)                               = 1

write(2, "\n", 1)                               = 1
write(3, " t r a c e :  ", 7)                   = 7
trace: write(2, " t r a c e :  ", 7)                    = 7
write(3, " n e t s n m p _ v i e w".., 43)      = 43
netsnmp_view_subtree_check(): vacm.c, 525:
write(2, " n e t s n m p _ v i e w".., 43)      = 43
write(3, " 9 : v a c m : c h e c k".., 21)      = 21
9:vacm:checkSubtree: write(2, " 9 : v a c m : c h e c k".., 21) = 21
write(3, " v i e w   _ a l l _\n", 11)          = 11
view _all_
write(2, " v i e w   _ a l l _\n", 11)          = 11
write(3, " t r a c e :  ", 7)                   = 7
trace: write(2, " t r a c e :  ", 7)                    = 7
write(3, " n e t s n m p _ v i e w".., 43)      = 43
netsnmp_view_subtree_check(): vacm.c, 562:
write(2, " n e t s n m p _ v i e w".., 43)      = 43
write(3, " 9 : v a c m : c h e c k".., 21)      = 21
9:vacm:checkSubtree: write(2, " 9 : v a c m : c h e c k".., 21) = 21
write(3, "  05 _ a l l _   m a t c".., 17)      = 17
 _all_ matched?
write(2, "  05 _ a l l _   m a t c".., 17)      = 17
write(3, " t r a c e :  ", 7)                   = 7
trace: write(2, " t r a c e :  ", 7)                    = 7
write(3, " n e t s n m p _ v i e w".., 43)      = 43
netsnmp_view_subtree_check(): vacm.c, 623:
write(2, " n e t s n m p _ v i e w".., 43)      = 43
write(3, " 9 : v a c m : c h e c k".., 21)      = 21
9:vacm:checkSubtree: write(2, " 9 : v a c m : c h e c k".., 21) = 21
    Incurred fault #6, FLTBOUNDS  %pc = 0xFEFB4478
      siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000
    Received signal #11, SIGSEGV [default]
      siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000

========== truss with DALL output =============


I can post a formal bug, but thought I should post the list first.

Thanks for any assistance you can provide.

Regards,
John


-- 
===========================================
John Clinton, Netcool Administrator
Mobile 678.717.8864 Office:  678.689.6589

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to