[Bug 812867] New: SNMP daemon crashes with SEGFAULT
https://bugzilla.novell.com/show_bug.cgi?id=812867 https://bugzilla.novell.com/show_bug.cgi?id=812867#c0 Summary: SNMP daemon crashes with SEGFAULT Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: karlijos@fnhk.cz QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0 Snmp daemon crashes with segfault: Apr 2 00:00:02 server kernel: [2330297.508029] snmpd[5827]: segfault at 28 ip 00007f2b0f9d1e7b sp 00007fffda6d8510 error 6 in libnetsnmpmibs.so.30.0.1[7f2b0f93c000+17f000] Apr 2 00:00:02 server snmpd[17714]: Reload service snmpd:..done Apr 2 00:00:02 server snmpd[17723]: Shutting down snmpd:..done Reproducible: Couldn't Reproduce Steps to Reproduce: 1. 2. 3. Happened about once or twice a week, about midnight, in this case "/var/log/messages" was not rotated. Binaries : net-snmp-5.7.1-9.1.3.x86_64 snmp-mibs-5.7.1-9.1.3.x86_64 libsnmp30-5.7.1-9.1.3.x86_64 uname -a: Linux antivir2 3.4.28-2.20-desktop #1 SMP PREEMPT Tue Jan 29 16:51:37 UTC 2013 (143156b) x86_64 x86_64 x86_64 GNU/Linux Running on HP DL360 G5 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=812867
https://bugzilla.novell.com/show_bug.cgi?id=812867#c
FeiXiang Zhang
https://bugzilla.novell.com/show_bug.cgi?id=812867
https://bugzilla.novell.com/show_bug.cgi?id=812867#c1
Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=812867
https://bugzilla.novell.com/show_bug.cgi?id=812867#c2
Josef Karliak
https://bugzilla.novell.com/show_bug.cgi?id=812867
https://bugzilla.novell.com/show_bug.cgi?id=812867#c3
--- Comment #3 from Josef Karliak
https://bugzilla.novell.com/show_bug.cgi?id=812867
https://bugzilla.novell.com/show_bug.cgi?id=812867#c4
Leonardo Chiquitto
I've generated it by gcore <pid>, is this sufficient ?
Unfortunately no. We need to analyze the core dump that's generated by the kernel when snmpd segfaults. To make sure the core dump will be created, you need to check that "ulimit -c" is set to "unlimited" when snmpd is started. Easiest way to do that is to edit /etc/init.d/snmpd and add "ulimit -c unlimited" just before 'echo -n "Starting snmpd"'. Let me know if you need more help with that. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=812867
https://bugzilla.novell.com/show_bug.cgi?id=812867#c
Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=812867
https://bugzilla.novell.com/show_bug.cgi?id=812867#c5
--- Comment #5 from Josef Karliak
(In reply to comment #3)
I've generated it by gcore <pid>, is this sufficient ?
Unfortunately no. We need to analyze the core dump that's generated by the kernel when snmpd segfaults. To make sure the core dump will be created, you need to check that "ulimit -c" is set to "unlimited" when snmpd is started. Easiest way to do that is to edit /etc/init.d/snmpd and add "ulimit -c unlimited" just before 'echo -n "Starting snmpd"'.
Let me know if you need more help with that.
Good morning, I've edit snmpd start script: #echo -n "Starting snmpd" ulimit -c unlimited echo -n "Starting snmpd" startproc $SNMPD $SNMPDCONF -r -A -LF ${SNMPD_LOGLEVEL:-n} $SNMPD_LOGFILE -p $SNMPD_PID $agentargs $SNMPDNOSMUX $SNMPDNOTCPWRAPPERLOG rc_status -v rc_reset After edit I've restarted it. The daemon crashed tonight, but there is no core dump in the messages or ssh console ? What I missed ? Thanks and best regards J.Karliak. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=812867
https://bugzilla.novell.com/show_bug.cgi?id=812867#c6
Josef Karliak
https://bugzilla.novell.com/show_bug.cgi?id=812867
https://bugzilla.novell.com/show_bug.cgi?id=812867#c7
Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=812867
https://bugzilla.novell.com/show_bug.cgi?id=812867#c8
--- Comment #8 from Josef Karliak
https://bugzilla.novell.com/show_bug.cgi?id=812867
https://bugzilla.novell.com/show_bug.cgi?id=812867#c9
Leonardo Chiquitto
https://bugzilla.novell.com/show_bug.cgi?id=812867
https://bugzilla.novell.com/show_bug.cgi?id=812867#c10
Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=812867
https://bugzilla.novell.com/show_bug.cgi?id=812867#c11
--- Comment #11 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com