[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-3537085 ] net-snmp is coring when stopped
From:       SourceForge.net <noreply () sourceforge ! net>
Date:       2012-06-27 6:14:16
Message-ID: E1SjlW6-00058I-4q () sfs-ml-1 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Bugs item #3537085, was opened at 2012-06-21 23:50
Message generated for change (Comment added) made by thyag
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3537085&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: snmptrapd
Group: solaris
>Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: thyagaraj (thyag)
Assigned to: Nobody/Anonymous (nobody)
Summary: net-snmp is coring when stopped

Initial Comment:
Net-snmp is coring during stop of net-snmp. Below is the pstack of the core.
bash-3.00$ pstack 18633/core
core '18633/core' of 18633:     /opt/SMAW/SMAWrtp/bin/RtpSnm -p 99
 fd1cc8d0 _lwp_kill (6, 0, 0, fdb433f0, ffffffff, 6) + 8
 fd141a4c abort    (0, 1, fdb434c4, eea74, fd233418, 0) + 110 
 fdb433f0 RtpWriteCoreInternal (3bd08, ffbfe310, ffbfe058, 0, fd5f2a00, ffbfe058) + 5b8
 fdb434c4 RtpWriteCoreOmni (3bd08, ffbfe310, ffbfe058, 18fb8, 0, 0) + c
 00019044 RtpSnmSigHandler (6, ffbfe310, ffbfe058, 0, fd5f2a00, ffbfe058) + 8c
 fd1c8d08 __sighndlr (6, ffbfe310, ffbfe058, 18fb8, 0, 0) + c
 fd1bd3a0 call_user_handler (6, ffbffeff, 8, 0, fd5f2a00, ffbfe058) + 3b8
 fd1bd588 sigacthandler (6, ffbfe310, ffbfe058, eea74, 0, fd141a0c) + 60
 --- called from signal handler with signal 6 (SIGABRT) ---
 fd1cc8d0 _lwp_kill (6, 6, 5, 6, 72d98, 0) + 8
 fd141a0c abort    (ffbfe450, 0, fd59884c, eea74, 86000, fd59884c) + d0
 fdb60b00 free     (86000, 879c8, 0, 80, 20, 80000000) + 20c
 fd59884c free_slots (0, 2, 0, 0, fa9d0140, 0) + ac
 fd5a4840 snmp_call_callbacks (0, 2, 0, 1e094, 303dc, 303e0) + 2a0
 fd55eae0 snmp_shutdown (1e488, 30b48, 48c9, 2e800, fa9d0140, 0) + 20
 0001c57c nativeSubAgentClose (0, 18, 5, 1e094, 303dc, 303e0) + 84
 00019fb0 main     (3, ffbfe8fc, ffbfe90c, 2e800, fa9d0140, 0) + d68
 00012990 _start   (0, 0, 0, 0, 0, 0) + 108
bash-3.00$

OS:SunOS netrace61 5.10 Generic_142900-14 sun4v sparc SUNW,Netra-T2000
Net-snmp version:5.4.2.1-7

----------------------------------------------------------------------

>Comment By: thyagaraj (thyag)
Date: 2012-06-26 23:14

Message:

RtpSnm01 is a nodemanager application which manages all the applications on
the node.
RtpSnm01 will start, stop all applications.
so here when we shutdown the application RtpSnm01 in turn shutdown
net-snmp, below is how we call the stop method.
From snm code "snmp_shutdown" function was called like below.    

        snmp_shutdown("RtpSnmSubAgent");

mdb o/p is shown below

> ::stack
libc.so.1`_lwp_kill+8(6, 0, 0, fdb433f0, ffffffff, 6)
libc.so.1`abort+0x110(0, 1, fdb434c4, eea74, fd233418, 0)
libRtpCommon.so`RtpWriteCoreInternal+0x5b8(3bd08, ffbfe4a0, ffbfe1e8, 0,
fd5f2a00, ffbfe1e8)
libRtpCommon.so`RtpWriteCoreOmni+0xc(3bd08, ffbfe4a0, ffbfe1e8, 18fb8, 0,
0)
RtpSnmSigHandler+0x8c(6, ffbfe4a0, ffbfe1e8, 0, fd5f2a00, ffbfe1e8)
libc.so.1`__sighndlr+0xc(6, ffbfe4a0, ffbfe1e8, 18fb8, 0, 0)
libc.so.1`call_user_handler+0x3b8(6, ffbffeff, 8, 0, fd5f2a00, ffbfe1e8)
libc.so.1`sigacthandler+0x60(6, ffbfe4a0, ffbfe1e8, eea74, 0, fd141a0c)
libc.so.1`_lwp_kill+8(6, 6, 5, 6, 72d98, 0)
libc.so.1`abort+0xd0(ffbfe5e0, 0, fd59884c, eea74, 86000, fd59884c)
libmtmalloc.so.1`free+0x20c(86000, 879c8, 0, 80, 20, 80000000)
libnetsnmp.so.5.0.9`free_slots+0xac(0, 2, 0, 0, fa9d0140, 0)
libnetsnmp.so.5.0.9`snmp_call_callbacks+0x2a0(0, 2, 0, 1e094, 303dc,
303e0)
libnetsnmp.so.5.0.9`snmp_shutdown+0x20(1e488, 30b48, 4282, 2e800, fa9d0140,
0)
nativeSubAgentClose+0x84(0, 18, 5, 1e094, 303dc, 303e0)
main+0xd68(3, ffbfea8c, ffbfea9c, 2e800, fa9d0140, 0)
_start+0x108(0, 0, 0, 0, 0, 0)
>
Even gdb also confirming  same point. 

(gdb) bt
#0  0xfd1cc8d0 in _lwp_kill () from /lib/libc.so.1
#1  0xfd165d84 in raise () from /lib/libc.so.1
#2  0xfd141a54 in abort () from /lib/libc.so.1
#3  0xfdb433f8 in RtpWriteCoreInternal (logicalname=0x3bd08 "RtpSnm01") at
RtpWriteCore.c:466
#4  0xfdb434cc in RtpWriteCoreOmni (logicalname=0x3bd08 "RtpSnm01") at
RtpWriteCore.c:537
#5  0x0001904c in RtpSnmSigHandler (sig=6, si=0xffbfe3e0, d=0xffbfe128) at
snm.c:3158
#6  <signal handler called>
#7  0xfd1cc8d0 in _lwp_kill () from /lib/libc.so.1
#8  0xfd165d84 in raise () from /lib/libc.so.1
#9  0xfd141a14 in abort () from /lib/libc.so.1
#10 0xfdb60b08 in free () from /usr/lib/secure/libmtmalloc.so
#11 0xfd598854 in free_slots () from /usr/sfw/lib/libnetsnmp.so.5
#12 0xfd5a4848 in snmp_call_callbacks () from /usr/sfw/lib/libnetsnmp.so.5
#13 0xfd55eae8 in snmp_shutdown () from /usr/sfw/lib/libnetsnmp.so.5
#14 0x0001c584 in nativeSubAgentClose () at RtpSnmSubAgent.c:195
#15 0x00019fb8 in main (argc=3, argv=0xffbfe9cc) at snm.c:3558
(gdb)

Here we suspect that problem starts from "snmp_shutdown" function.
#9  0xfd141a14 in abort () from /lib/libc.so.1
#10 0xfdb60b08 in free () from /usr/lib/secure/libmtmalloc.so
#11 0xfd598854 in free_slots () from /usr/sfw/lib/libnetsnmp.so.5
#12 0xfd5a4848 in snmp_call_callbacks () from /usr/sfw/lib/libnetsnmp.so.5
#13 0xfd55eae8 in snmp_shutdown () from /usr/sfw/lib/libnetsnmp.so.5



----------------------------------------------------------------------

Comment By: Thomas Anders (tanders)
Date: 2012-06-22 03:38

Message:
What package is that? It doesn't look like stock net-snmp to me. You may
want to report the bug to the party responsible for that package instead.

----------------------------------------------------------------------

Comment By: Thomas Anders (tanders)
Date: 2012-06-22 03:30

Message:
Please (re)try with the latest version from the 5.4.x branch or switch to
the latest 5.7.x release.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3537085&group_id=12694

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic