From: SourceForge.net <no...@so...> - 2011-09-02 17:24:11
|
Bugs item #2946221, was opened at 2010-02-04 18:47 Message generated for change (Comment added) made by lchiquitto You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=2946221&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: solaris Status: Open Resolution: None Priority: 7 Private: No Submitted By: valdemar pavesi (valdemarpavesi) Assigned to: Nobody/Anonymous (nobody) Summary: SIGSEGV (Segmentation Fault) after run snmpwalk Initial Comment: > ::status debugging core file of snmpd (32-bit) from bcm1000-a file: /usr/local/sbin/snmpd initial argv: /usr/local/sbin/snmpd -r -c /etc/snmp/snmpd.conf threading model: multi-threaded status: process terminated by SIGSEGV (Segmentation Fault) > $G C++ symbol demangling disabled > $C > $G C++ symbol demangling enabled > $C 080474d8 libnetsnmpagent.so.8.0.0`netsnmp_add_varbind_to_cache+0x134(861f438, 1, 8625508, deadbeef) 08047508 libnetsnmpagent.so.8.0.0`netsnmp_reassign_requests+0xeb(861f438, fedbcf11, 8047538, fef4a7a5) 08047538 libnetsnmpagent.so.8.0.0`handle_getnext_loop+0x230(861f438, 0, 8047568, fef4a16e) 08047568 libnetsnmpagent.so.8.0.0`check_delayed_request+0x132(861f438, 0, 4b6b46c1, fef49de0) 08047598 libnetsnmpagent.so.8.0.0`netsnmp_check_outstanding_agent_requests+0x8f(807d8fc, 0, 806c07c, 2a, 806c07c, 807d8fc) 08047788 receive+0xcaf(fef60790, 36, 8047810, 1, fefdef93, feffb28c) 08047c98 main+0x147e(4, 8047cd0, 8047ce4) 08047cc4 _start+0x60(4, 8047d9c, 8047db2, 8047db5, 8047db8, 0) > it tell us that we are trying to use a address that was freed (deadbeef) 080474d8 libnetsnmpagent.so.8.0.0`netsnmp_add_varbind_to_cache+0x134(861f438, 1, 8625508, deadbeef) > $G C++ symbol demangling disabled > $C 080474d8 libnetsnmpagent.so.8.0.0`netsnmp_add_varbind_to_cache+0x134(861f438, 1, 8625508, deadbeef) 08047508 libnetsnmpagent.so.8.0.0`netsnmp_reassign_requests+0xeb(861f438, fedbcf11, 8047538, fef4a7a5) 08047538 libnetsnmpagent.so.8.0.0`handle_getnext_loop+0x230(861f438, 0, 8047568, fef4a16e) 08047568 libnetsnmpagent.so.8.0.0`check_delayed_request+0x132(861f438, 0, 4b6b46c1, fef49de0) 08047598 libnetsnmpagent.so.8.0.0`netsnmp_check_outstanding_agent_requests+0x8f(807d8fc, 0, 806c07c, 2a, 806c07c, 807d8fc) 08047788 receive+0xcaf(fef60790, 36, 8047810, 1, fefdef93, feffb28c) 08047c98 main+0x147e(4, 8047cd0, 8047ce4) 08047cc4 _start+0x60(4, 8047d9c, 8047db2, 8047db5, 8047db8, 0) > > ::regs %cs = 0x003b %eax = 0xdeadbeef %ds = 0x0043 %ebx = 0xfef6851c %ss = 0x0043 %ecx = 0xfedfcb1c %es = 0x0043 %edx = 0x00000000 %fs = 0x0000 %esi = 0x0861f438 %gs = 0x01c3 %edi = 0x08047bc1 %eip = 0xfef48bdd libnetsnmpagent.so.8.0.0`netsnmp_add_varbind_to_cache+0x134 %ebp = 0x080474d8 %kesp = 0x00000000 %eflags = 0x00010246 id=0 vip=0 vif=0 ac=0 vm=0 rf=1 nt=0 iopl=0x0 status=<of,df,IF,tf,sf,ZF,af,PF,cf> %esp = 0x080474b0 %trapno = 0xe %err = 0x4 > :: !banner see the corrpto uption "0xdeadbeef" ---------------------------------------------------------------------- Comment By: Leonardo Chiquitto (lchiquitto) Date: 2011-09-02 13:24 Message: Are you using subagents? This really looks like the same problem as reported in: https://sourceforge.net/tracker/?func=detail&atid=312694&aid=1633670&group_id=12694 You might want to give the patch available there a try. ---------------------------------------------------------------------- Comment By: valdemar pavesi (valdemarpavesi) Date: 2010-02-04 19:12 Message: # mdb core_bcm1000-a_snmpd_0_0_1265321665_9780 Loading modules: [ libumem.so.1 libc.so.1 ld.so.1 ] > ::umastat cache buf buf buf memory alloc alloc name size in use total in use succeed fail ------------------------- ------ ------ ------ --------- --------- ----- umem_magazine_1 8 4 169 4096 4 0 umem_magazine_3 16 1125 1143 36864 1696 0 umem_magazine_7 32 1329 1386 90112 2038 0 umem_magazine_15 64 594 620 81920 992 0 umem_magazine_31 128 0 0 0 0 0 umem_magazine_47 192 0 0 0 0 0 umem_magazine_63 256 0 0 0 0 0 umem_magazine_95 384 0 0 0 0 0 umem_magazine_143 576 0 0 0 0 0 umem_slab_cache 28 1783 1848 90112 1803 0 umem_bufctl_cache 12 0 0 0 0 0 umem_bufctl_audit_cache 100 64082 64383 7991296 64542 0 umem_alloc_8 8 0 0 0 0 0 umem_alloc_16 16 6365 9728 311296 102498 0 umem_alloc_24 24 5670 8364 335872 189127 0 umem_alloc_32 32 6209 12750 614400 110009 0 umem_alloc_40 40 753 803 45056 1208 0 umem_alloc_48 48 1513 1536 98304 5962 0 umem_alloc_56 56 2829 4144 303104 25341 0 umem_alloc_64 64 670 2304 294912 25022 0 umem_alloc_80 80 1601 4872 475136 60656 0 umem_alloc_96 96 1069 1116 126976 4683 0 umem_alloc_112 112 1243 1248 159744 1964 0 umem_alloc_128 128 0 0 0 0 0 umem_alloc_160 160 3357 8211 1462272 128578 0 umem_alloc_192 192 0 0 0 0 0 umem_alloc_224 224 640 2261 544768 62512 0 umem_alloc_256 256 34 36 12288 35 0 umem_alloc_320 320 2 10 4096 3 0 umem_alloc_384 384 0 0 0 0 0 umem_alloc_448 448 2 8 4096 3 0 umem_alloc_512 512 0 0 0 0 0 umem_alloc_640 640 1944 6666 4964352 129125 0 umem_alloc_768 768 0 0 0 0 0 umem_alloc_896 896 0 4 4096 1 0 umem_alloc_1152 1152 3 10 12288 750 0 umem_alloc_1344 1344 0 0 0 0 0 umem_alloc_1600 1600 0 0 0 0 0 umem_alloc_2048 2048 0 0 0 0 0 umem_alloc_2688 2688 0 7 20480 56675 0 umem_alloc_4096 4096 0 1 8192 3 0 umem_alloc_8192 8192 0 1 12288 8 0 umem_alloc_12288 12288 1 1 16384 4 0 umem_alloc_16384 16384 0 1 20480 2 0 ------------------------- ------ ------ ------ --------- --------- ----- Total [umem_internal] 8294400 71075 0 Total [umem_default] 9850880 904169 0 ------------------------- ------ ------ ------ --------- --------- ----- vmem memory memory memory alloc alloc name in use total import succeed fail ------------------------- --------- ---------- --------- --------- ----- sbrk_top 21483520 21688320 0 52318 327 sbrk_heap 21483520 21483520 21483520 52318 0 vmem_internal 3022848 3022848 3022848 734 0 vmem_seg 2953216 2953216 2953216 721 0 vmem_hash 53504 57344 57344 12 0 vmem_vmem 17100 19128 12288 15 0 umem_internal 8536096 8540160 8540160 2054 0 umem_cache 27456 32768 32768 44 0 umem_hash 205568 208896 208896 53 0 umem_log 65912 69632 69632 3 0 umem_firewall_va 0 0 0 0 0 umem_firewall 0 0 0 0 0 umem_oversize 0 0 0 47725 0 umem_memalign 0 0 0 0 0 umem_default 9850880 9850880 9850880 1803 0 ------------------------- --------- ---------- --------- --------- ----- > ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=2946221&group_id=12694 |