[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 <fxzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |lchiquitto@suse.com |ovo.novell.com | -- 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#c1 Leonardo Chiquitto <lchiquitto@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |karlijos@fnhk.cz --- Comment #1 from Leonardo Chiquitto <lchiquitto@suse.com> 2013-04-17 12:00:37 UTC --- Hi, could you collect a core dump? Are you using subagents? -- 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#c2 Josef Karliak <karlijos@fnhk.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|karlijos@fnhk.cz | --- Comment #2 from Josef Karliak <karlijos@fnhk.cz> 2013-04-17 12:45:30 UTC --- Created an attachment (id=535564) --> (http://bugzilla.novell.com/attachment.cgi?id=535564) Gcore of snmpd generated by gcore <pid> -- 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#c3 --- Comment #3 from Josef Karliak <karlijos@fnhk.cz> 2013-04-17 12:48:31 UTC --- I've generated it by gcore <pid>, is this sufficient ? This is my /etc/snmp/snmpd.conf: syslocation location syscontact contact # These really aren't meant for production use. They include all MIBS # and can use considerable resources. See snmpd.conf(5) for information # on setting up groups and limiting MIBS. rocommunity public 127.0.0.1 rocommunity public 193.138.6.1 rocommunity public 194.148.6.10 rocommunity nopublic 12.18.21.19 # rwcommunity mysecret 127.0.0.1 disk / 50000000 disk /var/log 30000000 disk /var/lib/mysql 5100000 disk /tmp 20000000 #disk /home IP's are randomly changed ... -- 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#c4 Leonardo Chiquitto <lchiquitto@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |karlijos@fnhk.cz --- Comment #4 from Leonardo Chiquitto <lchiquitto@suse.com> 2013-04-17 13:25:58 UTC --- (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. -- 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 <lchiquitto@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- 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#c5 --- Comment #5 from Josef Karliak <karlijos@fnhk.cz> 2013-04-24 05:14:51 UTC --- (In reply to comment #4)
(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 <karlijos@fnhk.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|karlijos@fnhk.cz | --- Comment #6 from Josef Karliak <karlijos@fnhk.cz> 2013-05-06 07:35:52 UTC --- Good morning, snmpd crashed again, but I've core dump. But it is too large, (over 12MB zipped), I put it into my public web site. One is zipped by zip, one not (40MB): http://www.ajetaci.cz/skola/epi/zumpa/1949-11-1367704801.core.zip and original http://www.ajetaci.cz/skola/epi/zumpa/1949-11-1367704801.core 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#c7 Leonardo Chiquitto <lchiquitto@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #7 from Leonardo Chiquitto <lchiquitto@suse.com> 2013-05-06 12:53:19 UTC --- Thanks. I'll take a look. -- 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#c8 --- Comment #8 from Josef Karliak <karlijos@fnhk.cz> 2013-09-09 05:59:50 UTC --- Hi there, any progress? :) Thx. 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#c9 Leonardo Chiquitto <lchiquitto@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |karlijos@fnhk.cz --- Comment #9 from Leonardo Chiquitto <lchiquitto@suse.com> 2013-09-17 23:08:54 UTC --- Thanks again for the core dump and my apologies for the delay. A package that should fix this bug is now available for testing in this repository: http://download.opensuse.org/repositories/home:/leonardocf:/branches:/openSU... Could you test and report feedback? I'm going to submit it as an update for 12.2 only, as this bug is already fixed on 12.3. -- 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#c10 Benjamin Brunner <bbrunner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|karlijos@fnhk.cz | Resolution| |FIXED --- Comment #10 from Benjamin Brunner <bbrunner@suse.com> 2013-09-23 14:14:37 CEST --- Update released for openSUSE 12.2. Resolved fixed. Feel free to reopen the bug if something is missing. -- 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#c11 --- Comment #11 from Swamp Workflow Management <swamp@suse.de> 2013-09-23 13:04:46 UTC --- openSUSE-RU-2013:1478-1: An update that has one recommended fix can now be installed. Category: recommended (low) Bug References: 812867 CVE References: Sources used: openSUSE 12.2 (src): net-snmp-5.7.1-9.5.1 -- 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.
participants (1)
-
bugzilla_noreply@novell.com