Sent before through my personal mail ID Hi, We experienced a seg fault (only one known occurrence so far) while sending the V2 traps out. I found the following link with exact location where I see the crash on our device. http://sourceforge.net/tracker/index.php?func=detail&aid=3078424&group_id=12694&atid=112694
As explained there, though our application is multi threaded, all the interaction with NetSNMP agent happens through only one thread and that shouldn't be a problem as per http://net-snmp.sourceforge.net/wiki/index.php/FAQ:Agent_43 I dont see any solution suggested in the link above for the seg fault. Anyone has any idea or suggestion how we can go about this? Here is the trace Program terminated with signal 11, Segmentation fault. [New process 2631] [New process 2765] [New process 2764] #0 0x401322a4 in snmp_sess_async_send (sessp=0x36ebd0, pdu=0x48c160, callback=0x4001d680 <send_trap_to_sess+272>, cb_data=0x0) at snmp_api.c:4914 4914 isp->requestsEnd->next_request = rp; Current language: auto; currently c (gdb) bt full #0 0x401322a4 in snmp_sess_async_send (sessp=0x36ebd0, pdu=0x48c160, callback=0x4001d680 <send_trap_to_sess+272>, cb_data=0x0) at snmp_api.c:4914 tv = {tv_sec = 0x0, tv_usec = 0x36ebe8} rc = <value optimized out> #1 0x4001d62c in send_trap_to_sess (sess=0x36ebe8, template_pdu=0x47f418) at agent_trap.c:919 pdu = (netsnmp_pdu *) 0xe25cf result = <value optimized out> tmp = '\0' <repeats 133 times>, "\024\032@X\006\177¾Ø~J@X\006\177¾\000\024\032@h\006\177¾\000\024\032@p\006\177¾Ø~J@p\006\177¾\006\000\000\0000\a\177¾4\a\177¾$\000\000\0004\a\177¾è~J@°RK@¨\022\031@\001\000\000\000À\006\177¾ôñ\030@ H\000P§K@\000\000\000\000\210nJ@(G\231\000ø`\002@@I\231\000\"", '\0' <repeats 11 times>, "h\022\031@ aK@\000\000\000\000ô\006\177¾°RK@¨\022\031@\001\000\000\000ô\006\177¾ôñ\030@ H\0004\000\000\000`ÁH\000\214oJ@h\022\031@ aK@\000\000\000\000\000\000\000\000"... #2 0x4001dda8 in netsnmp_send_traps (trap=0xffffffff, specific=<value optimized out>, enterprise=0x40033930, enterprise_length=0xa, vars=0x1a094, context=0x0, flags=0x0) at agent_trap.c:813 template_v1pdu = (netsnmp_pdu *) 0x0 template_v2pdu = (netsnmp_pdu *) 0x4d6c414f vblist = <value optimized out> trap_vb = <value optimized out> var = (netsnmp_variable_list *) 0x400330fc uptime = 0xbe7f11c8 sink = (struct trap_sink *) 0x36e960 #3 0x4001e0d0 in send_enterprise_trap_vars (trap=0xe25cf, specific=0x4d6c414f, enterprise=0x0, enterprise_length=0x4f87b784, vars=0x466840) at agent_trap.c:838 No locals. #4 0x4001e10c in send_trap_vars (trap=0xe25cf, specific=0x4d6c414f, vars=0x4001e10c) at agent_trap.c:950 No locals. #5 0x0001a094 in send_uxNewAlarmTrap1_trap (pActAlm=<value optimized out>) at UXTraps.c:207 nTrapID = <value optimized out> var_list = (netsnmp_variable_list *) 0xe59d0384 uxNewAlarmTrap1_oid = {0x1, 0x3, 0x6, 0x1, 0x4, 0x1, 0xb1, 0xf, 0x2, 0x30005} uxAlarmActiveIndex_oid = {0x1, 0x3, 0x6, 0x1, 0x4, 0x1, 0xb1, 0xf, 0x1, 0x3, 0x1, 0x1} uxAlarmConfigIndex_oid = {0x1, 0x3, 0x6, 0x1, 0x4, 0x1, 0xb1, 0xf, 0x1, 0x3, 0x1, 0x2} uxAlarmActiveID_oid = {0x1, 0x3, 0x6, 0x1, 0x4, 0x1, 0xb1, 0xf, 0x1, 0x3, 0x1, 0x3} uxAlarmActiveSubID_oid = {0x1, 0x3, 0x6, 0x1, 0x4, 0x1, 0xb1, 0xf, 0x1, 0x3, 0x1, 0x4} uxAlarmActiveCondition_oid = {0x1, 0x3, 0x6, 0x1, 0x4, 0x1, 0xb1, 0xf, 0x1, 0x3, 0x1, 0x5} uxAlarmActiveSeverity_oid = {0x1, 0x3, 0x6, 0x1, 0x4, 0x1, 0xb1, 0xf, 0x1, 0x3, 0x1, 0x6} uxAlarmActiveCategory_oid = {0x1, 0x3, 0x6, 0x1, 0x4, 0x1, 0xb1, 0xf, 0x1, 0x3, 0x1, 0x7} uxAlarmActiveCancelType_oid = {0x1, 0x3, 0x6, 0x1, 0x4, 0x1, 0xb1, 0xf, 0x1, 0x3, 0x1, 0x8} uxAlarmActiveDecodeKey_oid = {0x1, 0x3, 0x6, 0x1, 0x4, 0x1, 0xb1, 0xf, 0x1, 0x3, 0x1, 0xc} uxAlarmActiveCount_oid = {0x1, 0x3, 0x6, 0x1, 0x4, 0x1, 0xb1, 0xf, 0x1, 0x3, 0x1, 0xb} uxAlarmActiveState_oid = {0x1, 0x3, 0x6, 0x1, 0x4, 0x1, 0xb1, 0xf, 0x1, 0x3, 0x1, 0xe} uxAlarmActiveSourceInstance_oid = {0x1, 0x3, 0x6, 0x1, 0x4, 0x1, 0xb1, 0xf, 0x1, 0x3, 0x1, 0xd} uxAlarmActiveFirstOccur_oid = {0x1, 0x3, 0x6, 0x1, 0x4, 0x1, 0xb1, 0xf, 0x1, 0x3, 0x1, 0x9} uxAlarmActiveLastOccur_oid = {0x1, 0x3, 0x6, 0x1, 0x4, 0x1, 0xb1, 0xf, 0x1, 0x3, 0x1, 0xa} uxAlarmActiveClrEvtID_oid = {0x1, 0x3, 0x6, 0x1, 0x4, 0x1, 0xb1, 0xf, 0x1, 0x3, 0x1, 0xf} uxAlarmActiveClrEvtSubID_oid = {0x1, 0x3, 0x6, 0x1, 0x4, 0x1, 0xb1, 0xf, 0x1, 0x3, 0x1, 0x10} uxAlarmActiveDescription_oid = {0x1, 0x3, 0x6, 0x1, 0x4, 0x1, 0xb1, 0xf, 0x1, 0x3, 0x1, 0x11} ---Type <return> to continue, or q <return> to quit--- #6 0x00010840 in SNMPApplication::SNMPServerHandler (this=0x41519008, cb=@0xbe7f154c) at snmp.cpp:643 pAlmIE = (IE_LIST *) 0x48a058 pActAlarmRcv = (class ALM_ACTIVE_SEND_NORTH_IE *) 0x47ebb8 pAlmEvtEntry = (class ALM_EVENT_ENTRY_IE *) 0x47ef20 #7 0x00016ca0 in symphony::SM_CBO<SNMPApplication>::MessageHandler (this=<value optimized out>, cb=@0x4d6c414f) at ../libcommon/MessagingInterface.h:210 No locals. #8 0x40315e1c in symphony::SessionManagementLayer::SessionCreate (this=0x0, o_hSessionHandle=@0x0, i_hServiceHandle=0x0, i_pCallback=0x0) at SessionManagementLayer.cpp:724 SessionID = <value optimized out> pSessions = (symphony::Sessions *) 0xbe7f1474 #9 0x4031b1e8 in symphony::SessionManagementLayer::ServiceConnect (this=0x7cc60, o_hServiceHandle=@0xf704, i_eServiceID=symphony::SERVICE_NONE, i_eSubServiceID=symphony::SUBSERVICE_NONE, i_pCallback=0x0) at SessionManagementLayer.cpp:699 service_addr = {family = 0x1704, addrtype = 0x7f, scope = 0xbe, addr = {id = {ref = 0x40349e9c, node = 0x14690}, nameseq = {type = 0x40349e9c, lower = 0x14690, upper = 0x41519028}, name = {name = {type = 0x40349e9c, instance = 0x14690}, domain = 0x41519028}}} fd = 0xffffffff #10 0x4033813c in ThreadInfo (this=Cannot access memory at address 0xffffff05 ) at hashtables.h:595 i = Cannot access memory at address 0xffffff15 (gdb) Thanks in advance, Malathi
------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users