From: SourceForge.net <no...@so...> - 2010-08-25 13:11:54
|
Bugs item #3052724, was opened at 2010-08-25 01:57 Message generated for change (Comment added) made by rstory You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3052724&group_id=12694 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: agent Group: linux >Status: Closed >Resolution: Invalid Priority: 5 Private: No Submitted By: Rajesh (intellinet) Assigned to: Nobody/Anonymous (nobody) Summary: Signal 11-Segmentation fault at _sess_async_send function Initial Comment: Version : net-snmp-5.4.2.1 Trap API used: send_v2trap root@NIB-1-1:/root> gdb /usr/app/capc/app/bin/subagent /cf/logs/backup_11310312/crash/core_1280834343_subagent_6051 GNU gdb (Wind River Linux Toolchain (Target)) 6.6.50.20070620-cvs Copyright (C) 2007 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "mips-wrs-linux-gnu". For bug reporting instructions, please see: <URL:su...@wi...>. .. Using host libthread_db library "/lib/libthread_db.so.1". Error while mapping shared library sections: ../lib/libsubagent.so: No such file or directory. Reading symbols from /lib/libpthread.so.0...Reading symbols from /usr/lib/debug/lib/libpthread-2.5.so.debug...done. done. Loaded symbols for /lib/libpthread.so.0 Reading symbols from /lib/libdl.so.2...Reading symbols from /usr/lib/debug/lib/libdl-2.5.so.debug...done. done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /usr/lib/libssl.so.0.9.7...done. Loaded symbols for /usr/lib/libssl.so.0.9.7 Reading symbols from /usr/lib/libsctp.so.1...done. Loaded symbols for /usr/lib/libsctp.so.1 Symbol file not found for ../lib/libsubagent.so Reading symbols from /lib/libc.so.6...Reading symbols from /usr/lib/debug/lib/libc-2.5.so.debug...done. done. Loaded symbols for /lib/libc.so.6 Reading symbols from /usr/lib/libcrypto.so.0.9.7...done. Loaded symbols for /usr/lib/libcrypto.so.0.9.7 Reading symbols from /lib/ld.so.1...Reading symbols from /usr/lib/debug/lib/ld-2.5.so.debug...done. done. Loaded symbols for /lib/ld.so.1 Reading symbols from /lib/libgcc_s.so.1...done. Loaded symbols for /lib/libgcc_s.so.1 Reading symbols from /lib/libnss_files.so.2...Reading symbols from /usr/lib/debug/lib/libnss_files-2.5.so.debug...done. done. Loaded symbols for /lib/libnss_files.so.2 Core was generated by `./subagent 127.0.0.1 6666'. Program terminated with signal 11, Segmentation fault. #0 0x00474c18 in _sess_async_send (cb_data=<value optimized out>, callback=<value optimized out>, pdu=<value optimized out>, sessp=<value optimized out>) at snmp_api.c:4914 4914 snmp_api.c: No such file or directory. in snmp_api.c (gdb) bt full #0 0x00474c18 in _sess_async_send (cb_data=<value optimized out>, callback=<value optimized out>, pdu=<value optimized out>, sessp=<value optimized out>) at snmp_api.c:4914 session = <value optimized out> isp = (struct snmp_internal_session *) 0x2b101418 packet = <value optimized out> offset = 528 transport = (netsnmp_transport *) 0x2b10c0d0 reqid = 516259397 slp = <value optimized out> pktbuf = (u_char *) 0x0 pktbuf_len = 2048 length = 528 result = <value optimized out> #1 snmp_sess_async_send (sessp=0x2b1663b8, pdu=0x2b4069e0, callback=0x4d7140 <handle_inform_response>, cb_data=0x0) at snmp_api.c:4951 rc = <value optimized out> #2 0x004d7138 in send_trap_to_sess (sess=0x2b184470, template_pdu=0x2b446108) at agent_trap.c:919 pdu = (netsnmp_pdu *) 0x2b4069e0 result = <value optimized out> tmp = '\0' <repeats 1834 times>, "\001@ÿÿÿÿ\000\000\000\000+\000çxlo", '\0' <repeats 15 times>, "\002\000\000\177\000\000\001", '\0' <repeats 16 times>,---Type <return> to continue, or q <return> to quit--- "eth4", '\0' <repeats 13 times>, "\002\000\000À¨\r\002", '\0' <repeats 16 times>, "bond0", '\0' <repeats 12 times>, "\002\000\000À¨@z", '\0' <repeats 16 times>, "bond0", '\0' <repeats 12 times>, "\002\000\000À¨\020\002", '\0' <repeats 16 times>, "bond0", '\0' <repeats 12 times>, "\002\000\000\220¾\024\017", '\0' <repeats 16 times>, "bond0", '\0' <repeats 12 times>, "\002\000\000\220¾"... __FUNCTION__ = "send_trap_to_sess" #3 0x004d7cf4 in netsnmp_send_traps (trap=-1, specific=-1, enterprise=0x542040, enterprise_length=10, vars=0x2b212248, context=0x0, flags=0) at agent_trap.c:814 template_v1pdu = (netsnmp_pdu *) 0x2b44b958 template_v2pdu = (netsnmp_pdu *) 0x2b446108 vblist = <value optimized out> trap_vb = <value optimized out> var = (netsnmp_variable_list *) 0x2b466e48 uptime = 2107038723 sink = (struct trap_sink *) 0x2b1c3eb0 __FUNCTION__ = "netsnmp_send_traps" #4 0x004d81b4 in send_enterprise_trap_vars (trap=622930, specific=1280834343, enterprise=0x98152, enterprise_length=725695912, vars=0x2b212248) at agent_trap.c:838 No locals. #5 0x004d8204 in send_trap_vars (trap=622930, specific=1280834343, vars=0x0) at agent_trap.c:950 ---Type <return> to continue, or q <return> to quit--- No locals. #6 0x00417dac in send_diaMajorNotification_trap ( alarmId=<value optimized out>, faultText=0x2b00f5b8 "ClientId =1251: EC=-120") at stacks.c:516 alarmTime = 1280834343 alarmType = 1 probableCause = 6 alarmSeverity = 3 fault_name = "BackEndIdcConnectivity_ClientRegigistrationFailed\000\002\035\000T:ä5Ò\231`\000EǤ5Ò\024è5û\210+\000î\020\000\000:Ê\000T:ä+\000í¸\000Q\000\000+\000í¨5Ò\231`" var_list = (netsnmp_variable_list *) 0x2b212248 diaMajorNotification_oid = {1, 3, 6, 1, 4, 1, 2763, 1, 1, 3, 1, 1, 3} diaNotificationSequenceNum_oid = {1, 3, 6, 1, 4, 1, 2763, 1, 1, 3, 1, 1, 1000, 0} diaFaultName_oid = {1, 3, 6, 1, 4, 1, 2763, 1, 1, 3, 1, 1, 1001, 0} diaAlarmTime_oid = {1, 3, 6, 1, 4, 1, 2763, 1, 1, 3, 1, 1, 1002, 0} diaAlarmType_oid = {1, 3, 6, 1, 4, 1, 2763, 1, 1, 3, 1, 1, 1003, 0} diaAlarmProbableCause_oid = {1, 3, 6, 1, 4, 1, 2763, 1, 1, 3, 1, 1, 1004, 0} diaAlarmSeverity_oid = {1, 3, 6, 1, 4, 1, 2763, 1, 1, 3, 1, 1, 1005, 0} diaAddText_oid = {1, 3, 6, 1, 4, 1, 2763, 1, 1, 3, 1, 1, 1006, 0} #7 0x0041f4c8 in ProcessAlarmThread (param=<value optimized out>) ---Type <return> to continue, or q <return> to quit--- at subagent.c:556 event = {len = 111, src = 1, data = 0x2b1b96d8 "15050|DIAMETER|2|IDS|Failed to register client application|ids_clientinterface.cpp||754|ClientId =1251: EC=-120"} ret = <value optimized out> alarmId = 15050 token = (ITS_CHAR *) 0x2b00ee10 "ClientId =1251: EC=-120" Index = 0 i = <value optimized out> bytes = "15050\000DIAMETER\0002\000IDS\000Failed to register client application\000ids_clientinterface.cpp\000|754\000ClientId =1251: EC=-120\000.3gppnetworks.org:13148166,0,0,13143766#\00073#", '\0' <repeats 1891 times> alarmString = "ClientId =1251: EC=-120\000gppnetworks.org:13148166,0,0,13143766#", '\0' <repeats 1618 times>, "5Ò\231`", '\0' <repeats 20 times>, "5Ò7l\000T\aÀ\000\000\000\000\000^\035\030\000\000\001\0005Ä \230\000_h\220*á\020\000+\000ü\2105Ä`¨", '\0' <repeats 16 times>, "5Ò\231`\000\000\000\000\000\001\027q\000\000\000\000\000^\035\030\000T\aÀ+\000ýd\000^\035\030\000\000\000\000\177ÊH\030\177ÊH\030*á\020\000+\001\t@\000D\234 \000_h\220*á\020\000"... #8 0x004209e8 in startNormal (arg=0x543bc8) at its_thread.c:342 newset = {__val = {21119235, 0 <repeats 31 times>}} action = {sa_flags = 0, __sigaction_handler = { sa_handler = 0x4202a0 <sigusr1>, sa_sigaction = 0x4202a0 <sigusr1>}, sa_mask = {__val = {0 <repeats 32 times>}}, sa_restorer = 0, sa_resv = {0}} ---Type <return> to continue, or q <return> to quit--- m = <value optimized out> ret = <value optimized out> #9 0x35de5118 in start_thread (arg=<value optimized out>) at pthread_create.c:300 pd = Could not find the frame base for "start_thread". ---------------------------------------------------------------------- >Comment By: Robert Story (rstory) Date: 2010-08-25 09:11 Message: >#7 0x0041f4c8 in ProcessAlarmThread (param=<value optimized out>) >#9 0x35de5118 in start_thread (arg=<value optimized out>) The use of threads within the agent is not supported. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3052724&group_id=12694 |